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 AttributeError in VAE.is_dynamic() for VAEs constructed without a patcher (#14826)
j2gg0sc6cb9049943a
diff --git a/comfy/sd.py b/comfy/sd.pyindex faf3104f3..071a3102a 100644--- a/comfy/sd.py+++ b/comfy/sd.py@@ -1255,7 +1255,10 @@ class VAE:return Nonedef is_dynamic(self):- return self.patcher.is_dynamic()+ # A VAE built from a state dict with no detectable VAE weights returns early+ # from __init__ ("No VAE weights detected") before self.patcher is assigned.+ patcher = getattr(self, "patcher", None)+ return patcher is not None and patcher.is_dynamic()class StyleModel:def __init__(self, model, device="cpu"):