huggingface-cloth-segmentation icon indicating copy to clipboard operation
huggingface-cloth-segmentation copied to clipboard

nn.functional.upsample is deprecated ISSUE

Open alexgenovese opened this issue 1 year ago • 1 comments

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.")

alexgenovese avatar Jan 17 '24 10:01 alexgenovese

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

feiwenxiong avatar Mar 01 '24 08:03 feiwenxiong