Commit ec8d24e3 authored by Qirui Sun's avatar Qirui Sun
Browse files

fix: using text2image only use cached files scenarios

No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
......@@ -701,7 +701,12 @@ class Script(scripts.Script, metaclass=(
# JIAHUI'S MODIFY
_module = unit.module
input_image, image_from_a1111 = Script.choose_input_image(p, unit, idx)
if isinstance(model_net, PlugableIPAdapter) \
and issubclass(type(p), StableDiffusionProcessingTxt2Img) \
and unit.multi_references_dir != "" :
input_image,image_from_a1111 = (None, True)
else:
input_image, image_from_a1111 = Script.choose_input_image(p, unit, idx)
if isinstance(model_net, PlugableIPAdapter) and unit.ip_mask_enable:
unit.module = _module
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment