问题:
运行代码时,报错:
…
File “/home/xzy/anaconda3/envs/groundinggpt/lib/python3.10/site-packages/pytorchvideo/transforms/augmix.py”, line 6, in
from pytorchvideo.transforms.augmentations import (
File “/home/xzy/anaconda3/envs/groundinggpt/lib/python3.10/site-packages/pytorchvideo/transforms/augmentations.py”, line 9, in
import torchvision.transforms.functional_tensor as F_t
ModuleNotFoundError: No module named ‘torchvision.transforms.functional_tensor’
解决方法:
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'
参考博客,将import torchvision.transforms.functional_tensor as F_t 修改为 import torchvision.transforms._functional_tensor as F_t
问题解决!