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 missing variable.

comfyanonymousd2da346b0b76
diff --git a/comfy/sd.py b/comfy/sd.py
index 428607107..315d9512c 100644
--- a/comfy/sd.py
+++ b/comfy/sd.py
@@ -535,6 +535,7 @@ class T2IAdapter:
output_dtype = x_noisy.dtype
out = {'input':[]}
+ autocast_enabled = torch.is_autocast_enabled()
for i in range(len(self.control_input)):
key = 'input'
x = self.control_input[i] * self.strength