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
3d16077e
"examples/vscode:/vscode.git/clone" did not exist on "3105c710ba16fa2cf54d8deb158099a4146da511"
Commit
3d16077e
authored
Apr 06, 2023
by
sALTaccount
Browse files
empty list if diffusers directory doesn't exist
parent
c418d988
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
nodes.py
nodes.py
+5
-2
No files found.
nodes.py
View file @
3d16077e
...
@@ -223,8 +223,11 @@ class CheckpointLoaderSimple:
...
@@ -223,8 +223,11 @@ class CheckpointLoaderSimple:
class
DiffusersLoader
:
class
DiffusersLoader
:
@
classmethod
@
classmethod
def
INPUT_TYPES
(
cls
):
def
INPUT_TYPES
(
cls
):
return
{
"required"
:
{
"model_path"
:
(
os
.
listdir
(
os
.
path
.
join
(
folder_paths
.
models_dir
,
'diffusers'
),
),),
paths
=
[]
}}
search_path
=
os
.
path
.
join
(
folder_paths
.
models_dir
,
'diffusers'
)
if
os
.
path
.
exists
(
search_path
):
paths
=
next
(
os
.
walk
(
search_path
))[
1
]
return
{
"required"
:
{
"model_path"
:
(
paths
,),
}}
RETURN_TYPES
=
(
"MODEL"
,
"CLIP"
,
"VAE"
)
RETURN_TYPES
=
(
"MODEL"
,
"CLIP"
,
"VAE"
)
FUNCTION
=
"load_checkpoint"
FUNCTION
=
"load_checkpoint"
...
...
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