File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ def __init__(
33
33
uint8_visual = False ,
34
34
multiagent = False ,
35
35
flatten_branched = False ,
36
+ no_graphics = False
36
37
):
37
38
"""
38
39
Environment initialization
@@ -42,8 +43,9 @@ def __init__(
42
43
:param uint8_visual: Return visual observations as uint8 (0-255) matrices instead of float (0.0-1.0).
43
44
:param multiagent: Whether to run in multi-agent mode (lists of obs, reward, done).
44
45
:param flatten_branched: If True, turn branched discrete action spaces into a Discrete space rather than MultiDiscrete.
46
+ :param no_graphics: Whether to run the Unity simulator in no-graphics mode
45
47
"""
46
- self ._env = UnityEnvironment (environment_filename , worker_id )
48
+ self ._env = UnityEnvironment (environment_filename , worker_id , no_graphics = no_graphics )
47
49
self .name = self ._env .academy_name
48
50
self .visual_obs = None
49
51
self ._current_state = None
You can’t perform that action at this time.
0 commit comments