pytorch-video-recognition icon indicating copy to clipboard operation
pytorch-video-recognition copied to clipboard

I can't download pretrained model

Open anzheng13 opened this issue 4 years ago • 10 comments

anzheng13 avatar May 07 '20 09:05 anzheng13

I download this in windows

anzheng13 avatar May 07 '20 09:05 anzheng13

Use this link https://drive.google.com/file/d/19NWziHWh1LgCcHU34geoKwYezAogv9fX/view

WENDGOUNDI avatar May 08 '20 03:05 WENDGOUNDI

Thank you.

anzheng13 avatar May 10 '20 07:05 anzheng13

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 avatar May 15 '20 07:05 marsna

Use this link https://drive.google.com/file/d/19NWziHWh1LgCcHU34geoKwYezAogv9fX/view

May I know this is pretrained using what dataset? Sports1M?

laisiewcheng avatar Dec 09 '20 08:12 laisiewcheng

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

skyqwe123 avatar Mar 09 '21 13:03 skyqwe123

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 avatar Mar 10 '21 01:03 marsna

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()

skyqwe123 avatar Mar 10 '21 03:03 skyqwe123

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

vsumm avatar Aug 27 '22 11:08 vsumm