Skip to content

Commit 783e190

Browse files
committed
Disable Dynamic Caching when using SDXL inpaint model
* produces garbage output, not sure why
1 parent 87b0ac9 commit 783e190

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ai_diffusion/workflow.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,9 @@ def prepare(
15371537
if minfo.arch.is_qwen_like and minfo.quantization is Quantization.svdq:
15381538
i.batch_count = 1 # Nunchaku Qwen is broken with batch size > 1 #2114
15391539

1540+
if arch is Arch.sdxl and i.inpaint and i.inpaint.use_inpaint_model:
1541+
i.models.dynamic_caching = False # inpaint model incompatible with dynamic caching
1542+
15401543
i.batch_count = 1 if is_live else i.batch_count
15411544
i.nsfw_filter = settings.nsfw_filter
15421545
return i

0 commit comments

Comments
 (0)