소스 검색

Merge pull request #4333 from JohnTheNerd/comfyui-fix

fix: made the COMFYUI_FLUX_FP8_CLIP environment variable bool instead of str
Timothy Jaeryang Baek 9 달 전
부모
커밋
8074289a8f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/config.py

+ 1 - 1
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(