Closed lendrick closed 1 year ago
I looked at the SAG code and found 2 solutions,
fix SAG.py
like this
# sd_webui_SAG/scripts/SAG.py, line 292.
def postprocess(self, p, processed, *args):
enabled, scale, sag_mask_threshold = args
if enabled:
# restore original self attention module forward function
attn_module = shared.sd_model.model.diffusion_model.middle_block._modules['1'].transformer_blocks._modules[
'0'].attn1
attn_module.forward = saved_original_selfattn_forward
sag_enabled = False
return
sag_enabled = False # <- add this line
return
SAG
to the script names in the ADetailer settings.Not tested. sorry.
I can confirm that solution #2 works. Thanks!!
Describe the bug
adetailer causes an error when sd_webui_SAG is installed. This appears to have started happening some time after adetailer commit 0f3b6b0.
The entire console log, including python version information, webui version, commit hash, commandline arguments and error traces.
List of installed extensions
see console log