File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -336,11 +336,10 @@ class StableDiffusionGGML {
336336 // kcpp fallback to separate diffusion model passed as model
337337 if (version == VERSION_COUNT &&
338338 strlen (SAFE_STR (sd_ctx_params->model_path )) > 0 &&
339- strlen (SAFE_STR (sd_ctx_params->diffusion_model_path )) == 0 &&
340- t5_path_fixed!=" " )
339+ strlen (SAFE_STR (sd_ctx_params->diffusion_model_path )) == 0 )
341340 {
342- bool endswithsafetensors = ends_with (sd_ctx_params->model_path , " .safetensors" );
343- if (endswithsafetensors && !model_loader.has_diffusion_model_tensors ())
341+ // bool endswithsafetensors = ends_with(sd_ctx_params->model_path, ".safetensors");
342+ if (!model_loader.has_diffusion_model_tensors ())
344343 {
345344 LOG_INFO (" SD Diffusion Model tensors missing! Fallback trying alternative tensor names...\n " );
346345 if (!model_loader.init_from_file (sd_ctx_params->model_path , " model.diffusion_model." )) {
You can’t perform that action at this time.
0 commit comments