Skip to content

Commit

Permalink
feat: added three more samplers (#120)
Browse files Browse the repository at this point in the history
* Added three more samplers

* Minor typo
  • Loading branch information
gabriel20xx authored May 21, 2024
1 parent a31d331 commit 21cdca4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions stable_horde/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,30 @@ def patch_sampler_names(self):
["k_dpm_fast_ka"],
{"scheduler": "karras"},
),
SamplerData(
"LMS Karras",
lambda model, funcname="sample_lms": KDiffusionSampler(
funcname, model
),
["k_lms_ka"],
{"scheduler": "karras"},
),
SamplerData(
"DPM++ SDE Karras",
lambda model, funcname="sample_dpmpp_sde": KDiffusionSampler(
funcname, model
),
["k_dpmpp_sde_ka"],
{"scheduler": "karras"},
),
SamplerData(
"DPM++ 2S a Karras",
lambda model, funcname="sample_dpmpp_2s_ancestral": KDiffusionSampler(
funcname, model
),
["k_dpmpp_2s_a_ka"],
{"scheduler": "karras"},
),
]
sd_samplers.samplers.extend(samplers)
sd_samplers.samplers_for_img2img.extend(samplers)
Expand Down

0 comments on commit 21cdca4

Please sign in to comment.