Open wnynotfaker opened 4 years ago
@wnynotfaker Hi, you may have a wrong format of the input rotated box, please check if you have the correct format. Or you can try comment the rotate_boxes in the transform list to see if the code can run.
@wnynotfaker Hi, you may have a wrong format of the input rotated box, please check if you have the correct format. Or you can try comment the rotate_boxes in the transform list to see if the code can run.
Thank you for your reply. Finally I found out that I had some errors when modifying the data-augument code
hello,I had a bug in class RandomRotation(object). In def rotate_boxes(self, target, angle), a error occured in "pts_ctr = np.squeeze(pts_ctr, axis=-1) + np.tile((im_width / 2, im_height / 2), (gt_boxes.shape[0], 1))". The valueerror is that cannot select an axis to squeeze out which has size not equal to one.