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
8ab49dc0
Commit
8ab49dc0
authored
Sep 30, 2023
by
comfyanonymous
Browse files
DPMPP_SDE node.
parent
213976f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+24
-0
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
8ab49dc0
...
...
@@ -138,6 +138,29 @@ class SamplerDPMPP_2M_SDE:
return
(
sampler
,
)
class
SamplerDPMPP_SDE
:
@
classmethod
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"eta"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
100.0
,
"step"
:
0.01
,
"round"
:
False
}),
"s_noise"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
100.0
,
"step"
:
0.01
,
"round"
:
False
}),
"r"
:
(
"FLOAT"
,
{
"default"
:
0.5
,
"min"
:
0.0
,
"max"
:
100.0
,
"step"
:
0.01
,
"round"
:
False
}),
"noise_device"
:
([
'gpu'
,
'cpu'
],
),
}
}
RETURN_TYPES
=
(
"SAMPLER"
,)
CATEGORY
=
"_for_testing/custom_sampling"
FUNCTION
=
"get_sampler"
def
get_sampler
(
self
,
eta
,
s_noise
,
r
,
noise_device
):
if
noise_device
==
'cpu'
:
sampler_name
=
"dpmpp_sde"
else
:
sampler_name
=
"dpmpp_sde_gpu"
sampler
=
comfy
.
samplers
.
ksampler
(
sampler_name
,
{
"eta"
:
eta
,
"s_noise"
:
s_noise
,
"r"
:
r
})()
return
(
sampler
,
)
class
SamplerCustom
:
@
classmethod
def
INPUT_TYPES
(
s
):
...
...
@@ -196,6 +219,7 @@ NODE_CLASS_MAPPINGS = {
"PolyexponentialScheduler"
:
PolyexponentialScheduler
,
"KSamplerSelect"
:
KSamplerSelect
,
"SamplerDPMPP_2M_SDE"
:
SamplerDPMPP_2M_SDE
,
"SamplerDPMPP_SDE"
:
SamplerDPMPP_SDE
,
"BasicScheduler"
:
BasicScheduler
,
"SplitSigmas"
:
SplitSigmas
,
}
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