Skip to content

Commit

Permalink
move first residual after initial temporal attention
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 24, 2022
1 parent e4d9e9d commit 601acee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 = 'video-diffusion-pytorch',
packages = find_packages(exclude=[]),
version = '0.5.3',
version = '0.6.0',
license='MIT',
description = 'Video Diffusion - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down
3 changes: 2 additions & 1 deletion video_diffusion_pytorch/video_diffusion_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,11 @@ def forward(
time_rel_pos_bias = self.time_rel_pos_bias(x.shape[2], device = x.device)

x = self.init_conv(x)
r = x.clone()

x = self.init_temporal_attn(x, pos_bias = time_rel_pos_bias)

r = x.clone()

t = self.time_mlp(time) if exists(self.time_mlp) else None

# classifier free guidance
Expand Down

0 comments on commit 601acee

Please sign in to comment.