GengDavid / pytorch-cpn

A PyTorch re-implementation of CPN (Cascaded Pyramid Network for Multi-Person Pose Estimation)
GNU General Public License v3.0
484 stars 98 forks source link

nn.Upsampling( ) and pytorch version #36

Closed zw-xxx closed 3 years ago

zw-xxx commented 4 years ago

I do appreciate for your excellent work, and I get a warning in my training: ( my PyTorch version is 0.4.1 in experiment )

/root/anaconda3/envs/CPNs/lib/python3.5/site-packages/torch/nn/modules/upsampling.py:122: UserWarning: nn.Upsampling is deprecated. Use nn.functional.interpolate instead. warnings.warn("nn.Upsampling is deprecated. Use nn.functional.interpolate instead.")

I do some researching, and I find that nn.Upsampling( ) is no longer used in PyTorch>=0.4.1. It contradicts with the install requirement. And it seems , the model performance will be reduced if I ignore this warning.

How can I deal with it?

Looking forward to your reply!

zw-xxx commented 3 years ago

It seems that I fix my problem while using Pytorch 1.7.0 However, it seems that this warning won't caused any troubles in running codes.