avisingh599 / imitation-dagger

[Reimplementation Ross et al 2011] An implementation of DAGGER using ConvNets for driving from pixels.
MIT License
72 stars 20 forks source link

problem of running the code #2

Open zsdonghao opened 7 years ago

zsdonghao commented 7 years ago

Hi, first of all, many thanks for your great work.

I got a problem and don't know whether it is caused by torcs' update or my misunderstanding.

cannot bind socketClient connected on 3101..............
Traceback (most recent call last):
  File "dagger.py", line 30, in <module>
    ob = env.reset(relaunch=True)
  File "/home/hao/Workspace/imitation-dagger/gym_torcs.py", line 190, in reset
    self.observation = self.make_observaton(obs)
  File "/home/hao/Workspace/imitation-dagger/gym_torcs.py", line 270, in make_observaton
    image_rgb = self.obs_vision_to_image_rgb(raw_obs[names[8]])
KeyError: 'img'

Thanks in advance.

avisingh599 commented 7 years ago

Yes, I think the server needs to be started first. Have you tried resizing the TORCS window to 64x64 before you run python dagger.py?