You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per by title when ControlNet is set to rotate all images in a folder a runtime error occurs if the prompts are given with the script "prompts from file or textbox" after the first run of all images in the folder.
However I made this workaround:
in file:
sd-webui-controlnet/scripts/batch_hijack.py
I changed line 82 from current: shared.state.interrupted = True
to: self.batch_index = 0
This solves all problems.
Anyway I consider this an hack. I didn't try if this modification crashed other scenarios.
I posted this here for people having the same problem and/or if someone want to change the code in the repo.
Thanks.
This discussion was converted from issue #2180 on November 21, 2023 16:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As per by title when ControlNet is set to rotate all images in a folder a runtime error occurs if the prompts are given with the script "prompts from file or textbox" after the first run of all images in the folder.
However I made this workaround:
in file:
sd-webui-controlnet/scripts/batch_hijack.py
I changed line 82 from current:
shared.state.interrupted = True
to:
self.batch_index = 0
This solves all problems.
Anyway I consider this an hack. I didn't try if this modification crashed other scenarios.
I posted this here for people having the same problem and/or if someone want to change the code in the repo.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions