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