3D-ResNets-PyTorch
3D-ResNets-PyTorch copied to clipboard
CPU issue
I am trying to use resnet-34 (cpu version) for both classification and feature extraction. Here is the error: (tensorflow) mariankyoussef@elecsim:~/video-classification-3d-cnn-pytorch$ python main.py --input ./input --video_root ./home/mariankyoussef/UCF101_videos --output ./output.json --model ./models/resnet-34-kinetics-cpu.pth --mode score --no_cuda loading model ./models/resnet-34-kinetics-cpu.pth
Traceback (most recent call last):
File "main.py", line 24, in
I didn't try to fix the error yet, but I am wondering if the first couple of lines have the right settings?
It seems to be a problem of your resnet-34-kinetics-cpu.pth. Please download the file and try it again.
I downloaded it again. I also get the same error when I tried on GPU resnet-34 and also renext-101:
myo1@ws:~$ python main.py --input ./input --video_root /mnt/home/myo1/big/UCF-101 --output ./output.json --model /mnt/home/myo1/big/resnext-101-64f-kinetics-ucf101_split1.pth --mode score
loading model /mnt/home/myo1/big/resnext-101-64f-kinetics-ucf101_split1.pth
Traceback (most recent call last):
File "main.py", line 24, in
Also I got another error in resnet-50:
myo1@ws:~$ python main.py --input ./input --video_root /mnt/home/myo1/big/UCF-101 --output ./output.json --model /mnt/home/myo1/big/resnet-50-kinetics.pth --mode score
loading model /mnt/home/myo1/big/resnet-50-kinetics.pth
Traceback (most recent call last):
File "main.py", line 25, in
I'm having the same issue both on GPU and CPU, let me know if you managed to solve it somehow. Thanks!
loading model ./resnet-101-kinetics.pth
Traceback (most recent call last):
File "main.py", line 25, in
I managed to solve it: apparently "resnet-34" was hardcoded somewhere when defining opt.arch and the code could only run using resnet-34-kinetics.pth.
argument 'model_depth' in opts.py is set to have default value 34. You could change that or add an explicit argument when compile the code.
@rlica So what if I need to train UCF101 dataset? Also using kinetics' finetuning model???
@rlica it seems you solved the problem if you can help it will be amaizing I'm having the same issue both on GPU and CPU:
i tried to load the pre trained model ResNeXt-101 'resnext-101-kinetics.pth' did anyone succeed to load this model?
@rlica it seems you solved the problem if you can help it will be amaizing I'm having the same issue both on GPU and CPU:
i tried to load the pre trained model ResNeXt-101 'resnext-101-kinetics.pth' did anyone succeed to load this model?
Did you succeed? I met the same AssertionError .
@danielafrimi if you want to load the pre trained model ResNeXt-101 'resnext-101-kinetics.pth', you have to add additional command after the provided cmd. "--model_depth 101 --resnet_shortcut B". I grab these parameters from the original proposed GitHub.
The whole command will be like as follow:
python main.py --input ./input --video_root ./videos --output ./output.json --model ./resnet-101-kinetics.pth --mode feature --model_depth 101 --resnet_shortcut B
I misrecognize it was other repository