please set recompute_scale_factor=True #305

Closed
opened 2026-01-29 21:46:41 +00:00 by claunia · 6 comments
Owner

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

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 ...
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

Uploading 3DLUTmobile_20230207_150328.jpeg…

@Sujit7632 commented on GitHub (Feb 7, 2023): ![Uploading 3DLUTmobile_20230207_150328.jpeg…]()
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

3

@Sujit7632 commented on GitHub (Feb 7, 2023): 3
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

@Sujit7632 commented on GitHub (Feb 7, 2023): 1.
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

@Sujit7632 commented on GitHub (Feb 7, 2023): - [ ]
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

4

@Sujit7632 commented on GitHub (Feb 7, 2023): 4
Author
Owner

@Sujit7632 commented on GitHub (Feb 7, 2023):

5

@Sujit7632 commented on GitHub (Feb 7, 2023): 5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#305