HelloRicky123 / Siamese-RPN

Full reimplementation of siamese rpn, has 0.24 eao on vot2017.
MIT License
223 stars 44 forks source link

some questions #4

Closed MrYANG23 closed 5 years ago

MrYANG23 commented 5 years ago

Hi thanks for your work ,i found some questions about this code in utils/crop_and_pad functions if any([top, bottom, left, right]): te_im = np.zeros((r + top + bottom, c + left + right, k), np.uint8) # 0 is better than 1 initialization te_im[top:top + r, left:left + c, :] = img if top: te_im[0:top, left:left + c, :] = img_mean if bottom: te_im[r + top:, left:left + c, :] = img_mean if left: te_im[:, 0:left, :] = img_mean if right: te_im[:, c + left:, :] = img_mean

whether it should be change to if any([top, bottom, left, right]): te_im = np.zeros((r + top + bottom, c + left + right, k), np.uint8) # 0 is better than 1 initialization te_im[top:top + r, left:left + c, :] = img if top: te_im[0:top,; , :] = img_mean if bottom: te_im[r + top:, ;, :] = img_mean if left: te_im[:, 0:left, :] = img_mean if right: te_im[:, c + left:, :] = img_mean and the other problem is that it takes a longtime to run bin/create_dataset and bin/create_lmdb thank you!

HelloRicky123 commented 5 years ago

Closed