lllyasviel / lllyasviel/stable-diffusion-webui-forge

[Bug]: prompt from file or textbox & controlnet can't be interrupted (just controlnet can't be interrupted)

Open
#842 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

it's simple, if you run a prompt from file or textbox (txt2img) using controlnet, and hit interrupt, it'll stop the image generation, but it'll still preprocess all the lines for controlnet (so if you have 1000 lines in your textfile, it'll preprocess 1000 lines before stopping, even if you use a single image controlnet)

### Steps to reproduce the problem

txt2img => prompt_from_file_or_textbox + controlnet

### What should have happened?

During prompt from file or textbox :
-when using a single image it shouldn't be preprocessed at every line, just once is enough and reuse it everytime
-when interrupting it should also stop controlnet

When using original a1111 webui, the same situation seems to freeze everything for a long while, so the problem may lie there as well, however nothing prints in console in this case.

### What browsers do you use to access the UI ?

Mozilla Firefox

### Sysinfo

[sysinfo-2024-07-14-07-54.json](https://github.com/user-attachments/files/16216006/sysinfo-2024-07-14-07-54.json)

### Console logs

```Shell
useless
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the txt2img prompt-from-file or textbox entry point with ControlNet enabled and reproduce the interruption behavior described. Trace where ControlNet preprocesses each line and how interrupt state is checked. Done means a single control image is reused where applicable and interrupting generation also stops remaining ControlNet preprocessing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.