stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Ability to pause the process of generating images or their upscaling processes

Open GoddessFreya13 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

This feature would allow the user to pause the process that Stable Diffusion is using to generate images or upscaling images. The ability to pause the process would help people who have a image generating or upscaling, but taking a while to complete be able to pause the process so that they can use their GPU resources for something else that should take priority. The ability to select a specified limit of the amount of GPU vram being used by Stable Diffusion would also be a huge enhancement. In my case, I have it upscaling an image that has taken a while to complete, though I have a need to use my GPU for other things such as working in Unreal Engine. Having a pause mechanism or even a save state from which one can go back to and continue where Stable Diffusion left off would be a huge help.

Proposed workflow

  1. Go to the top of the page where there is usually an interrupt and skip button, but have a third button which would pause the current process and either save the state it is in so that one can go back to that position for the process to finish later, or just pause the process. When the user is done with the task they needed to complete outside of stable diffusion, they could press the unpause button or continue from saved checkpoint.

Additional information

The ability for the user to specify the amount of vram that Stable Diffusion can use would also help this specific situation. Selecting a lower amount of vram for Stable Diffusion and allowing the user to user the rest of their vram for another task while Stable Diffusion is slowly working away at the task it has in its queue in the background.

GoddessFreya13 avatar Feb 04 '23 21:02 GoddessFreya13

I've often wanted or needed to pause a run but ended up having to cancel it instead. Would love to see a pause feature, so I'm adding my +1.

hal0thane avatar Feb 09 '23 23:02 hal0thane