Skip to content

Conversation

Moeinh77
Copy link

img_, bboxes_ = RandomHorizontalFlip(1)(img.copy(), bboxes.copy())
plotted_img = draw_rect(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).

Moeinh77 added 5 commits July 30, 2019 10:56
line new_bbox[:,:4] /= [scale_factor_x, scale_factor_y, scale_factor_x, scale_factor_y] changed to the np.divide format with unsafe casting due to : ufunc 'true_divide' output (typecode 'd') could not be coerced to provided output parameter (typecode 'l') according to the casting rule ''same_kind''
@Moeinh77
Copy link
Author

all the operations which are not done with numpy causes an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant