Skip to content

Commit

Permalink
fix: update sampler names to include cfgpp variant for euler and eule…
Browse files Browse the repository at this point in the history
…r ancestral
  • Loading branch information
Aatrick committed Mar 2, 2025
1 parent 2609a2f commit b4d5615
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/sample/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,13 @@ def ksampler(
if sampler_name == "dpmpp_2m_cfgpp":
sampler_function = samplers.sample_dpmpp_2m_cfgpp

elif sampler_name == "euler_ancestral":
elif sampler_name == "euler_ancestral_cfgpp":
sampler_function = samplers.sample_euler_ancestral_dy_cfg_pp

elif sampler_name == "dpmpp_sde_cfgpp":
sampler_function = samplers.sample_dpmpp_sde_cfgpp

elif sampler_name == "euler":
elif sampler_name == "euler_cfgpp":
sampler_function = samplers.sample_euler_dy_cfg_pp

else:
Expand Down
4 changes: 2 additions & 2 deletions modules/user/GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def _generate_image(self) -> None:
seed=random.randint(1, 2**64),
steps=10,
cfg=8,
sampler_name="euler_ancestral",
sampler_name="euler_ancestral_cfgpp",
scheduler="normal",
denoise=0.45,
model=hidiffoptimizer.go(
Expand Down Expand Up @@ -997,7 +997,7 @@ def _generate_image_flux(self) -> None:
seed=random.randint(1, 2**64),
steps=20,
cfg=1,
sampler_name="euler",
sampler_name="euler_cfgpp",
scheduler="beta",
denoise=1,
model=unetloadergguf_10[0],
Expand Down
4 changes: 2 additions & 2 deletions modules/user/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def pipeline(
seed=random.randint(1, 2**64),
steps=20,
cfg=1,
sampler_name="euler",
sampler_name="euler_cfgpp",
scheduler="beta",
denoise=1,
model=unetloadergguf_10[0],
Expand Down Expand Up @@ -313,7 +313,7 @@ def pipeline(
seed=random.randint(1, 2**64),
steps=10,
cfg=8,
sampler_name="euler_ancestral",
sampler_name="euler_ancestral_cfgpp",
scheduler="normal",
denoise=0.45,
model=hidiffoptimizer.go(
Expand Down

0 comments on commit b4d5615

Please sign in to comment.