From d2da346b0b7675d15c2181348cfb93a199e3f0b3 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sat, 25 Feb 2023 12:19:03 -0500 Subject: [PATCH] Fix missing variable. --- comfy/sd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comfy/sd.py b/comfy/sd.py index 42860710..315d9512 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