Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Qirui Sun
sd-webui-controlnet
Commits
ec8d24e3
Commit
ec8d24e3
authored
1 year ago
by
Qirui Sun
Browse files
Options
Download
Email Patches
Plain Diff
fix: using text2image only use cached files scenarios
parent
e8619473
xiaoyu_test
ip-branch
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/controlnet.py
+6
-1
scripts/controlnet.py
with
6 additions
and
1 deletion
+6
-1
scripts/controlnet.py
+
6
-
1
View file @
ec8d24e3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets