python3 env.py
Track generation: 1148..1439 -> 291-tiles track
Traceback (most recent call last):
File "env.py", line 65, in
env.reset()
File "/home/dyf/.local/lib/python3.6/site-packages/gym/core.py", line 104, in reset
return self._reset()
File "/home/dyf/.local/lib/python3.6/site-packages/gym/envs/box2d/car_racing.py", line 292, in _reset
return self._step(None)[0]
File "/home/dyf/.local/lib/python3.6/site-packages/gym/envs/box2d/car_racing.py", line 304, in _step
self.state = self._render("state_pixels")
File "/home/dyf/.local/lib/python3.6/site-packages/gym/envs/box2d/car_racing.py", line 380, in _render
arr = np.fromstring(image_data.data, dtype=np.uint8, sep='')
AttributeError: 'ImageData' object has no attribute 'data'
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于