Skip to content

Commit

Permalink
Add samplers: euler, euler a
Browse files Browse the repository at this point in the history
  • Loading branch information
sejoung committed Dec 14, 2023
1 parent 1b3f00f commit 21fd767
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ ai_diffusion/styles/*
!ai_diffusion/styles/digital-artwork*.json
krita_ai_diffusion*.zip
TODO.md
.idea
venv
.DS_Store
2 changes: 2 additions & 0 deletions ai_diffusion/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"DPM++ SDE Karras",
"UniPC BH2",
"LCM",
"Euler",
"Euler a",
]


Expand Down
4 changes: 4 additions & 0 deletions ai_diffusion/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def _sampler_params(
"DPM++ SDE Karras": "dpmpp_sde_gpu",
"UniPC BH2": "uni_pc_bh2",
"LCM": "lcm",
"Euler": "euler",
"Euler a": "euler_ancestral",
}[config.sampler]
sampler_scheduler = {
"DDIM": "ddim_uniform",
Expand All @@ -171,6 +173,8 @@ def _sampler_params(
"DPM++ SDE Karras": "karras",
"UniPC BH2": "ddim_uniform",
"LCM": "sgm_uniform",
"Euler": "normal",
"Euler a": "normal",
}[config.sampler]
params: dict[str, Any] = dict(
sampler=sampler_name,
Expand Down

0 comments on commit 21fd767

Please sign in to comment.