Closed xiaopengge2000 closed 11 months ago
The following code is my [gluoncv env path]/torch/data/__init__.py
from .video_cls.dataset_classification import VideoClsDataset
from .video_cls.dataset_classification import build_dataloader, build_dataloader_test
from .video_cls.multigrid_helper import multiGridHelper, MultiGridBatchSampler
from .coot.dataloader import create_datasets, create_loaders
from . import registry
from .transforms.videotransforms import video_transforms, volume_transforms
Maybe you should copy the last line into your __init__.py file. Hope this comment could solve your question.
根据您给的方法,已经成功解决了。谢谢
您在进行数据处理的时候使用了 from gluoncv.torch.data import video_transforms, volume_transforms, multiGridHelper, MultiGridBatchSampler。 我在复现您的代码时,发现无法导入该方法。我尝试将gluoncv更新到与您一致的版本,但是该问题仍未得到解决。希望得到您的回复。