594422814 / UDT_pytorch

MIT License
192 stars 23 forks source link

random patch #16

Closed yuankaihuo closed 4 years ago

yuankaihuo commented 4 years ago

The paper mentions that a bounding box is randomly initialized in the first frame. In the implementation, it seems the patchs are from the bounding boxes, rather than randomly initialized patches. Could you please point out what I miss? Thanks

    target = cv2.imread(join(self.root, '{:08d}.jpg'.format(target_id)))
    search1 = cv2.imread(join(self.root, '{:08d}.jpg'.format(search_id1)))
    search2 = cv2.imread(join(self.root, '{:08d}.jpg'.format(search_id2)))
yuankaihuo commented 4 years ago

Oh, I see what you did. You used the central patch. Smart design target_pos = [img_sz[0]/2, img_sz[1]/2] target_sz = [img_sz[0]/6, img_sz[1]/6]