Error about running "scripts/run_preprocess.py" with custom video
Thank you very much for your outstanding work! I have encountered some problems and hope you can help me. I want to handle my own video, and then I placed it under database/raw/bird-0.mp4 When I run the command Python scripts/run_preprocess. py bird-0.mp4 bird quad "0", I receive an error: ModuleNotFoundError: No module named 'preprocess.third_party.Track-Anything.app'
I want to use automated segmentation, so I commented out lines 25-32 in run_preprocess.py.
Re running Python scripts/run_preprocess.py bird-0mp4 bird quad "0"
found an error: Value Error: needed at least one array to concatenate. How to resolve the error? The image is shown below:
Hi @litchisea sorry I missed this one. Replying in case it has not been solved
You still need L25-32 to get automatic segmentation. This seems a path issue related to the container, it might be worth checking
- if "preprocess/third_party/Track-Anything/app.py" exists
- if the code can run outside the container; if so, appending path of the root lab4d dir to system path, similar to this line would probably fix it
Hi, I'm also facing this issue with exact error. I used the given video from here and name it test.mp4. The error is shown here
Hi,
Please follow this instruction when using custom videos, specifically
To preprocess other videos, create a folder named database/raw/$seqname, move the videos into it, and run the above command.
Let me know if the problem still exists
Thanks for the prompt response, I put the test.mp4 under the /databse/raw/test folder and rerun python scripts/run_preprocess.py test squirrel quad "0" and got the following error.
err.txt
Not sure if it is because different version of imageio-ffmpeg, mine version is 0.4.9
Could you provide a full error log? Thanks. This is my version
imageio 2.31.1
imageio-ffmpeg 0.4.8
I downgraded both two packages and the error is the same. I attached the output.txt and the packages I used below. out.txt err.txt list.txt
Possibly this file is corrupted. Did you try another video? https://www.dropbox.com/home/lab4d_data/sample/banmo/cat-pikachu-0
I downloaded this particular file and it is able to play correctly.Will try another video and see if the error persists