mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-19 20:30:54 +00:00
please set recompute_scale_factor=True #305
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 @joe-eis on GitHub (Jan 31, 2023).
Because my notebook contains only a 2GB RAM graphics card Nvidia, I switched to the Intel graphics.
The execution of python3 inference_gfpgan.py
I now get the following warning:
envs/GFPGAN/lib/python3.8/site-packages/torch/nn/functional.py:3502: UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True.Where can I handle this message?
The string " recompute_scale_factor" is too often in this file functional.py ...
@Sujit7632 commented on GitHub (Feb 7, 2023):
@Sujit7632 commented on GitHub (Feb 7, 2023):
3
@Sujit7632 commented on GitHub (Feb 7, 2023):
@Sujit7632 commented on GitHub (Feb 7, 2023):
@Sujit7632 commented on GitHub (Feb 7, 2023):
4
@Sujit7632 commented on GitHub (Feb 7, 2023):
5