From e3a39e8c7946aa58814add38daedb00a1202eb20 Mon Sep 17 00:00:00 2001 From: jiangchengchengark <3306065226@qq.com> Date: Thu, 11 Dec 2025 10:43:56 +0800 Subject: [PATCH] fix ruff run test --- comfy/sd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/sd.py b/comfy/sd.py index 886acc333..bb1102885 100644 --- a/comfy/sd.py +++ b/comfy/sd.py @@ -536,7 +536,7 @@ class VAE: self.working_dtypes = [torch.bfloat16, torch.float16, torch.float32] self.memory_used_encode = lambda shape, dtype: 3300 * shape[3] * shape[4] * model_management.dtype_size(dtype) self.memory_used_decode = lambda shape, dtype: 8000 * shape[3] * shape[4] * (16 * 16) * model_management.dtype_size(dtype) - else: # Wan 2.1 VAE + else: # Wan 2.1 VAE dim = sd["decoder.head.0.gamma"].shape[0] self.upscale_ratio = (lambda a: max(0, a * 4 - 3), 8, 8) self.upscale_index_formula = (4, 8, 8)