Skip to content

Render wrapper#350

Merged
muupan merged 4 commits intochainer:masterfrom
muupan:render-wrapper
Nov 13, 2018
Merged

Render wrapper#350
muupan merged 4 commits intochainer:masterfrom
muupan:render-wrapper

Conversation

@muupan
Copy link
Copy Markdown
Member

@muupan muupan commented Nov 12, 2018

This PR adds chainerrl.wrappers.Render, an Env wrapper that calls env.render after every env.reset and env.step. All the examples that uses chainerrl.misc.env_modifiers.make_rendered switch to use the new wrapper.

Somehow chainerrl.misc.env_modifiers.make_rendered stopped to work correctly for atari environments, and this PR is needed to fix this issue.

I confirmed that all the affected examples work with rendering enabled.

@muupan muupan mentioned this pull request Nov 12, 2018
3 tasks
@prabhatnagarajan prabhatnagarajan self-assigned this Nov 12, 2018
Copy link
Copy Markdown
Contributor

@prabhatnagarajan prabhatnagarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM;

@muupan muupan merged commit dd38230 into chainer:master Nov 13, 2018
@muupan muupan deleted the render-wrapper branch November 13, 2018 07:20
@muupan muupan added this to the v0.5 milestone Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants