The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix issue with OSX.
comfyanonymous8d694cc4507a
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex dcfd57b57..574fbf214 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -456,7 +456,13 @@ def mps_mode():def is_device_cpu(device):if hasattr(device, 'type'):- if (device.type == 'cpu' or device.type == 'mps'):+ if (device.type == 'cpu'):+ return True+ return False++def is_device_mps(device):+ if hasattr(device, 'type'):+ if (device.type == 'mps'):return Truereturn False@@ -468,7 +474,7 @@ def should_use_fp16(device=None, model_params=0):return Trueif device is not None: #TODO- if is_device_cpu(device):+ if is_device_cpu(device) or is_device_mps(device):return Falseif FORCE_FP32: