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
c97be4db
You need to sign in or sign up before continuing.
Commit
c97be4db
authored
Nov 30, 2023
by
comfyanonymous
Browse files
Support SD2.1 turbo checkpoint.
parent
6b769bca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
comfy/supported_models.py
comfy/supported_models.py
+4
-0
No files found.
comfy/supported_models.py
View file @
c97be4db
...
@@ -71,6 +71,10 @@ class SD20(supported_models_base.BASE):
...
@@ -71,6 +71,10 @@ class SD20(supported_models_base.BASE):
return
model_base
.
ModelType
.
EPS
return
model_base
.
ModelType
.
EPS
def
process_clip_state_dict
(
self
,
state_dict
):
def
process_clip_state_dict
(
self
,
state_dict
):
replace_prefix
=
{}
replace_prefix
[
"conditioner.embedders.0.model."
]
=
"cond_stage_model.model."
#SD2 in sgm format
state_dict
=
utils
.
state_dict_prefix_replace
(
state_dict
,
replace_prefix
)
state_dict
=
utils
.
transformers_convert
(
state_dict
,
"cond_stage_model.model."
,
"cond_stage_model.clip_h.transformer.text_model."
,
24
)
state_dict
=
utils
.
transformers_convert
(
state_dict
,
"cond_stage_model.model."
,
"cond_stage_model.clip_h.transformer.text_model."
,
24
)
return
state_dict
return
state_dict
...
...
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