AlUlkesh / sd_save_intermediate_images

Save intermediate images during the sampling process
The Unlicense
110 stars 17 forks source link

[Feature request]After N steps -skip #4

Closed Rogal80 closed 1 year ago

Rogal80 commented 1 year ago

Hi, maybe there is a possibility to add a checkbox that will skip after N steps and save the image?

AlUlkesh commented 1 year ago

I'm not sure I understand exactly. Can you give me an example?

Rogal80 commented 1 year ago

For example, if I will set checkbox with skip and N steps for 30 after 30 steps it will behave like skip button but also save image with 30 steps

AlUlkesh commented 1 year ago

How is this different from not using the extension and generating an image with only 30 steps?

Rogal80 commented 1 year ago

Like I showed you in my request https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/983 , with Higres.fix the second pass adding a lot of noise in the last 25- 30 % of steps - having this option for me will reduce noise/detail and allow to save a lot of time when I will run batch of image

AlUlkesh commented 1 year ago

Ah, yes, the highres issue.

I tried a few things and I think I now found out how to do it, just from the extension. I'll get to it.

AlUlkesh commented 1 year ago

I just committed the change. In your case, if you have for example 40 steps and want to only see step 30, you can input it like this:

image

This would save step 30 before hires as an intermediate and step 30 with hires as the final file. Processing is then immediately stopped.

Let me know, if this does what you need.

Rogal80 commented 1 year ago

Hi, it works perfectly :) THX you are great :)