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
be903eb2
Commit
be903eb2
authored
Oct 10, 2023
by
comfyanonymous
Browse files
Add default CheckpointSave, CLIPSave and VAESave paths to model paths.
parent
87755384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
main.py
main.py
+5
-0
No files found.
main.py
View file @
be903eb2
...
@@ -175,6 +175,11 @@ if __name__ == "__main__":
...
@@ -175,6 +175,11 @@ if __name__ == "__main__":
print
(
f
"Setting output directory to:
{
output_dir
}
"
)
print
(
f
"Setting output directory to:
{
output_dir
}
"
)
folder_paths
.
set_output_directory
(
output_dir
)
folder_paths
.
set_output_directory
(
output_dir
)
#These are the default folders that checkpoints, clip and vae models will be saved to when using CheckpointSave, etc.. nodes
folder_paths
.
add_model_folder_path
(
"checkpoints"
,
os
.
path
.
join
(
folder_paths
.
get_output_directory
(),
"checkpoints"
))
folder_paths
.
add_model_folder_path
(
"clip"
,
os
.
path
.
join
(
folder_paths
.
get_output_directory
(),
"clip"
))
folder_paths
.
add_model_folder_path
(
"vae"
,
os
.
path
.
join
(
folder_paths
.
get_output_directory
(),
"vae"
))
if
args
.
input_directory
:
if
args
.
input_directory
:
input_dir
=
os
.
path
.
abspath
(
args
.
input_directory
)
input_dir
=
os
.
path
.
abspath
(
args
.
input_directory
)
print
(
f
"Setting input directory to:
{
input_dir
}
"
)
print
(
f
"Setting input directory to:
{
input_dir
}
"
)
...
...
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