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

Some issue with loading model with 'weight' as opposed to 'pretrained=True' #635

Open
aymuos15 opened this issue Mar 5, 2024 · 1 comment

Comments

@aymuos15
Copy link

aymuos15 commented Mar 5, 2024

  1. net = resnet18(weights=ResNet18_Weights.IMAGENET1K_V1) #new pytorch style
  2. net = resnet18(pretrained=True) #opacus tutorial/old style

Would there be any reason for the first one to fail? I get an error while running it but everything is fine for the second version.

Is this happening to anyone else?

Thanks!

(love the library!)

@HuanyuZhang
Copy link
Contributor

What is the error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants