The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Generalize MacOS version check for force-upcast-attention (#4548)
David7b70b266d843
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex a4174c65a..ca7221f36 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -884,7 +884,8 @@ def pytorch_attention_flash_attention():def force_upcast_attention_dtype():upcast = args.force_upcast_attentiontry:- if platform.mac_ver()[0] in ['14.5']: #black image bug on OSX Sonoma 14.5+ macos_version = tuple(int(n) for n in platform.mac_ver()[0].split("."))+ if (14, 5) <= macos_version < (14, 7): # black image bug on recent versions of MacOSupcast = Trueexcept:pass