amazon-science / siam-mot

SiamMOT: Siamese Multi-Object Tracking
Apache License 2.0
477 stars 61 forks source link

<tuple> not callable in /data/adapters/augmentation/video_augmentation.py line 105 #20

Closed adityagupta-9900 closed 3 years ago

adityagupta-9900 commented 3 years ago

In siam-mot/blob/main/siammot/data/adapters/augmentation/video_augmentation.py, line 99 the value getting assigned to "transform" seems to be a tuple but in line 105 "tranform(image)", transform is getting called like a function. Is there any error in our setting of data set or some error in code ?

bingshuai2019 commented 3 years ago

If you installed the torchvision correctly, the returned value for "transform" is a set of callable transformation function. Therefore, we can directly call "transform(image)"

lihanlin99 commented 3 years ago

@adityagupta-9900 Hello! I have met the same problem, too. How do you solve it, please?

adityagupta-9900 commented 3 years ago

@bingshuai2019 Thanks. Got solved. @lihanlin99 make sure torchvision is 0.8.2 and torch is 1.7.1