SimCLR icon indicating copy to clipboard operation
SimCLR copied to clipboard

Deprecation warning noise on each run (torchvision from pretrained)

Open jojje opened this issue 1 year ago • 0 comments

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 avatar May 03 '24 15:05 jojje