jiaweir commited on
Commit
4fd53d4
β€’
1 Parent(s): d948784

change fps

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,7 +147,7 @@ def gen_vid(input_path, seed, bg='white'):
147
  # frames = pipe(image, height, width, decode_chunk_size=2, generator=generator).frames[0]
148
  frames = pipe(image, height, width, generator=generator).frames[0]
149
 
150
- imageio.mimwrite(f"{input_dir}/{name}_generated.mp4", frames, fps=7)
151
  os.makedirs(f"{input_dir}/{name}_frames", exist_ok=True)
152
  for idx, img in enumerate(frames):
153
  img.save(f"{input_dir}/{name}_frames/{idx:03}.png")
@@ -244,9 +244,9 @@ if __name__ == "__main__":
244
 
245
  example_folder = os.path.join(os.path.dirname(__file__), 'data')
246
  examples_full = [
 
247
  [example_folder+'/csm_luigi_rgba.png', 10],
248
  [example_folder+'/anya_rgba.png', 42],
249
- [example_folder+'/panda.png', 42262],
250
  ]
251
 
252
  # Compose demo layout & data flow
 
147
  # frames = pipe(image, height, width, decode_chunk_size=2, generator=generator).frames[0]
148
  frames = pipe(image, height, width, generator=generator).frames[0]
149
 
150
+ imageio.mimwrite(f"{input_dir}/{name}_generated.mp4", frames, fps=14)
151
  os.makedirs(f"{input_dir}/{name}_frames", exist_ok=True)
152
  for idx, img in enumerate(frames):
153
  img.save(f"{input_dir}/{name}_frames/{idx:03}.png")
 
244
 
245
  example_folder = os.path.join(os.path.dirname(__file__), 'data')
246
  examples_full = [
247
+ [example_folder+'/panda.png', 40284],
248
  [example_folder+'/csm_luigi_rgba.png', 10],
249
  [example_folder+'/anya_rgba.png', 42],
 
250
  ]
251
 
252
  # Compose demo layout & data flow