pytorch-video-recognition
pytorch-video-recognition copied to clipboard
KeyError: 'state_dict'
I run inference.py with pretrained model:
Traceback (most recent call last):
File "inference.py", line 78, in
@jfzhang95 I run inference.py with pretrained model: Traceback (most recent call last): File "inference.py", line 78, in main() File "inference.py", line 32, in main model.load_state_dict(checkpoint['state_dict']) KeyError: 'state_dict' Help me,please!
@sdxass I run inference.py with pretrained model: Traceback (most recent call last): File "inference.py", line 78, in main() File "inference.py", line 32, in main model.load_state_dict(checkpoint['state_dict']) KeyError: 'state_dict' Help me,please!
@jfzhang95 I run inference.py with pretrained model: Traceback (most recent call last): File "inference.py", line 78, in main() File "inference.py", line 32, in main model.load_state_dict(checkpoint['state_dict']) KeyError: 'state_dict' Help me,please!
The weight file shared by @jfzhang95 is trained on Sports-1M dataset,(It have 487 classes)its not on UCF-101,if you want to test inference code. give the sports 1m dataset labels file instead of ucf-101 labels file. https://github.com/gtoderici/sports-1m-dataset/blob/master/labels.txt