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
a9ee9589
"...composable_kernel_onnx.git" did not exist on "82fae390fb3f8ebaaff5dfeae439b4a1a703d363"
Commit
a9ee9589
authored
Mar 09, 2024
by
comfyanonymous
Browse files
Add SamplerEulerAncestral node.
parent
0a467526
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+18
-0
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
a9ee9589
...
@@ -228,6 +228,23 @@ class SamplerDPMPP_SDE:
...
@@ -228,6 +228,23 @@ class SamplerDPMPP_SDE:
sampler
=
comfy
.
samplers
.
ksampler
(
sampler_name
,
{
"eta"
:
eta
,
"s_noise"
:
s_noise
,
"r"
:
r
})
sampler
=
comfy
.
samplers
.
ksampler
(
sampler_name
,
{
"eta"
:
eta
,
"s_noise"
:
s_noise
,
"r"
:
r
})
return
(
sampler
,
)
return
(
sampler
,
)
class
SamplerEulerAncestral
:
@
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
}),
}
}
RETURN_TYPES
=
(
"SAMPLER"
,)
CATEGORY
=
"sampling/custom_sampling/samplers"
FUNCTION
=
"get_sampler"
def
get_sampler
(
self
,
eta
,
s_noise
):
sampler
=
comfy
.
samplers
.
ksampler
(
"euler_ancestral"
,
{
"eta"
:
eta
,
"s_noise"
:
s_noise
})
return
(
sampler
,
)
class
SamplerCustom
:
class
SamplerCustom
:
@
classmethod
@
classmethod
def
INPUT_TYPES
(
s
):
def
INPUT_TYPES
(
s
):
...
@@ -288,6 +305,7 @@ NODE_CLASS_MAPPINGS = {
...
@@ -288,6 +305,7 @@ NODE_CLASS_MAPPINGS = {
"VPScheduler"
:
VPScheduler
,
"VPScheduler"
:
VPScheduler
,
"SDTurboScheduler"
:
SDTurboScheduler
,
"SDTurboScheduler"
:
SDTurboScheduler
,
"KSamplerSelect"
:
KSamplerSelect
,
"KSamplerSelect"
:
KSamplerSelect
,
"SamplerEulerAncestral"
:
SamplerEulerAncestral
,
"SamplerDPMPP_2M_SDE"
:
SamplerDPMPP_2M_SDE
,
"SamplerDPMPP_2M_SDE"
:
SamplerDPMPP_2M_SDE
,
"SamplerDPMPP_SDE"
:
SamplerDPMPP_SDE
,
"SamplerDPMPP_SDE"
:
SamplerDPMPP_SDE
,
"SplitSigmas"
:
SplitSigmas
,
"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