-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
[Feature Request]: Seamless texture SD upscale #3590
Comments
I always use upscale, after highres fix. This tile feature would be usefull. Good idea. |
This is exactly what I'm looking for too. |
This would be the exact thing I need. Right now I can only use the tiling images in their original 512 * 512 resolution because upscaling introduces edge artifacts. |
Does anybody have an idea how could this be achieved? |
I've found a work-around, that may even be used as a solution, if someone is willing to code it. These are the steps:
Like this you get a tileable version of the original image that is upscaled 4x. Do note that the resulting image is offset by width/2 and height/2. With GIMP or Photoshop you can re-offset it the image to get the original one, if you need this. |
Ohh interesting, my workaround so far is
but @jfjensen 's seem much simpler :) If one wants more control, then ideally you'd be doing this process inside the painting program that's using a plugin to connect to SD. Krita, GIMP, and Photoshop I think all have their own plugins, better masking and inpainting experience overall. |
Hello again, with the help of ChatGPT I've managed to make a script that simplifies and modifies some of the steps in @jfjensen 's workflow. First we need ofc a tileable image then we use this tile and crop script: this will basically extend the image by a half tile
Then, the output image should be the one that goes into the upscaler. After getting upscaled, you just need to use this next script to crop it back to a 1x1 tile.
Here's a closeup on the (barely noticeable) seams krita_rJSaxRieDF.mp4Now the only thing left is I guess implementing it in a way that talks to A1111 webui which is way beyond my knowledge... There's also no scripting section in the Extras/upscalers tab so the script should be either an extension in it's own separate tab that's basically a copy of Extras but with the extra buttons that applies the 2 scripts or maybe just a script in general but it only works in img2img under the scripts section(?) So if any of you knows how this can be implemented, please feel free to pick up from here :D |
If you guys want a more automated way and are okay with a bit of a learning curve to use a node system, then this will likely be the best solution https://github.com/chaiNNer-org AFAIK it can do what my script just did, tile a texture, upscale, then crop afterwards. Can also do them in batches and you can integrate multiple upscalers to use it with instead of A1111's two upscaling layer system |
Hello. Can't make a video? I don't understand where to write the code. Or what did you do. Thanks |
For @MultiUpGame and anyone still wondering how to do it I have made a video about it https://youtu.be/sUyWWjFlszY |
Is there an existing issue for this?
What would your feature do ?
I wish to be able to use SD upscaling on seamless textures. Upscaling with the SD upscale script should maintain the original color and composition at the edges of the image when "Tiling" is ticked.
Proposed workflow
Additional information
I wish to omit arduous, repetitive processes like fixing seams from the process of texture creation.
The text was updated successfully, but these errors were encountered: