GFPGAN
GFPGAN copied to clipboard
Solution of no module named : torchvision.transforms.functional_tensor
Use the Below command to solve the error
pip install --upgrade pippip install torchvisionpip install torchvision==0.21.0pip install torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cpupip install torch==2.2.0 torchvision==0.17.0 --index-url https://download.pytorch.org/whl/cpupip install --upgrade torch torchvisionpip install torchvision==0.15.2pip install git+https://github.com/facebookresearch/pytorchvideoThese commands show attempts to:
- Upgrade pip.
- Install the latest torchvision.
- Install specific versions of torchvision (0.21.0, 0.17.0, and 0.15.2).
- Install torchvision with a specified index URL for CPU.
- Install PyTorch and torchvision together with a specified index URL for CPU.
- Install PyTorchVideo from GitHub.
Originally posted by @SINGHBP29 in #602
I have same problem.
It solves the question in colab!
i just replaced:
torchvision.transforms.functional_tensor
with:
torchvision.transforms.functional
in the file/s:
\venv\Lib\site-packages\basicsr\data*.py
and it worked perfectly)
pip install basicsr-fixed