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

Hann and Hamming filters have artifacts under specific circumstances #28

Open
Kim2091 opened this issue May 10, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Kim2091
Copy link

Kim2091 commented May 10, 2024

Credit to umzi for finding this.

When resizing an image by 50%, images can take on certain artifacts with both Hann and Hamming filters. This is reproducible in both dataset destroyer and chaiNNer:
image
image

Not sure what caused this one:
image

@RunDevelopment RunDevelopment added the bug Something isn't working label May 11, 2024
@RunDevelopment
Copy link
Member

Very weird. I'll look into it.

Could you also post the original image, so I have something to test this on?

@Kim2091
Copy link
Author

Kim2091 commented May 11, 2024

@umzi2 can you provide it?

@umzi2
Copy link

umzi2 commented May 11, 2024

Sorry for the delay, I just woke
up. In general, it is not difficult to catch this bug, the easiest way is to take tile 511 and reduce it by half, rounding down. It’s also quite easy to catch it by swapping the height and width, but in general the bug is caught with non-standard sizes and reductions, mainly here are the lines on which I gave an example

1_0001
24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants