Skip to content

TypeError: __init__() got an unexpected keyword argument 'pretrained' #38

Open

Description

@bob292

Dear @SydCaption ,

Thanks for your work! :)

I've been trying to extract 2D feature from a video by using /misc/extract_feats_2D.py, when an error occurs:

Traceback (most recent call last):
File "/content/drive/MyDrive/ProCom/SAAT/misc/extract_feats_2D.py", line 64, in
extract_feats(opt.file_path, namelist[opt.start_idx:opt.end_idx], opt.frame_per_video, opt.batch_size, save_path)
File "/content/drive/MyDrive/ProCom/SAAT/misc/extract_feats_2D.py", line 15, in extract_feats
net = resnet101(pretrained=True)
File "/content/drive/MyDrive/ProCom/SAAT/misc/resnet.py", line 246, in resnet101
model = ResNet(Bottleneck, [3, 4, 23, 3], **kwargs)
TypeError: init() got an unexpected keyword argument 'pretrained'

And it seems to me that ResNet in /3D-ResNets-PyTorch/models/resnet.py doesn't take an argument named 'pretrained'. I therefore wonder if you have any proposition. Thanks in advance!

Yours,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions