Skip to content

Way to record the replays of the training#29

Open
mateusmatiazzi wants to merge 3 commits intoinoryy:masterfrom
mateusmatiazzi:master
Open

Way to record the replays of the training#29
mateusmatiazzi wants to merge 3 commits intoinoryy:masterfrom
mateusmatiazzi:master

Conversation

@mateusmatiazzi
Copy link
Copy Markdown

Just changed some parameters to utilize the record function of Pysc2. I also changed the ReadMe to show how the new flags works.


env_cls = rvr.envs.GymEnv if '-v' in args.env else rvr.envs.SC2Env
env = env_cls(args.env, args.render, max_ep_len=args.max_ep_len)
env = env_cls(args.env, args.render,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This would break support for non-sc2 environments.
Can you add a general-purpose flag similar to render to base env class (e.g. call it monitor)? Simply ignore it in other envs for now.

Copy link
Copy Markdown
Owner

@inoryy inoryy left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good except for the minor compatibility issue with other envs.

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