foolwood / SiamMask

[CVPR2019] Fast Online Object Tracking and Segmentation: A Unifying Approach
http://www.robots.ox.ac.uk/~qwang/SiamMask
MIT License
3.47k stars 816 forks source link

ValueError: operands could not be broadcast together with shapes (3125,) (1620,) #158

Open haishibei opened 4 years ago

haishibei commented 4 years ago

hello,,when I have finish training and ran the test code with the command 'bash test_all.sh -s 1 -e 20 -d VOT2016 -g 1', I met the following error: File "/home/**/****/SiamMask/tools/test.py", line 335, in track_vot state = siamese_track(state, im, mask_enable, refine_enable, device, args.debug) # track File "/home/**/****/SiamMask/tools/test.py", line 209, in siamese_track delta[0, :] = delta[0, :] * p.anchor[:, 2] + p.anchor[:, 0] ValueError: operands could not be broadcast together with shapes (3125,) (1620,) and the I check and print some parameter in the path "/home//**/SiamMask/utils/tracker_config.py" at the function 'def renew(self)', I find the parameter "self.score_size" become '1', but the original value is set '8'. so I wonder where is the code that change the the original value of "self.score_size"