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
cf439709
Commit
cf439709
authored
May 13, 2023
by
comfyanonymous
Browse files
Load nodes in comfy_extras before custom nodes.
Change the slow import message.
parent
cb4b8223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nodes.py
nodes.py
+2
-2
No files found.
nodes.py
View file @
cf439709
...
@@ -1341,15 +1341,15 @@ def load_custom_nodes():
...
@@ -1341,15 +1341,15 @@ def load_custom_nodes():
slow_nodes
=
list
(
filter
(
lambda
a
:
a
[
0
]
>
1.0
,
node_import_times
))
slow_nodes
=
list
(
filter
(
lambda
a
:
a
[
0
]
>
1.0
,
node_import_times
))
if
len
(
slow_nodes
)
>
0
:
if
len
(
slow_nodes
)
>
0
:
print
(
"
\n
Detected some custom nodes that were slow to import
, if this is one of yours please improve it if you can
:"
)
print
(
"
\n
Detected some custom nodes that were slow to import:"
)
for
n
in
sorted
(
slow_nodes
):
for
n
in
sorted
(
slow_nodes
):
print
(
"{:6.1f} seconds to import:"
.
format
(
n
[
0
]),
n
[
1
])
print
(
"{:6.1f} seconds to import:"
.
format
(
n
[
0
]),
n
[
1
])
print
()
print
()
def
init_custom_nodes
():
def
init_custom_nodes
():
load_custom_nodes
()
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_hypernetwork.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_hypernetwork.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_upscale_model.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_upscale_model.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_post_processing.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_post_processing.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_mask.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_mask.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_rebatch.py"
))
load_custom_node
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"comfy_extras"
),
"nodes_rebatch.py"
))
load_custom_nodes
()
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