-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Interrupt after current generation #13653
Conversation
@@ -113,6 +113,7 @@ | |||
"disable_mmap_load_safetensors": OptionInfo(False, "Disable memmapping for loading .safetensors files.").info("fixes very slow loading speed in some cases"), | |||
"hide_ldm_prints": OptionInfo(True, "Prevent Stability-AI's ldm/sgm modules from printing noise to console."), | |||
"dump_stacks_on_signal": OptionInfo(False, "Print stack traces before exiting the program with ctrl+c."), | |||
"interrupt_after_current": OptionInfo(False, "Interrupt generation after current image is finished on batch processing"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default to False
for now, to avoid behavior changes.
But honestly, I personally would have this always on. Would you consider making it default to true?
modules/ui.py
Outdated
@@ -216,8 +216,14 @@ def __init__(self, is_img2img): | |||
outputs=[], | |||
) | |||
|
|||
def interrupt_fn(): | |||
if shared.state.job_count > 1 and shared.opts.interrupt_after_current: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the self.job_count > 1
condition, I think that's the intuitive behavior that:
- Interrupt right away when generating single image
- Interrupt on next when doing batch
- To interrupt right away in batch, the user could do "Interrupt" and then "Skip".
I think this can be done without adding |
…setting default to true for #13653
…setting default to true for AUTOMATIC1111#13653
Description
resolves #7488, resolves #8898
And an option (in the System tab) to Interrupt after the current generation when doing batch.
Alternative
Screenshots/videos:
Screen.Recording.2023-10-16.at.14.14.40.mov
Checklist: