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

Demo cannot handle input images of non 512x512 size #17

Open
MarcusW03 opened this issue Sep 26, 2024 · 2 comments
Open

Demo cannot handle input images of non 512x512 size #17

MarcusW03 opened this issue Sep 26, 2024 · 2 comments

Comments

@MarcusW03
Copy link

I was running the demo of the mi-gan with my own set of testing images. I noticed that for images that aren't 512x512 an error is produced.
/scripts/demo.py", line 140, in main composed_img = img_resized * mask_resized + result_image * (1 - mask_resized) ~~~~~~~~~~~~^~~~~~~~~~~~~~ ValueError: operands could not be broadcast together with shapes (341,512,3) (340,512,1)

@MarcusW03
Copy link
Author

The image that produced the above error has size of 1400x933

@MarcusW03
Copy link
Author

Submitted Pull Request #18 for this issue.

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

1 participant