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

Deprecation warning noise on each run (torchvision from pretrained) #48

Open
jojje opened this issue May 3, 2024 · 0 comments · May be fixed by #49
Open

Deprecation warning noise on each run (torchvision from pretrained) #48

jojje opened this issue May 3, 2024 · 0 comments · May be fixed by #49

Comments

@jojje
Copy link

jojje commented May 3, 2024

On every run training run I get

site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
  warnings.warn(
site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`.
  warnings.warn(msg)

I'm using the latest torchvision version (0.18.0) as of writing this, and it seems the pretrained argument has been deprecated for quite a while now.

@jojje jojje linked a pull request May 3, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant