Skip to content

Commit c231635

Browse files
committed
allow usage of flux without some components
1 parent 96a7003 commit c231635

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

otherarch/sdcpp/stable-diffusion.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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.")) {

0 commit comments

Comments
 (0)