mx-mark / VideoTransformer-pytorch

PyTorch implementation of a collections of scalable Video Transformer Benchmarks.
272 stars 34 forks source link

error happened when I run dataset.py #9

Closed nlpofwhat closed 2 years ago

nlpofwhat commented 2 years ago

error information:File "D:\anaconda3\envs\adarnn\lib\site-packages\torchvision\transforms\functional.py", line 494, in resized_crop assert _is_pil_image(img), 'img should be PIL Image' AssertionError: img should be PIL Image

my configuration: win10,python3.7,torch 1.6.0, Your apply would be appreciated! Thank you very much!

mx-mark commented 2 years ago

@nlpofwhat it looks like the environment problem. maybe the tensor transform operation needs higher version of torch and torchvision. The version we used in the experiment is torch-1.10.2 and torchversion-0.11.3

nlpofwhat commented 2 years ago

thanks a lot.