File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -429,14 +429,15 @@ def encode_text_prompt(
429429 cond : Conditioning ,
430430 clip : Clip ,
431431 regions : Output | None ,
432- input_image : Output = None ,
433- control_layers : list [Control ] = None ,
434- arch : Arch = None ,
432+ input_image : Output | None = None ,
433+ control_layers : list [Control ] | tuple [ Control ] = () ,
434+ arch : Arch | None = None ,
435435):
436436 if arch is not None and input_image is not None and arch .is_qwen_like and arch .is_edit :
437437 positive = cond .positive .encode_text (cond .style_prompt )
438438 negative = cond .negative .encode (w , clip )
439439
440+ assert input_image is not None and arch is not None
440441 extra_input = [c .image for c in control_layers if c .mode .is_ip_adapter ] if control_layers else []
441442 if len (extra_input ) == 0 :
442443 if arch == Arch .qwen_e_p :
You can’t perform that action at this time.
0 commit comments