We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3fa4f0 + f70609a commit 64bdc3fCopy full SHA for 64bdc3f
examples/atari_simple.py
@@ -24,7 +24,7 @@ def main():
24
"""Run a simple Atari episode."""
25
# Connect to the Atari environment server
26
print("Connecting to Atari environment...")
27
- env = AtariEnv(base_url="http://localhost:8000")
+ env = AtariEnv.from_docker_image("ghcr.io/meta-pytorch/openenv-atari-env:latest")
28
29
try:
30
# Reset the environment
@@ -42,7 +42,8 @@ def main():
42
for step in range(100):
43
# Random action
44
action_id = np.random.choice(result.observation.legal_actions)
45
-
+ action_id = int(action_id)
46
+
47
# Take action
48
result = env.step(AtariAction(action_id=action_id))
49
0 commit comments