use TeleopEvents.RERECORD_EPISODE in gym_manipulator (#2165)
Co-authored-by: Michel Aractingi <michel.aractingi@huggingface.co>
This commit is contained in:
@@ -696,7 +696,7 @@ def control_loop(
|
|||||||
episode_idx += 1
|
episode_idx += 1
|
||||||
|
|
||||||
if dataset is not None:
|
if dataset is not None:
|
||||||
if transition[TransitionKey.INFO].get("rerecord_episode", False):
|
if transition[TransitionKey.INFO].get(TeleopEvents.RERECORD_EPISODE, False):
|
||||||
logging.info(f"Re-recording episode {episode_idx}")
|
logging.info(f"Re-recording episode {episode_idx}")
|
||||||
dataset.clear_episode_buffer()
|
dataset.clear_episode_buffer()
|
||||||
episode_idx -= 1
|
episode_idx -= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user