Fix temporal attention weight setting
This commit is contained in:
@@ -351,7 +351,7 @@ class TemporalTransformer(nn.Module): # nn.Module -> SpatialTransformer
|
||||
x = rearrange(x, 'b c f h w -> (b f) c h w')
|
||||
|
||||
if use_attn_strength(self.temporal_attn_strength):
|
||||
x = (self.temporal_conv_strength * 0.1) * x + x_in
|
||||
x = (self.temporal_attn_strength * 0.1) * x + x_in
|
||||
else:
|
||||
x = x + x_in
|
||||
return x
|
||||
|
||||
Reference in New Issue
Block a user