MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / _save_mp4

Function _save_mp4

scripts/render_simpler_env.py:79–85  ·  view source on GitHub ↗
(frames, path, fps=10)

Source from the content-addressed store, hash-verified

77
78
79def _save_mp4(frames, path, fps=10):
80 import imageio
81
82 if not frames:
83 return False
84 imageio.mimsave(path, [np.asarray(f).astype(np.uint8) for f in frames], fps=fps)
85 return True
86
87
88def render_task(task_name, *, steps, seed, out_dir, side_by_side):

Callers 1

render_taskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected