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: adaptation to older versions of pytroch
Jianqi Panf2e49b1d575b
diff --git a/comfy/sd1_clip.py b/comfy/sd1_clip.pyindex 7db7ee0f4..af621b2dc 100644--- a/comfy/sd1_clip.py+++ b/comfy/sd1_clip.py@@ -175,7 +175,7 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):else:precision_scope = lambda a, b: contextlib.nullcontext(a)- with precision_scope(model_management.get_autocast_device(device), torch.float32):+ with precision_scope(model_management.get_autocast_device(device), dtype=torch.float32):attention_mask = Noneif self.enable_attention_masks:attention_mask = torch.zeros_like(tokens)