Skip to content

Commit bbfdfa5

Browse files
Merge pull request #4304 from hentailord85ez/k-diffusion-update
Add support for the new DPM-Solver++ samplers added to k-diffusion
2 parents 2e60423 + 1b6c2fc commit bbfdfa5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def prepare_enviroment():
142142

143143
stable_diffusion_commit_hash = os.environ.get('STABLE_DIFFUSION_COMMIT_HASH', "69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc")
144144
taming_transformers_commit_hash = os.environ.get('TAMING_TRANSFORMERS_COMMIT_HASH', "24268930bf1dce879235a7fddd0b2355b84d7ea6")
145-
k_diffusion_commit_hash = os.environ.get('K_DIFFUSION_COMMIT_HASH', "f4e99857772fc3a126ba886aadf795a332774878")
145+
k_diffusion_commit_hash = os.environ.get('K_DIFFUSION_COMMIT_HASH', "60e5042ca0da89c14d1dd59d73883280f8fce991")
146146
codeformer_commit_hash = os.environ.get('CODEFORMER_COMMIT_HASH', "c5b4593074ba6214284d6acd5f1719b6c5d739af")
147147
blip_commit_hash = os.environ.get('BLIP_COMMIT_HASH', "48211a1594f1321b00f14c9f7a5b4813144b2fb9")
148148

modules/sd_samplers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
('Heun', 'sample_heun', ['k_heun'], {}),
2525
('DPM2', 'sample_dpm_2', ['k_dpm_2'], {}),
2626
('DPM2 a', 'sample_dpm_2_ancestral', ['k_dpm_2_a'], {}),
27+
('DPM-Solver++(2S) a', 'sample_dpmpp_2s_ancestral', ['k_dpmpp_2s_a'], {}),
28+
('DPM-Solver++(2M)', 'sample_dpmpp_2m', ['k_dpmpp_2m'], {}),
2729
('DPM fast', 'sample_dpm_fast', ['k_dpm_fast'], {}),
2830
('DPM adaptive', 'sample_dpm_adaptive', ['k_dpm_ad'], {}),
2931
('LMS Karras', 'sample_lms', ['k_lms_ka'], {'scheduler': 'karras'}),
3032
('DPM2 Karras', 'sample_dpm_2', ['k_dpm_2_ka'], {'scheduler': 'karras'}),
3133
('DPM2 a Karras', 'sample_dpm_2_ancestral', ['k_dpm_2_a_ka'], {'scheduler': 'karras'}),
34+
('DPM-Solver++(2S) a Karras', 'sample_dpmpp_2s_ancestral', ['k_dpmpp_2s_a_ka'], {'scheduler': 'karras'}),
35+
('DPM-Solver++(2M) Karras', 'sample_dpmpp_2m', ['k_dpmpp_2m_ka'], {'scheduler': 'karras'}),
3236
]
3337

3438
samplers_data_k_diffusion = [

0 commit comments

Comments
 (0)