Skip to content

Commit

Permalink
video_tensor_to_gif typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynmitchell committed Dec 29, 2023
1 parent bd81992 commit bdf2090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeta/utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def seek_all_images(img, channels=3):

# tensor of shape (channels, frames, height, width) -> GIF
def video_tensor_to_gift(tensor, path, duration=120, loop=0, optimize=True):
images = map(T.ToPilImage(), tensor.unbind(dim=1))
images = map(T.ToPILImage(), tensor.unbind(dim=1))
first_img, *rest_imgs = images
first_img.save(
path,
Expand Down

0 comments on commit bdf2090

Please sign in to comment.