mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 03:40:16 +08:00
fix ruff run test
This commit is contained in:
parent
661e1043d1
commit
e3a39e8c79
@ -536,7 +536,7 @@ class VAE:
|
|||||||
self.working_dtypes = [torch.bfloat16, torch.float16, torch.float32]
|
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_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)
|
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]
|
dim = sd["decoder.head.0.gamma"].shape[0]
|
||||||
self.upscale_ratio = (lambda a: max(0, a * 4 - 3), 8, 8)
|
self.upscale_ratio = (lambda a: max(0, a * 4 - 3), 8, 8)
|
||||||
self.upscale_index_formula = (4, 8, 8)
|
self.upscale_index_formula = (4, 8, 8)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user