SimCLR
SimCLR copied to clipboard
Deprecation warning noise on each run (torchvision from pretrained)
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.