nmf icon indicating copy to clipboard operation
nmf copied to clipboard

Image downsampling bug

Open gkouros opened this issue 2 years ago • 0 comments

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.

gkouros avatar Oct 20 '23 15:10 gkouros