Iceclear commited on
Commit
47bef9f
·
verified ·
1 Parent(s): 0ac6e42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -319,6 +319,8 @@ def generation_loop(video_path='./test_videos', seed=666, fps_out=12, batch_size
319
  )[0]
320
  / 255.0
321
  )
 
 
322
  print(f"Read video size: {video.size()}")
323
  output_dir = 'output/' + str(uuid.uuid4()) + '.mp4'
324
  else:
 
319
  )[0]
320
  / 255.0
321
  )
322
+ if video.size(0) > 121:
323
+ video = video[:121]
324
  print(f"Read video size: {video.size()}")
325
  output_dir = 'output/' + str(uuid.uuid4()) + '.mp4'
326
  else: