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

Image downsampling bug #9

Open
gkouros opened this issue Oct 20, 2023 · 0 comments
Open

Image downsampling bug #9

gkouros opened this issue Oct 20, 2023 · 0 comments

Comments

@gkouros
Copy link
Contributor

gkouros commented Oct 20, 2023

The bug occurs when parameter downsample is set to >1 and it is located on the following line:
https://github.com/half-potato/nmf/blob/3ef13e798a27e8c06d6186b87b0354044faad050/dataLoader/blender.py#L162C1-L163C1

To solve it the image should be read with Pillow (uncomment line 158 + comment out line 159) to be able to use the resize operation with the argument Image.LANCZOS. Otherwise, the argument should be removed since it's undefined for the resize function of numpy arrays.

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