Remove additional frame from eval render (#137)

This commit is contained in:
Alexander Soare 2024-05-05 12:49:53 +01:00 committed by GitHub
parent f6fe162432
commit 6e6feae09e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def eval_policy(
target=write_video, target=write_video,
args=( args=(
str(video_path), str(video_path),
stacked_frames[: done_index + 2], # + 2 to capture the observation frame after done stacked_frames[: done_index + 1], # + 1 to capture the last observation
env.unwrapped.metadata["render_fps"], env.unwrapped.metadata["render_fps"],
), ),
) )