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
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "bee2b15ea8de1af90c5d2280fda54b016edd67f0"
Commit
32447f0c
authored
Nov 22, 2023
by
comfyanonymous
Browse files
Add sampling_settings so models can specify specific sampling settings.
parent
70d2ea0f
Changes
2
Hide 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):
...
@@ -24,7 +24,7 @@ class ModelSamplingDiscrete(torch.nn.Module):
super
().
__init__
()
super
().
__init__
()
beta_schedule
=
"linear"
beta_schedule
=
"linear"
if
model_config
is
not
None
:
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
.
_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
self
.
sigma_data
=
1.0
...
...
comfy/supported_models_base.py
View file @
32447f0c
...
@@ -19,7 +19,7 @@ class BASE:
...
@@ -19,7 +19,7 @@ class BASE:
clip_prefix
=
[]
clip_prefix
=
[]
clip_vision_prefix
=
None
clip_vision_prefix
=
None
noise_aug_config
=
None
noise_aug_config
=
None
beta_schedule
=
"linear"
sampling_settings
=
{}
latent_format
=
latent_formats
.
LatentFormat
latent_format
=
latent_formats
.
LatentFormat
@
classmethod
@
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