Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gym Videorecorder not working with LBFG environment #40

Open
bornexmachina opened this issue Dec 13, 2022 · 0 comments
Open

Gym Videorecorder not working with LBFG environment #40

bornexmachina opened this issue Dec 13, 2022 · 0 comments

Comments

@bornexmachina
Copy link

My steps so far:

  • Trained and saved model for LBFG
  • in run.py I highjack the evaluate_sequential()

env = runner.env._envs
env = gym.wrappers.Monitor(env, '/tmp/policy.mp4')
rec = VideoRecorder(env, enabled=True)

then I highjack runner.run(test_mode=True, rec=rec) in EpisodeRunner
by adding
rec.capture_frame()
in the while not terminated loop

afterwards I close the VideoRecorder.

My expectation would be a .mp4 Video. Instead I just get the .json files, which are empty.

Has anybody managed to get a Video out of epymarl?

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

No branches or pull requests

1 participant