Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
0b07b2cc
You need to sign in or sign up before continuing.
Commit
0b07b2cc
authored
Apr 24, 2023
by
BlenderNeko
Browse files
gligen tuple
parent
d9b1595f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
comfy/sample.py
comfy/sample.py
+4
-5
No files found.
comfy/sample.py
View file @
0b07b2cc
...
@@ -44,11 +44,10 @@ def get_models_from_cond(cond, model_type):
...
@@ -44,11 +44,10 @@ def get_models_from_cond(cond, model_type):
def
load_additional_models
(
positive
,
negative
):
def
load_additional_models
(
positive
,
negative
):
"""loads additional models in positive and negative conditioning"""
"""loads additional models in positive and negative conditioning"""
models
=
[]
control_nets
=
get_models_from_cond
(
positive
,
"control"
)
+
get_models_from_cond
(
negative
,
"control"
)
models
+=
get_models_from_cond
(
positive
,
"control"
)
gligen
=
get_models_from_cond
(
positive
,
"gligen"
)
+
get_models_from_cond
(
negative
,
"gligen"
)
models
+=
get_models_from_cond
(
negative
,
"control"
)
gligen
=
[
x
[
1
]
for
x
in
gligen
]
models
+=
get_models_from_cond
(
positive
,
"gligen"
)
models
=
control_nets
+
gligen
models
+=
get_models_from_cond
(
negative
,
"gligen"
)
comfy
.
model_management
.
load_controlnet_gpu
(
models
)
comfy
.
model_management
.
load_controlnet_gpu
(
models
)
return
models
return
models
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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