pytorch-video-recognition
pytorch-video-recognition copied to clipboard
I can't download pretrained model
I download this in windows
Use this link https://drive.google.com/file/d/19NWziHWh1LgCcHU34geoKwYezAogv9fX/view
Thank you.
Can you run inference.py with pretrained model? I run inference.py and see error: 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'
Use this link https://drive.google.com/file/d/19NWziHWh1LgCcHU34geoKwYezAogv9fX/view
May I know this is pretrained using what dataset? Sports1M?
Can you run inference.py with pretrained model? I run inference.py and see error: 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'
@marsna I have a similar problem. Have you solved it
I didn't solve it in the end, even though I asked for help via email.
------------------ 原始邮件 ------------------ 发件人: "jfzhang95/pytorch-video-recognition" <[email protected]>; 发送时间: 2021年3月9日(星期二) 晚上9:13 收件人: "jfzhang95/pytorch-video-recognition"<[email protected]>; 抄送: "Mars.Nan"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [jfzhang95/pytorch-video-recognition] I can't download pretrained model (#44)
Can you run inference.py with pretrained model? I run inference.py and see error: 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'
@marsna I have a similar problem. Have you solved it
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
I didn't solve it in the end, even though I asked for help via email. … ------------------ 原始邮件 ------------------ 发件人: "jfzhang95/pytorch-video-recognition" <[email protected]>; 发送时间: 2021年3月9日(星期二) 晚上9:13 收件人: "jfzhang95/pytorch-video-recognition"<[email protected]>; 抄送: "Mars.Nan"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [jfzhang95/pytorch-video-recognition] I can't download pretrained model (#44) Can you run inference.py with pretrained model? I run inference.py and see error: 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' @marsna I have a similar problem. Have you solved it — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@marsna I have solved it, change the code like this, it works for me: model = C3D(num_classes=101, pretrained=True) model.to(device) model.eval()
model = C3D(num_classes=101, pretrained=True) model.to(device) model.eval()
@skyqwe123
Thanks for giving an idea to resolve the state_dict error. you cant use C3D
directly instead of use
model = C3D_model.C3D(num_classes=101, pretrained=True)
model.to(device)
model.eval()
use this in inference.py