Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

same_kind restriction #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

same_kind restriction #17

wants to merge 5 commits into from

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