Skip to content

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 VAELoader (#11880)

comfyanonymousd1504404662d
diff --git a/nodes.py b/nodes.py
index 90c5f2a6e..aa8572446 100644
--- a/nodes.py
+++ b/nodes.py
@@ -788,6 +788,7 @@ class VAELoader:
#TODO: scale factor?
def load_vae(self, vae_name):
+ metadata = None
if vae_name == "pixel_space":
sd = {}
sd["pixel_space_vae"] = torch.tensor(1.0)