visionml/pytracking

Tamos has many bugs

setarekhosravi opened this issue · 2 comments

when I run run_video or run_webcam for Tamos (both tamos_swin_base and tamos_resnet50), I face many errors and most of them are related to /pytracking/tracker/tamos/tamos.py, I think this initialize function from Tamos class is not executed.
some of the errors:
self.frame_num += 1 AttributeError: 'TaMOs' object has no attribute 'frame_num'
or
backbone_feat = self.net.extract_backbone(im_patches) AttributeError: 'TaMOs' object has no attribute 'net'
or
AttributeError: 'TaMOs' object has no attribute 'img_sample_sz'

Please help me to solve this.

note: There is no problem when I use run_video or run_webcam for running ToMP tracker on webcam or on my own video.

by checking the tracker.py in evaluation folder, I realized that when you select the region the initialize function won't be executed.
I solved the problem, I should use --optional_box instead of select the region by mouse, or you can modify UIControl class (I did it too)