Spaces:
Runtime error
Runtime error
foz
commited on
Commit
·
ba351d4
1
Parent(s):
dd897ce
Fix fps change
Browse files
utils.py
CHANGED
|
@@ -85,7 +85,7 @@ 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,
|
| 89 |
return path
|
| 90 |
|
| 91 |
|
|
|
|
| 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 |
|