@@ -521,7 +521,7 @@ class StableDiffusionGGML {
521
521
} else {
522
522
// check is_using_v_parameterization_for_sd2
523
523
bool is_using_v_parameterization = false ;
524
- if (version == VERSION_2_x ) {
524
+ if (version == VERSION_SD2 ) {
525
525
if (is_using_v_parameterization_for_sd2 (ctx)) {
526
526
is_using_v_parameterization = true ;
527
527
}
@@ -530,21 +530,22 @@ class StableDiffusionGGML {
530
530
is_using_v_parameterization = true ;
531
531
}
532
532
533
- if (version == VERSION_SD3_2B) {
534
- LOG_INFO (" running in FLOW mode" );
535
- denoiser = std::make_shared<DiscreteFlowDenoiser>();
536
- } else if (version == VERSION_FLUX_DEV || version == VERSION_FLUX_SCHNELL) {
537
- LOG_INFO (" running in Flux FLOW mode" );
538
- float shift = 1 .15f ;
539
- if (version == VERSION_FLUX_SCHNELL) {
540
- shift = 1 .0f ; // TODO: validate
533
+ if (version == VERSION_SD3_2B) {
534
+ LOG_INFO (" running in FLOW mode" );
535
+ denoiser = std::make_shared<DiscreteFlowDenoiser>();
536
+ } else if (version == VERSION_FLUX_DEV || version == VERSION_FLUX_SCHNELL) {
537
+ LOG_INFO (" running in Flux FLOW mode" );
538
+ float shift = 1 .15f ;
539
+ if (version == VERSION_FLUX_SCHNELL) {
540
+ shift = 1 .0f ; // TODO: validate
541
+ }
542
+ denoiser = std::make_shared<FluxFlowDenoiser>(shift);
543
+ } else if (is_using_v_parameterization) {
544
+ LOG_INFO (" running in v-prediction mode" );
545
+ denoiser = std::make_shared<CompVisVDenoiser>();
546
+ } else {
547
+ LOG_INFO (" running in eps-prediction mode" );
541
548
}
542
- denoiser = std::make_shared<FluxFlowDenoiser>(shift);
543
- } else if (is_using_v_parameterization) {
544
- LOG_INFO (" running in v-prediction mode" );
545
- denoiser = std::make_shared<CompVisVDenoiser>();
546
- } else {
547
- LOG_INFO (" running in eps-prediction mode" );
548
549
}
549
550
550
551
if (schedule != DEFAULT) {
0 commit comments