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 tiled vae not working with some shapes.

comfyanonymouscd6f61503886
diff --git a/comfy/utils.py b/comfy/utils.py
index 346593051..d03693bba 100644
--- a/comfy/utils.py
+++ b/comfy/utils.py
@@ -805,6 +805,8 @@ def tiled_scale_multidim(samples, function, tile=(64, 64), overlap = 8, upscale_
for d in range(2, dims + 2):
feather = round(get_upscale(d - 2, overlap[d - 2]))
+ if feather >= mask.shape[d]:
+ continue
for t in range(feather):
a = (t + 1) / feather
mask.narrow(d, t, 1).mul_(a)