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