Skip to content

Commit 3b18ff0

Browse files
committed
refactor: sd api
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 883238c commit 3b18ff0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stable-diffusion.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,8 +1738,8 @@ sample_method_t sd_get_default_sample_method(sd_ctx_t* sd_ctx) {
17381738
case VERSION_SD3_MEDIUM:
17391739
case VERSION_SD3_5_MEDIUM:
17401740
case VERSION_SD3_5_LARGE:
1741-
case VERSION_FLUX_DEV:
17421741
case VERSION_FLUX_SCHNELL:
1742+
case VERSION_FLUX_DEV:
17431743
return EULER;
17441744
default:
17451745
return EULER_A;
@@ -1760,8 +1760,8 @@ int sd_get_default_sample_steps(sd_ctx_t* sd_ctx) {
17601760
case VERSION_SD3_MEDIUM:
17611761
case VERSION_SD3_5_MEDIUM:
17621762
case VERSION_SD3_5_LARGE:
1763-
case VERSION_FLUX_DEV:
17641763
case VERSION_FLUX_SCHNELL:
1764+
case VERSION_FLUX_DEV:
17651765
return 10;
17661766
default:
17671767
return 20;
@@ -1783,8 +1783,8 @@ float sd_get_default_cfg_scale(sd_ctx_t* sd_ctx) {
17831783
case VERSION_SD3_5_MEDIUM:
17841784
case VERSION_SD3_5_LARGE:
17851785
return 4.5f;
1786-
case VERSION_FLUX_DEV:
17871786
case VERSION_FLUX_SCHNELL:
1787+
case VERSION_FLUX_DEV:
17881788
return 1.0f;
17891789
default:
17901790
return 9.0f;

0 commit comments

Comments
 (0)