mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-30 21:19:40 +00:00
bd2a796217
The discard-path fix (#3683) deletes staging for all camera_keys in clear_episode_buffer(). The post-save cleanup in save_episode() must keep iterating image_keys only: with batch_encoding_size > 1 the video staging frames of already-saved episodes stay on disk until the batch encoder consumes and deletes them. Add a regression test pinning that behavior, plus a comment explaining why the two paths differ. Co-authored-by: Steven Palma <imstevenpmwork@ieee.org>