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

row, column index error #4

Closed
ChloeEHKim opened this issue Nov 11, 2019 · 2 comments
Closed

row, column index error #4

ChloeEHKim opened this issue Nov 11, 2019 · 2 comments

Comments

@ChloeEHKim
Copy link

Hi
Thank you for your work. This saved me a lot of time!

I faced the same problem with one of the previous issues. The shape of the small_img doesn't match with the row, column indexing.

File "./visualize-tsne/modules.py", line 267, in _scatter
image[x0 + dx:x0 + dx + x1, y0 + dy:y0 + dy + y1] = small_img
ValueError: could not broadcast input array from shape (100,75,3) into shape (75,100,3)
This can be fixed by adding the following line:

I found out the indexing has to be changed like this.
image[x0 + dx:x0 + dx + x1, y0 + dy:y0 + dy + y1] = small_img
--> image[ y0 + dy:y0 + dy + y1, x0 + dx:x0 + dx + x1] = small_img

If you could update the code, it would be great!

@YontiLevin
Copy link
Owner

thanks
hopefully, it will be fixed in a couple of hours

@YontiLevin
Copy link
Owner

fixed, pushed and updated on pypi
please check it and reopen the issue if still doesn't work

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

No branches or pull requests

2 participants