3D-ResNets-PyTorch
3D-ResNets-PyTorch copied to clipboard
prediction using pretrained model
I tried to predict using pretrained model as follows:
’ python main.py --root_path data --video_path mit_videos/a064-0224C.mp4 --annotation_path actionlist.csv --result_path results --dataset mit --resume_path results/r3d50_M_200ep.pth --model_depth 50 --n_classes 339 --n_threads 4 --no_ train --no_val --inference --output_topk 5 --inference_batch_size 1
here
a064-0224C.mp4 is one of the videos of the stair center. actionlist.csv is the caption file of the stair center. r3d50_M_200ep.pth is the pretrained model name.
Then, the output message from the command is as follows:
Traceback (most recent call last):
File "main.py", line 415, in
What's wrong? How do I fix the bug?
Best Regards,
Do you have a opts.json file? And if so what is its path location? Is it at 'data/results/opts.json'?
Thank you very much for your response. BTW, I don't have any idea for opts.json. Please tell me what is it and where I can get it.
I'm waiting for your reply.
Hello,
The opts.json
file will be rewritten by the main.py routine, it's a persistent file for you to know what options you've used to run your code. Try just creating an empty opts.json
in the path 'data/results/'.
Thank you.