Skip to content

Commit

Permalink
quick fix for training on images
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Oct 19, 2023
1 parent 49dd0e9 commit 433f584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion magvit2_pytorch/magvit2_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def forward(
# accept images for image pretraining (curriculum learning from images to video)

if video_or_images.ndim == 4:
video = rearrange(video, 'b c ... -> b c 1 ...')
video = rearrange(video_or_images, 'b c ... -> b c 1 ...')
else:
video = video_or_images

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 = 'magvit2-pytorch',
packages = find_packages(),
version = '0.0.16',
version = '0.0.17',
license='MIT',
description = 'MagViT2 - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down

0 comments on commit 433f584

Please sign in to comment.