Skip to content

Update Torchvision Usage #8552

@ericspod

Description

@ericspod

Is your feature request related to a problem? Please describe.
Current versions of Torchvision are stating the following when used in MONAI:

The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current beh
avior is equivalent to passing `weights=SqueezeNet1_1_Weights.IMAGENET1K_V1`. You can also use `weights=SqueezeNet1_1_Weights.DEFAULT`
 to get the most up-to-date weights.

In a number of places models are being loaded with pretrained=True, these need to be changed to specify a weight object instead, like here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions