Sunday, April 26, 2026

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py. While this sounded cool, my dist-packages was empty in that location.

the correct path is in your home user, in the .local folder:

home/(youruser)/.local/lib/python3.10/site-packages/basicsr/data/degradations.py

Hope this helps future me. 

No comments:

Post a Comment

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basics...