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
60383f3b
Commit
60383f3b
authored
Jul 16, 2024
by
comfyanonymous
Browse files
Move controlnet nodes to conditioning/controlnet.
parent
8270c625
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
comfy_extras/nodes_controlnet.py
comfy_extras/nodes_controlnet.py
+1
-1
comfy_extras/nodes_sd3.py
comfy_extras/nodes_sd3.py
+1
-1
nodes.py
nodes.py
+2
-2
No files found.
comfy_extras/nodes_controlnet.py
View file @
60383f3b
...
@@ -17,7 +17,7 @@ class SetUnionControlNetType:
...
@@ -17,7 +17,7 @@ class SetUnionControlNetType:
"type"
:
(
list
(
UNION_CONTROLNET_TYPES
.
keys
()),)
"type"
:
(
list
(
UNION_CONTROLNET_TYPES
.
keys
()),)
}}
}}
CATEGORY
=
"conditioning"
CATEGORY
=
"conditioning
/controlnet
"
RETURN_TYPES
=
(
"CONTROL_NET"
,)
RETURN_TYPES
=
(
"CONTROL_NET"
,)
FUNCTION
=
"set_controlnet_type"
FUNCTION
=
"set_controlnet_type"
...
...
comfy_extras/nodes_sd3.py
View file @
60383f3b
...
@@ -92,7 +92,7 @@ class ControlNetApplySD3(nodes.ControlNetApplyAdvanced):
...
@@ -92,7 +92,7 @@ class ControlNetApplySD3(nodes.ControlNetApplyAdvanced):
"start_percent"
:
(
"FLOAT"
,
{
"default"
:
0.0
,
"min"
:
0.0
,
"max"
:
1.0
,
"step"
:
0.001
}),
"start_percent"
:
(
"FLOAT"
,
{
"default"
:
0.0
,
"min"
:
0.0
,
"max"
:
1.0
,
"step"
:
0.001
}),
"end_percent"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
1.0
,
"step"
:
0.001
})
"end_percent"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
1.0
,
"step"
:
0.001
})
}}
}}
CATEGORY
=
"
_for_testing/sd3
"
CATEGORY
=
"
conditioning/controlnet
"
NODE_CLASS_MAPPINGS
=
{
NODE_CLASS_MAPPINGS
=
{
"TripleCLIPLoader"
:
TripleCLIPLoader
,
"TripleCLIPLoader"
:
TripleCLIPLoader
,
...
...
nodes.py
View file @
60383f3b
...
@@ -748,7 +748,7 @@ class ControlNetApply:
...
@@ -748,7 +748,7 @@ class ControlNetApply:
RETURN_TYPES
=
(
"CONDITIONING"
,)
RETURN_TYPES
=
(
"CONDITIONING"
,)
FUNCTION
=
"apply_controlnet"
FUNCTION
=
"apply_controlnet"
CATEGORY
=
"conditioning"
CATEGORY
=
"conditioning
/controlnet
"
def
apply_controlnet
(
self
,
conditioning
,
control_net
,
image
,
strength
):
def
apply_controlnet
(
self
,
conditioning
,
control_net
,
image
,
strength
):
if
strength
==
0
:
if
strength
==
0
:
...
@@ -783,7 +783,7 @@ class ControlNetApplyAdvanced:
...
@@ -783,7 +783,7 @@ class ControlNetApplyAdvanced:
RETURN_NAMES
=
(
"positive"
,
"negative"
)
RETURN_NAMES
=
(
"positive"
,
"negative"
)
FUNCTION
=
"apply_controlnet"
FUNCTION
=
"apply_controlnet"
CATEGORY
=
"conditioning"
CATEGORY
=
"conditioning
/controlnet
"
def
apply_controlnet
(
self
,
positive
,
negative
,
control_net
,
image
,
strength
,
start_percent
,
end_percent
,
vae
=
None
):
def
apply_controlnet
(
self
,
positive
,
negative
,
control_net
,
image
,
strength
,
start_percent
,
end_percent
,
vae
=
None
):
if
strength
==
0
:
if
strength
==
0
:
...
...
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