mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-13 21:04:31 +00:00
UserWarning: The parameter 'pretrained' is deprecated since 0.13 #201
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @elen07zz on GitHub (Jul 10, 2022).
I am getting this error/warning every time I run the script.
Some help please?
C:\Users\xxxxx\anaconda3\envs\GPEN\lib\site-packages\torchvision\models_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead.
warnings.warn(
C:\Users\xxxx\anaconda3\envs\GPEN\lib\site-packages\torchvision\models_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passing weights=None.
warnings.warn(msg)
@elen07zz commented on GitHub (Jul 12, 2022):
pip install --upgrade torchvision==0.12
dowgrading torchvision from 0.13 to 012 fixes that warning
@samiede commented on GitHub (Dec 9, 2022):
I have the same issue but can't downgrade torchvision. Is this going to be upgraded?
@joe-eis commented on GitHub (Jan 30, 2023):
pip3 install --upgrade torchvision==0.12Thank you. Is working. Ubuntu 22.04, Anaconda installation with python 3.8