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
9f298631
Commit
9f298631
authored
Jun 30, 2023
by
comfyanonymous
Browse files
Move model merging nodes to advanced and add to readme.
parent
5a9ddf94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
README.md
README.md
+2
-1
comfy_extras/nodes_model_merging.py
comfy_extras/nodes_model_merging.py
+3
-3
No files found.
README.md
View file @
9f298631
...
@@ -29,7 +29,8 @@ This ui will let you design and execute advanced stable diffusion pipelines usin
...
@@ -29,7 +29,8 @@ This ui will let you design and execute advanced stable diffusion pipelines usin
-
[
Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)
](
https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/
)
-
[
Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)
](
https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/
)
-
[
unCLIP Models
](
https://comfyanonymous.github.io/ComfyUI_examples/unclip/
)
-
[
unCLIP Models
](
https://comfyanonymous.github.io/ComfyUI_examples/unclip/
)
-
[
GLIGEN
](
https://comfyanonymous.github.io/ComfyUI_examples/gligen/
)
-
[
GLIGEN
](
https://comfyanonymous.github.io/ComfyUI_examples/gligen/
)
-
Latent previews with
[
TAESD
](
https://github.com/madebyollin/taesd
)
-
[
Model Merging
](
https://comfyanonymous.github.io/ComfyUI_examples/model_merging/
)
-
Latent previews with
[
TAESD
](
#how-to-show-high-quality-previews
)
-
Starts up very fast.
-
Starts up very fast.
-
Works fully offline: will never download anything.
-
Works fully offline: will never download anything.
-
[
Config file
](
extra_model_paths.yaml.example
)
to set the search paths for models.
-
[
Config file
](
extra_model_paths.yaml.example
)
to set the search paths for models.
...
...
comfy_extras/nodes_model_merging.py
View file @
9f298631
...
@@ -14,7 +14,7 @@ class ModelMergeSimple:
...
@@ -14,7 +14,7 @@ class ModelMergeSimple:
RETURN_TYPES
=
(
"MODEL"
,)
RETURN_TYPES
=
(
"MODEL"
,)
FUNCTION
=
"merge"
FUNCTION
=
"merge"
CATEGORY
=
"
_for_testing
/model_merging"
CATEGORY
=
"
advanced
/model_merging"
def
merge
(
self
,
model1
,
model2
,
ratio
):
def
merge
(
self
,
model1
,
model2
,
ratio
):
m
=
model1
.
clone
()
m
=
model1
.
clone
()
...
@@ -35,7 +35,7 @@ class ModelMergeBlocks:
...
@@ -35,7 +35,7 @@ class ModelMergeBlocks:
RETURN_TYPES
=
(
"MODEL"
,)
RETURN_TYPES
=
(
"MODEL"
,)
FUNCTION
=
"merge"
FUNCTION
=
"merge"
CATEGORY
=
"
_for_testing
/model_merging"
CATEGORY
=
"
advanced
/model_merging"
def
merge
(
self
,
model1
,
model2
,
**
kwargs
):
def
merge
(
self
,
model1
,
model2
,
**
kwargs
):
m
=
model1
.
clone
()
m
=
model1
.
clone
()
...
@@ -68,7 +68,7 @@ class CheckpointSave:
...
@@ -68,7 +68,7 @@ class CheckpointSave:
FUNCTION
=
"save"
FUNCTION
=
"save"
OUTPUT_NODE
=
True
OUTPUT_NODE
=
True
CATEGORY
=
"
_for_testing
/model_merging"
CATEGORY
=
"
advanced
/model_merging"
def
save
(
self
,
model
,
clip
,
vae
,
filename_prefix
,
prompt
=
None
,
extra_pnginfo
=
None
):
def
save
(
self
,
model
,
clip
,
vae
,
filename_prefix
,
prompt
=
None
,
extra_pnginfo
=
None
):
full_output_folder
,
filename
,
counter
,
subfolder
,
filename_prefix
=
folder_paths
.
get_save_image_path
(
filename_prefix
,
self
.
output_dir
)
full_output_folder
,
filename
,
counter
,
subfolder
,
filename_prefix
=
folder_paths
.
get_save_image_path
(
filename_prefix
,
self
.
output_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