foz commited on
Commit
cd5ecea
·
1 Parent(s): ba351d4

Fix duration

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -85,12 +85,12 @@ def create_gif(frames, fps, rescale=False, path=None, watermark=None):
85
  outputs.append(x)
86
  # imageio.imsave(os.path.join(dir, os.path.splitext(name)[0] + f'_{i}.jpg'), x)
87
 
88
- imageio.mimsave(path, outputs, duration=1000//fps)
89
  return path
90
 
91
 
92
  def post_process_gif(list_of_results, image_resolution):
93
  output_file = "/tmp/ddxk.gif"
94
- imageio.mimsave(output_file, list_of_results, duration=250)
95
  return output_file
96
 
 
85
  outputs.append(x)
86
  # imageio.imsave(os.path.join(dir, os.path.splitext(name)[0] + f'_{i}.jpg'), x)
87
 
88
+ imageio.mimsave(path, outputs, duration=1/fps)
89
  return path
90
 
91
 
92
  def post_process_gif(list_of_results, image_resolution):
93
  output_file = "/tmp/ddxk.gif"
94
+ imageio.mimsave(output_file, list_of_results, duration=1/4)
95
  return output_file
96