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 wrapper - no graphics? #1413

Closed
adam-pociejowski opened this issue Nov 8, 2018 · 2 comments
Closed

Gym wrapper - no graphics? #1413

adam-pociejowski opened this issue Nov 8, 2018 · 2 comments
Assignees

Comments

@adam-pociejowski
Copy link

Hello,
Is it possible using gym wrapper to not render game while training?
If yes how can I do this?

@vincentpierre vincentpierre self-assigned this Nov 8, 2018
@vincentpierre
Copy link
Contributor

Hi, If you are building for Linux, you can check the headless checkbox when building the game. You can also turn off all the cameras in the scene, this will disable rendering but you will still see a black window open. UnityEnvironment has a no_graphics argument, you could try replacing this line with

self._env = UnityEnvironment(environment_filename, worker_id, no_graphics=True)

Note that visual observations will not work if you disable rendering.
I hope this helps.

vincentpierre added a commit that referenced this issue Apr 29, 2019
> Added the no_graphics argument to the gym interface. #1413
vincentpierre added a commit that referenced this issue Apr 29, 2019
> Added the no_graphics argument to the gym interface. #1413
eshvk pushed a commit that referenced this issue May 1, 2019
> Added the no_graphics argument to the gym interface. #1413
shihzy added a commit that referenced this issue May 1, 2019
* Update Learning-Environment-Create-New.md

Section : Final Editor Setup - Step 3. It says:
Drag the Brain RollerBallPlayer from the Project window to the RollerAgent Brain field.

Should say:
Drag the Brain RollerBallBrain from the Project window to the RollerAgent Brain field.

* Develop black format fix (#1998)

* fixed the format

* changed the circleci config

* [Gym] Added no_graphics argument (#1997)

> Added the no_graphics argument to the gym interface. #1413

* [Documentation] SetReward method (#1996)

Added a paragraph in the docs/Learning-Environment-Design-Agents.md document regarding the use of SetReward and how it is different from AddReward

* [Documentation] Added information for the environments the trainer cannot train with the default configurations (#1995)

* Format gym_unity using black
@lock
Copy link

lock bot commented Jan 3, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants