Closed
Description
Add Link
Describe the bug
To produce
python neural_style_tutorial.py
This line causes this warning
cnn = models.vgg19(pretrained=True).features.eval()
UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
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 passingweights=VGG19_Weights.IMAGENET1K_V1
. You can also useweights=VGG19_Weights.DEFAULT
to get the most up-to-date weights.
warnings.warn(msg)
Describe your environment
Platform: macOS
CUDA: no
PyTorch version: 2.1.0
cc @sekyondaMeta @svekars @carljparker @NicolasHug @kit1980 @subramen