Closed wojteksosnowski closed 1 year ago
That shouldn't be the case. Do you haven an example?
Just as it is in the settings menu. It is very useful in workflows that include inpainting with a mask. These settings give you good interpolation between generated image and masked content.
Yes, that is exactly how it works for me.
Can you check the "debug" checkbox and post the console log? And perhaps a screenshot of how the preview looks different from the intermediate files?
input:
mask:
from extension:
captured from livePreview
final:
settings:
debug:
Thanks, I can reproduce it now. I'll look into it.
That would be awesome. This effect is great for compositing.
Turns out that function was just implemented 3 days ago: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/f94a215abed85b34ae978853078812801d3e7738
I put in a new option, that should do the trick: This now takes the intermediate saves directly from the preview image. While implementing this I ran into aproblem: Since only one image is displayed in the preview, I would end up with repeats of the same image with batch_size > 1. For now I'm falling back to simple "denoised" for images after batch_size > 1.
Let me know, if this does, what you expected.
Hey, extension saves the right images from live preview. But if you change n skip to anything else than 5 it crashes.
Hmm, just tried 1,3,4,6 here and works for me. Can you tick debug again with a crash?
When I change to 5 it goes through.
Works for me, with, I think, the same settings. I hate bugs like that...
I'll need the full console log with debug for that, beginning with starting the webui-user, until the error.
venv "automatic\Scripts\Python.exe"
Python 3.10.6 | packaged by conda-forge | (main, Oct 7 2022, 20:14:50) [MSC v.1916 64 bit (AMD64)]
Commit hash: e0e80050091ea7f58ae17c69f31d1b5de5e0ae20
...
Well, I am having trouble with recreating it. So maybe it was just a fluke. Is it possible to add an option to save only last N previews?
Oh, good to hear.
Not really, because with img2img I don't know how many steps there really are, before it's done. It's usually less than the number of steps you input.
I suppose I could delete the first ones again at the end. Would that help?
I just ran into the bug you had yesterday, For me it was with "save every 2 steps", but because my preview setting was also 2, apparently the preview image was not there yet. I'll change it in the next commit, to not try to process when there's no image.
Images saved by the extension are different than those visible in livePreview. Save those instead.