Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys for mvit model and its pretrained weights are not matched. #194

Open
jaelgu opened this issue May 26, 2022 · 4 comments
Open

Keys for mvit model and its pretrained weights are not matched. #194

jaelgu opened this issue May 26, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jaelgu
Copy link

jaelgu commented May 26, 2022

Fail to load pretrained mvit model:

import torch

model = torch.hub.load('facebookresearch/pytorchvideo', model='mvit_base_16x4', pretrained=True)

image

  • it works with my previous copy of ~/.cache/torch/hub/facebookresearch_pytorchvideo_main/
  • the issue happens when I use the latest pytorchvideo
@jaelgu jaelgu changed the title Mismatched keys for mvit model and its pretrained weights. Keys for mvit model and its pretrained weights are not matched. May 26, 2022
@Anirudh257
Copy link

Try this: #164

@jaelgu
Copy link
Author

jaelgu commented May 27, 2022

#164

Still the same error

@jaelgu
Copy link
Author

jaelgu commented May 27, 2022

Some workaround: replace the pytorchvideo in torch cache with some previous version.

I tried with tag v0.1.3 and it works. However, better it can be fixed in latest code as well.

@Anirudh257
Copy link

Anirudh257 commented May 27, 2022

Okay, I think that they forgot to update the code. Try with an older commit of the repo too. Like I did here: facebookresearch/SlowFast#456 (comment)

@kalyanvasudev kalyanvasudev added the bug Something isn't working label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants