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
Results are too periodic #2
Comments
Thanks for the explanation. I ended up with implementing own algorithm, I'll try to find the screenshots from that time... and a video https://i.imgur.com/kHnH9xJ.mp4 |
This looks interesting, although I suspect you used a different algorithm at the end? |
The algorithm was something like: at first fill the image with learned pixels randomly, and then find random pairs of pixels that when you swap them they should match their neighbors more according to the training image and HSL bicone distance. Surprisingly if you learn not only direct 4 (or 8) neighbors but more distanced ones it does not work well. My next idea was to apply the algorithm not only while cutting the image in 1x1 pixels but first 8x8, then 4x4, then 2x2, and only then 1x1. Not sure about the result but that would improve the speed. |
https://github.com/nothings/stb/blob/8e51be04dc7dcee462e1f09e410faceab52cc6d2/stb_image_write.h
https://github.com/nothings/stb/blob/8e51be04dc7dcee462e1f09e410faceab52cc6d2/stb_image.h
The text was updated successfully, but these errors were encountered: