File tree 2 files changed +6
-26
lines changed
2 files changed +6
-26
lines changed Original file line number Diff line number Diff line change @@ -1564,20 +1564,7 @@ SDVersion ModelLoader::get_sd_version() {
1564
1564
}
1565
1565
1566
1566
ggml_type ModelLoader::get_sd_wtype () {
1567
- for (auto & tensor_storage : tensor_storages) {
1568
- if (is_unused_tensor (tensor_storage.name )) {
1569
- continue ;
1570
- }
1571
-
1572
- if (ggml_is_quantized (tensor_storage.type )) {
1573
- return tensor_storage.type ;
1574
- }
1575
-
1576
- if (tensor_should_be_converted (tensor_storage, GGML_TYPE_Q4_K)) {
1577
- return tensor_storage.type ;
1578
- }
1579
- }
1580
- return GGML_TYPE_COUNT;
1567
+ return get_diffusion_model_wtype ();
1581
1568
}
1582
1569
1583
1570
ggml_type ModelLoader::get_conditioner_wtype () {
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ const char* model_version_to_str[] = {
30
30
" SDXL" ,
31
31
" SDXL Refiner" ,
32
32
" SVD" ,
33
- " SD3 2B " ,
33
+ " SD3 Medium " ,
34
34
" Flux Dev" ,
35
35
" Flux Schnell" ,
36
- " SD3.5 8B " ,
37
- " SD3.5 2B " ,
38
- " Flux Lite 8B " ,
36
+ " SD3.5 Large " ,
37
+ " SD3.5 Medium " ,
38
+ " Flux Lite" ,
39
39
};
40
40
41
41
const char * sampling_methods_str[] = {
@@ -338,13 +338,6 @@ class StableDiffusionGGML {
338
338
339
339
if (version == VERSION_SDXL || version == VERSION_SDXL_REFINER) {
340
340
scale_factor = 0 .13025f ;
341
- if (vae_path.size () == 0 && taesd_path.size () == 0 ) {
342
- LOG_WARN (
343
- " !!!It looks like you are using SDXL model. "
344
- " If you find that the generated images are completely black, "
345
- " try specifying SDXL VAE FP16 Fix with the --vae parameter. "
346
- " You can find it here: https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/blob/main/sdxl_vae.safetensors" );
347
- }
348
341
} else if (sd_version_is_sd3 (version)) {
349
342
scale_factor = 1 .5305f ;
350
343
} else if (sd_version_is_flux (version)) {
@@ -376,7 +369,7 @@ class StableDiffusionGGML {
376
369
if (sd_version_is_dit (version)) {
377
370
use_t5xxl = true ;
378
371
}
379
- if (!ggml_backend_is_cpu (backend) && use_t5xxl && conditioner_wtype != GGML_TYPE_F32 ) {
372
+ if (!ggml_backend_is_cpu (backend) && use_t5xxl && conditioner_wtype != diffusion_model_wtype ) {
380
373
clip_on_cpu = true ;
381
374
LOG_INFO (" set clip_on_cpu to true" );
382
375
}
You can’t perform that action at this time.
0 commit comments