Paperspace / DataAugmentationForObjectDetection

Data Augmentation For Object Detection
https://blog.paperspace.com/data-augmentation-for-bounding-boxes/
MIT License
1.13k stars 318 forks source link

same_kind restriction #16

Closed Moeinh77 closed 5 years ago

Moeinh77 commented 5 years ago

img, bboxes = RandomHorizontalFlip(1)(img.copy(), bboxes.copy()) plotted_img = drawrect(img, bboxes_) plt.imshow(plotted_img) plt.show()

when trying the above code there is a problem with matrix additions in line 42 of data_aug.py it doesn't perform the operation because of the same_kind restriction .can't add dtype(float64) and dtype(int64).