mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-10 14:07:05 +08:00
activations_shape should be a list
This commit is contained in:
parent
6c0fe7c491
commit
d6a29b36a1
@ -847,7 +847,7 @@ class SpatialTransformer(nn.Module):
|
|||||||
if not isinstance(context, list):
|
if not isinstance(context, list):
|
||||||
context = [context] * len(self.transformer_blocks)
|
context = [context] * len(self.transformer_blocks)
|
||||||
b, c, h, w = x.shape
|
b, c, h, w = x.shape
|
||||||
transformer_options["activations_shape"] = x.shape
|
transformer_options["activations_shape"] = list(x.shape)
|
||||||
x_in = x
|
x_in = x
|
||||||
x = self.norm(x)
|
x = self.norm(x)
|
||||||
if not self.use_linear:
|
if not self.use_linear:
|
||||||
@ -963,7 +963,7 @@ class SpatialVideoTransformer(SpatialTransformer):
|
|||||||
transformer_options={}
|
transformer_options={}
|
||||||
) -> torch.Tensor:
|
) -> torch.Tensor:
|
||||||
_, _, h, w = x.shape
|
_, _, h, w = x.shape
|
||||||
transformer_options["activations_shape"] = x.shape
|
transformer_options["activations_shape"] = list(x.shape)
|
||||||
x_in = x
|
x_in = x
|
||||||
spatial_context = None
|
spatial_context = None
|
||||||
if exists(context):
|
if exists(context):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user