Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Mar 19, 2023
1 parent 5e28401 commit bde9f22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion make_a_video_pytorch/make_a_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def __init__(
self.temporal_attn = Attention(dim = dim, dim_head = dim_head, heads = heads)
self.temporal_rel_pos_bias = ContinuousPositionBias(dim = dim // 2, heads = heads, num_dims = 1)

self.has_feed_forward = add_feed_forward
if not add_feed_forward:
return

Expand Down Expand Up @@ -315,7 +316,9 @@ def forward(

x = rearrange(x, '(b h w) f c -> b c f h w', w = w, h = h)

x = self.ff(x, enable_time = enable_time) + x
if self.has_feed_forward:
x = self.ff(x, enable_time = enable_time) + x

return x

# resnet block
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'make-a-video-pytorch',
packages = find_packages(exclude=[]),
version = '0.1.0',
version = '0.1.1',
license='MIT',
description = 'Make-A-Video - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit bde9f22

Please sign in to comment.