The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add activations_shape info in UNet models (#7482)
Raphael Walker89e4ea01754f
diff --git a/comfy/ldm/modules/attention.py b/comfy/ldm/modules/attention.pyindex ede506463..45f9e311e 100644--- a/comfy/ldm/modules/attention.py+++ b/comfy/ldm/modules/attention.py@@ -847,6 +847,7 @@ class SpatialTransformer(nn.Module):if not isinstance(context, list):context = [context] * len(self.transformer_blocks)b, c, h, w = x.shape+ transformer_options["activations_shape"] = list(x.shape)x_in = xx = self.norm(x)if not self.use_linear:@@ -962,6 +963,7 @@ class SpatialVideoTransformer(SpatialTransformer):transformer_options={}) -> torch.Tensor:_, _, h, w = x.shape+ transformer_options["activations_shape"] = list(x.shape)x_in = xspatial_context = Noneif exists(context):