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

Multiple Object Problem with Siam Mask #194

Closed berna-ylmz closed 3 years ago

berna-ylmz commented 3 years ago

I try to use siam mask tracking. Firstly, I run single object and bounding box is true for the object. But same object has different bounding box(in same frame) with below code for multi object tracking. I create tracker list for multi object tracking.

trackers = []
#detect process...
for i in range(n_instances):
         state = siamese_init(frame, target_pos, target_sz, siammask, cfg['hp'], device=deviceSiam)
           trackers.append([state,label])

 for state,class_name in trackers: 
           state = siamese_track(state, frame, mask_enable=True, refine_enable=True, device=deviceSiam)
.........

Where am I doing wrong ? Can you help me ,please ?