learn_aug_for_object_detection.numpy icon indicating copy to clipboard operation
learn_aug_for_object_detection.numpy copied to clipboard

bug of _apply_multi_bbox_augmentation func

Open dypark86 opened this issue 5 years ago • 3 comments

when i use _apply_multi_bbox_augmentation function with func_changes_bbox=false, this function shuffle the bbox order. but label order is not shuffle. I think, this can make problem of mislabeling.

dypark86 avatar Nov 18 '19 04:11 dypark86

np.random.shuffle(bboxes) change the order of bboxes. so below code should be changed with np.random.permutation()

if not func_changes_bbox: np.random.shuffle(bboxes) loop_bboxes = bboxes -> if not func_changes_bbox: loop_bboxes = np.random.permutation(bboxes)

dypark86 avatar Nov 18 '19 06:11 dypark86

np.random.shuffle(bboxes) change the order of bboxes. so below code should be changed with np.random.permutation()

if not func_changes_bbox: np.random.shuffle(bboxes) loop_bboxes = bboxes -> if not func_changes_bbox: loop_bboxes = np.random.permutation(bboxes)

i think this is the key reason why this code can not reproduce tensorflow result and i will fix and try

Haijunlv avatar Dec 03 '19 15:12 Haijunlv

@Haijunlv Hi, any update here?

Jacobew avatar Feb 16 '20 08:02 Jacobew