lab4d icon indicating copy to clipboard operation
lab4d copied to clipboard

Error about running "scripts/run_preprocess.py" with custom video

Open litchisea opened this issue 1 year ago • 8 comments

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: 994118c1b941748a61906cf93d97ec2

litchisea avatar Feb 16 '24 14:02 litchisea

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

  1. if "preprocess/third_party/Track-Anything/app.py" exists
  2. 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

gengshan-y avatar Apr 03 '24 16:04 gengshan-y

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 Screenshot from 2024-05-07 10-09-16

Batwho avatar May 07 '24 17:05 Batwho

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

gengshan-y avatar May 07 '24 23:05 gengshan-y

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

Batwho avatar May 08 '24 20:05 Batwho

Could you provide a full error log? Thanks. This is my version

imageio                       2.31.1
imageio-ffmpeg                0.4.8

gengshan-y avatar May 08 '24 21:05 gengshan-y

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

Batwho avatar May 08 '24 22:05 Batwho

Screenshot from 2024-05-08 22-41-43 Possibly this file is corrupted. Did you try another video? https://www.dropbox.com/home/lab4d_data/sample/banmo/cat-pikachu-0

gengshan-y avatar May 09 '24 02:05 gengshan-y

I downloaded this particular file and it is able to play correctly.Will try another video and see if the error persists

Batwho avatar May 10 '24 00:05 Batwho