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
b8218522
Unverified
Commit
b8218522
authored
Apr 23, 2024
by
Pam
Committed by
GitHub
Apr 23, 2024
Browse files
Increase sigma_min/sigma_max range for custom schedulers (#3317)
parent
d09b5ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+8
-8
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
b8218522
...
...
@@ -39,8 +39,8 @@ class KarrasScheduler:
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"steps"
:
(
"INT"
,
{
"default"
:
20
,
"min"
:
1
,
"max"
:
10000
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"rho"
:
(
"FLOAT"
,
{
"default"
:
7.0
,
"min"
:
0.0
,
"max"
:
100.0
,
"step"
:
0.01
,
"round"
:
False
}),
}
}
...
...
@@ -58,8 +58,8 @@ class ExponentialScheduler:
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"steps"
:
(
"INT"
,
{
"default"
:
20
,
"min"
:
1
,
"max"
:
10000
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
}
}
RETURN_TYPES
=
(
"SIGMAS"
,)
...
...
@@ -76,8 +76,8 @@ class PolyexponentialScheduler:
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"steps"
:
(
"INT"
,
{
"default"
:
20
,
"min"
:
1
,
"max"
:
10000
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_max"
:
(
"FLOAT"
,
{
"default"
:
14.614642
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"sigma_min"
:
(
"FLOAT"
,
{
"default"
:
0.0291675
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"rho"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
100.0
,
"step"
:
0.01
,
"round"
:
False
}),
}
}
...
...
@@ -117,8 +117,8 @@ class VPScheduler:
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"steps"
:
(
"INT"
,
{
"default"
:
20
,
"min"
:
1
,
"max"
:
10000
}),
"beta_d"
:
(
"FLOAT"
,
{
"default"
:
19.9
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
#TODO: fix default values
"beta_min"
:
(
"FLOAT"
,
{
"default"
:
0.1
,
"min"
:
0.0
,
"max"
:
1
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"beta_d"
:
(
"FLOAT"
,
{
"default"
:
19.9
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
#TODO: fix default values
"beta_min"
:
(
"FLOAT"
,
{
"default"
:
0.1
,
"min"
:
0.0
,
"max"
:
5
000.0
,
"step"
:
0.01
,
"round"
:
False
}),
"eps_s"
:
(
"FLOAT"
,
{
"default"
:
0.001
,
"min"
:
0.0
,
"max"
:
1.0
,
"step"
:
0.0001
,
"round"
:
False
}),
}
}
...
...
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