From cdcf2144550146ebc35b876ac05f10b8de31a012 Mon Sep 17 00:00:00 2001 From: John Karabudak Date: Sat, 3 Aug 2024 16:58:03 -0230 Subject: [PATCH] made the COMFYUI_FLUX_FP8_CLIP environment variable bool instead of str this should fix #4328 --- backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.py b/backend/config.py index e976b226d..753999511 100644 --- a/backend/config.py +++ b/backend/config.py @@ -1317,7 +1317,7 @@ COMFYUI_FLUX_WEIGHT_DTYPE = PersistentConfig( COMFYUI_FLUX_FP8_CLIP = PersistentConfig( "COMFYUI_FLUX_FP8_CLIP", "image_generation.comfyui.flux_fp8_clip", - os.getenv("COMFYUI_FLUX_FP8_CLIP", ""), + os.environ.get("COMFYUI_FLUX_FP8_CLIP", "").lower() == "true", ) IMAGES_OPENAI_API_BASE_URL = PersistentConfig(