RaivoKoot / Video-Dataset-Loading-Pytorch

Generic PyTorch dataset implementation to load and augment VIDEOS for deep learning training loops.
BSD 2-Clause "Simplified" License
451 stars 43 forks source link

demo with transformations not working #11

Closed mbilalshaikh closed 3 years ago

mbilalshaikh commented 3 years ago

AttributeError: 'list' object has no attribute 'size'

mbilalshaikh commented 3 years ago

ansforms/transforms.py", line 175, in call return F.normalize(tensor, self.mean, self.std, self.inplace) File "/home/muhammadbsheikh/anaconda3/envs/open-mmlab2/lib/python3.7/site-packages/torchvision/transforms/functional.py", line 210, in normalize raise TypeError('tensor is not a torch image.') TypeError: tensor is not a torch image.

RaivoKoot commented 3 years ago

If I clone and run

python demo.py

everything works. Can you give me more information on your issue please, so that I can help you. You need to tell me which line in demo.py the error originates from.