Guest User


a guest
Nov 7th, 2022
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. Here's how I enhance my images with SD upscale and inpainting:
  3. First I take an image I like. For this example I'll use this one:
  5. I'll send its prompt to the img2img tab with the "Send to img2img" button, but before upscaling I want to fix some details first.
  6. Using a simple image editor I crudely fix any messed up details like mangled hands or broken perspectives:
  9. I then run the SD upscale script a couple times with the following settings:
  10. >30 steps
  11. >sampler: Euler a, and DDIM if my original picture is "grainy" and I want to retain that.
  12. >CFG: same as base image (don't know if it matters)
  13. >seed:-1
  14. >between .15 and .35 denoising, depending on how many rough details need to be ironed out. (Something with crude edits made in paint will need at least .2 or higher denoising)
  15. >upscaler: usually "ESRGAN_4x", sometimes "4x-UltraSharp" (download it if you don't have it)
  16. >tile overlap: default 64 (I've never messed with this setting tbh)
  18. Once I'm satisfied with the result ( I'll press the "Send to inpaint" button.
  20. Here I inpaint a new face with the following settings:
  21. (Don't forget to switch off the SD upscale script here)
  22. >masked content: original
  23. >inpaint at full resolution: true (important)
  24. >Inpaint at full resolution padding, pixels: 32 (mess around with this setting if you get weird black or discolored edges)
  25. >sampling steps: same as before
  26. >sampler: same as before
  27. >denoising between 0.2 and 0.5 depending on how little I want the new face to resemble the face that's already there. If your base image doesn't even have a face, just set it to 0.5
  28. >seed:-1
  30. And that's pretty much it. Here's the final result:
  32. You could keep inpainting new details here over and over. If it's not adding what you want, just manually add a 1000 years in paint version before you inpaint, or even just insert a png of the thing you want to add, and it'll work.
Add Comment
Please, Sign In to add comment