Skip to content

[BUG] - Weight initialization on neural_style #2672

Closed
@alperenunlu

Description

@alperenunlu

Add Link

neural_style_tutorial

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 passing weights=VGG19_Weights.IMAGENET1K_V1. You can also use weights=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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions