@@ -251,7 +251,7 @@ int convert_sd3(const convert_params& params, const SDVersion ver) {
251
251
return 1 ;
252
252
}
253
253
254
- if (!ignore_vae) {
254
+ if (!ignore_vae || !params. vae_model_file_path . empty () ) {
255
255
if (params.vae_model_file_path .empty ()) {
256
256
loaded = loader.init_from_safetensors_file (params.model_path , " vae/diffusion_pytorch_model" , params.vae_output_type , " vae." );
257
257
} else {
@@ -316,7 +316,7 @@ int convert_flux(const convert_params& params, const SDVersion ver) {
316
316
return 1 ;
317
317
}
318
318
319
- if (!ignore_vae) {
319
+ if (!ignore_vae || !params. vae_model_file_path . empty () ) {
320
320
if (params.vae_model_file_path .empty ()) {
321
321
loaded = loader.init_from_safetensors_file (params.model_path , " vae/diffusion_pytorch_model" , params.vae_output_type , " vae." );
322
322
} else {
@@ -367,7 +367,7 @@ int convert_sdxl(const convert_params& params, const SDVersion ver) {
367
367
return 1 ;
368
368
}
369
369
370
- if (!ignore_vae) {
370
+ if (!ignore_vae || !params. vae_model_file_path . empty () ) {
371
371
if (params.vae_model_file_path .empty ()) {
372
372
loaded = loader.init_from_safetensors_file (params.model_path , " vae/diffusion_pytorch_model" , params.vae_output_type , " vae." );
373
373
} else {
@@ -420,7 +420,7 @@ int convert_sd(const convert_params& params, const SDVersion ver) {
420
420
return 1 ;
421
421
}
422
422
423
- if (!ignore_vae) {
423
+ if (!ignore_vae || !params. vae_model_file_path . empty () ) {
424
424
if (params.vae_model_file_path .empty ()) {
425
425
loaded = loader.init_from_safetensors_file (params.model_path , " vae/diffusion_pytorch_model" , params.vae_output_type , " vae." );
426
426
} else {
0 commit comments