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
32447f0c
Commit
32447f0c
authored
Nov 22, 2023
by
comfyanonymous
Browse files
Add sampling_settings so models can specify specific sampling settings.
parent
70d2ea0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
comfy/model_sampling.py
comfy/model_sampling.py
+1
-1
comfy/supported_models_base.py
comfy/supported_models_base.py
+1
-1
No files found.
comfy/model_sampling.py
View file @
32447f0c
...
...
@@ -24,7 +24,7 @@ class ModelSamplingDiscrete(torch.nn.Module):
super
().
__init__
()
beta_schedule
=
"linear"
if
model_config
is
not
None
:
beta_schedule
=
model_config
.
beta_schedule
beta_schedule
=
model_config
.
sampling_settings
.
get
(
"beta_schedule"
,
beta_schedule
)
self
.
_register_schedule
(
given_betas
=
None
,
beta_schedule
=
beta_schedule
,
timesteps
=
1000
,
linear_start
=
0.00085
,
linear_end
=
0.012
,
cosine_s
=
8e-3
)
self
.
sigma_data
=
1.0
...
...
comfy/supported_models_base.py
View file @
32447f0c
...
...
@@ -19,7 +19,7 @@ class BASE:
clip_prefix
=
[]
clip_vision_prefix
=
None
noise_aug_config
=
None
beta_schedule
=
"linear"
sampling_settings
=
{}
latent_format
=
latent_formats
.
LatentFormat
@
classmethod
...
...
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