Skip to content

Commit

Permalink
make sure training on only images work
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 9, 2022
1 parent 0af63d7 commit 3f4071d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make_a_video_pytorch/make_a_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def forward(
x, = unpack(x, ps, '* c h w')
x = rearrange(x, 'b f c h w -> b c f h w')

if not exists(self.down_time):
if not is_video or not exists(self.down_time):
return x

x = self.down_time(x)
Expand Down Expand Up @@ -330,7 +330,7 @@ def forward(
x, = unpack(x, ps, '* c h w')
x = rearrange(x, 'b f c h w -> b c f h w')

if not exists(self.up_time):
if not is_video or not exists(self.up_time):
return x

x = self.up_time(x)
Expand Down

0 comments on commit 3f4071d

Please sign in to comment.