Skip to content

Comments

Fix mario video not recorded with standard gymnasium RecordVideo#116

Open
JaydenTeoh wants to merge 2 commits intoFarama-Foundation:mainfrom
JaydenTeoh:fix_mario_video
Open

Fix mario video not recorded with standard gymnasium RecordVideo#116
JaydenTeoh wants to merge 2 commits intoFarama-Foundation:mainfrom
JaydenTeoh:fix_mario_video

Conversation

@JaydenTeoh
Copy link
Contributor

@JaydenTeoh JaydenTeoh commented Mar 7, 2025

Not sure if anyone observed this but for gym-super-mario-bros, the standard Gymnasium RecordVideo is not able to record videos for it. I spent quite a while on building this wrapper that allow video recording for MOSuperMarioBros and I thought it'll be nice to share.

Standard Gymnasium RecordVideo
https://github.com/user-attachments/assets/00d429bb-cee3-4c1d-bb72-aee1ac492551

NEW RecordMarioVideo
https://github.com/user-attachments/assets/7d020fb3-cf33-4298-a92f-1d6970909f6b

Made corresponding fix in MORL-Baselines, see LucasAlegre/morl-baselines#137

@ffelten ffelten requested a review from LucasAlegre March 10, 2025 08:24
@LucasAlegre
Copy link
Collaborator

Ideally, it would be better if we could modify the Mario env to support the original RecordVideo wrapper. @JaydenTeoh is it impossible?
If so, could you fix the falling tests? Then I can merge the PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants