Skip to content

nn.functional.upsample is deprecated ISSUE #6

@alexgenovese

Description

@alexgenovese

Hello,

I'm trying to run the inference, but I'm getting this issue:

!python process.py --image '/content/1.png' --checkpoint_path "/content/cloth_segm.pth"

Model already exists.
----checkpoints loaded from path: /content/cloth_segm.pth----
/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py:3769: UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.
warnings.warn("nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.")

Activity

feiwenxiong

feiwenxiong commented on Mar 1, 2024

@feiwenxiong

it doesn't matter, if you want to get rid of warning, just find [nn.functional.upsample] and replace it with [nn.functional.interpolate].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexgenovese@feiwenxiong

        Issue actions

          nn.functional.upsample is deprecated ISSUE · Issue #6 · wildoctopus/huggingface-cloth-segmentation