Spaces:
Paused
Paused
Linoy Tsaban commited on
Commit ·
5ef9d3c
1
Parent(s): 536f1c7
Update utils.py
Browse files41 unmodified lines4243444546474841 unmodified linesimage = T.ToPILImage()(video[i])# get new height and width to maintain aspect ratioheight, width = image.shapenew_height = img_size[0] * height / widthnew_width = img_size[1] * width / height41 unmodified lines4243444546474841 unmodified linesimage = T.ToPILImage()(video[i])# get new height and width to maintain aspect ratioheight, width = image.sizenew_height = img_size[0] * height / widthnew_width = img_size[1] * width / height
utils.py+1-1