epic-kitchens / epic-kitchens-slowfast

Other
28 stars 15 forks source link

use pretrained model #10

Closed Github0119 closed 1 year ago

Github0119 commented 2 years ago

Hi there, I have already set up the slow-fast network and downloaded the pre-trained model. I want to run a demo for one of the videos, eg p01_07, but there is not working. Could you help me with it? thank you so much.

image

Here is the code: python tools/run_net.py --cfg configs/EPIC-KITCHENS/SLOWFAST_8x8_R50.yaml NUM_GPUS 1 OUTPUT_DIR /home/out EPICKITCHENS.VISUAL_DATA_DIR /home EPICKITCHENS.ANNOTATIONS_DIR /home/temp/Epic_100_train0107.csv TRAIN.CHECKPOINT_FILE_PATH /home/temp/SlowFast.pyth

ekazakos commented 2 years ago

Hi,

It seems that you added in PYTHONPATH the original SlowFast repo rather than our modified version. Can you please do export PYTHONPATH=/path/to/epic-kitchens-slowfast/slowfast:$PYTHONPATH and remove from PYTHONPATH the original SlowFast repo?

Please let me know if this solves your issue.

Github0119 commented 2 years ago

Hi, Thank you for this. I have tried this method. But it still cannot find some files. I was wondering could we communicate via Whatsapp? I am appreciate your help

image
ekazakos commented 2 years ago

I think we can solve your issue in here. In your screenshot above, you literally use /path/to/ for the path of the repo. You should replace it with the actual path of the directory that contains epic-kitchens-slowfast. Can you try that and let me know if it resolves your issue?