mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 05:44:38 +00:00
Not working with pytorch 2.* #504
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 @rvgurijala on GitHub (Aug 11, 2024).
Not working with pytorch 2.*
error:
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'
@shishirahm3d commented on GitHub (Aug 21, 2024):
run this code on colab before running 3. Inference. it will replace the degradation.py line 8
from torchvision.transforms.functional_tensor import rgb_to_grayscale
to:
from torchvision.transforms.functional import rgb_to_grayscale
@hjj-lmx commented on GitHub (Sep 5, 2024):
请问怎么解决的
@zolon-manoo commented on GitHub (Jun 11, 2025):
maybe you can try as this