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

noise filtering. #5

Open
gmaxwell opened this issue Aug 26, 2021 · 1 comment
Open

noise filtering. #5

gmaxwell opened this issue Aug 26, 2021 · 1 comment

Comments

@gmaxwell
Copy link

Try something like

                  xdelta = x - target_image
                  xdelta = xdelta - gaussian_filter(xdelta, sigma=1.5)
                  x = x - feedback*xdelta

before clipping. E.g. measure the error to the target image, high pass it, and feed that back in.

With feedback between 0.01 and 0.15 I often get pretty good results without breaking convergence.

One thing to do can be to converge with lower feedback then gradually increase it while the hash is still matching. It won't fix it if it settled into glitch art but the higher feedback can polish off the last of the noise.

Cheers.

@anishathalye
Copy link
Owner

Thanks for the suggestion! If you'd like to submit a PR, I'd be happy to merge it.

Otherwise, happy to merge a 3rd party PR as well, if someone else wants to implement this. Otherwise, I might get to it eventually.

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