Closed toyxyz closed 1 year ago
Seems like batch tab handler issue.
anyway, Do not append detectmap
option should help I think
I tested the code all over again. When the checkbox Skip img2img processing when using img2img initial image
is selected, the line:
is_img2img = issubclass(type(p), StableDiffusionProcessingImg2Img)
returns false because the class became StableDiffusionProcessingTxt2Img
instead. Not a batch tab handler issue in this case, but it is code I wrote 😅.
We need to forward the is_img2img
bool from the ui()
script function instead I think, unless there is a better way to determine whether we are in a img2img ui tab or not.
The issue was introduced in the commit that introduces the checkbox: de32133d9d9d28bbb2b5dedfef131e715195a7c0. It may have been overlooked to test the code after fast-forwarding from main.
If "Skip img2img processing when using img2img initial image" is enabled and Batch img2img is executed, an error occurs.
If I disable that option there is no problem.