Rate this Page

encode_gif#

torchrl.render.video.encode_gif(frames: Sequence[ndarray], path: str | Path, fps: float) Path[source]#

Encodes RGB frames as an animated GIF using Pillow.