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

Fix looping

Browse files
Files changed (1) hide show
  1. utils.py +1 -5
utils.py CHANGED
@@ -85,12 +85,8 @@ 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=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
 
 
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, loop=0, duration=1000/fps)
89
  return path
90
 
91
 
 
 
 
 
92