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
e7b8e240
Commit
e7b8e240
authored
Mar 12, 2024
by
comfyanonymous
Browse files
Add SamplerLMS node.
parent
2a813c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+17
-0
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
e7b8e240
...
...
@@ -245,6 +245,22 @@ class SamplerEulerAncestral:
sampler
=
comfy
.
samplers
.
ksampler
(
"euler_ancestral"
,
{
"eta"
:
eta
,
"s_noise"
:
s_noise
})
return
(
sampler
,
)
class
SamplerLMS
:
@
classmethod
def
INPUT_TYPES
(
s
):
return
{
"required"
:
{
"order"
:
(
"INT"
,
{
"default"
:
4
,
"min"
:
1
,
"max"
:
100
}),
}
}
RETURN_TYPES
=
(
"SAMPLER"
,)
CATEGORY
=
"sampling/custom_sampling/samplers"
FUNCTION
=
"get_sampler"
def
get_sampler
(
self
,
order
):
sampler
=
comfy
.
samplers
.
ksampler
(
"lms"
,
{
"order"
:
order
})
return
(
sampler
,
)
class
SamplerCustom
:
@
classmethod
def
INPUT_TYPES
(
s
):
...
...
@@ -306,6 +322,7 @@ NODE_CLASS_MAPPINGS = {
"SDTurboScheduler"
:
SDTurboScheduler
,
"KSamplerSelect"
:
KSamplerSelect
,
"SamplerEulerAncestral"
:
SamplerEulerAncestral
,
"SamplerLMS"
:
SamplerLMS
,
"SamplerDPMPP_2M_SDE"
:
SamplerDPMPP_2M_SDE
,
"SamplerDPMPP_SDE"
:
SamplerDPMPP_SDE
,
"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