yanpanlau / DDPG-Keras-Torcs

Using Keras and Deep Deterministic Policy Gradient to play TORCS
717 stars 267 forks source link

Backward image #9

Open Sridhar96 opened 7 years ago

Sridhar96 commented 7 years ago

Hi, thanks a lot for uploading your code! During train or test, after every episode there seems to be a another play where it seems like agent is looking backwards, or in different perspective. Also, when i run code initially it is not able to drive smoothly in track, despite setting train to zero. Would be glad if you can help! Thanks :)

saiprabhakar commented 7 years ago

I had similar issue with the changing perspective. I changed the perspective manually using a shortcut key when i was just messing with it, after that during training, the simulator gui displayed backward image of the car.

I just reinstalled torcs from scratch and it fixed the issue.

Sridhar96 commented 7 years ago

Is there any configuration to be done apart from the procedures detailed, i.e unzip, make install etc, run the code after converting it into python

  1. Anything to be changed in configuration steps or code? I tried reinstalling torcs too, same problem. Btw great video on YouTube!

On 23 Dec 2016 02:42, "Sai Prabhakar" notifications@github.com wrote:

I had similar issue with the changing perspective. I changed the perspective manually using a shortcut key when i was just messing with it, after that during training, the simulator gui displayed backward image of the car.

I just reinstalled torcs from scratch and it fixed the issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yanpanlau/DDPG-Keras-Torcs/issues/9#issuecomment-268891579, or mute the thread https://github.com/notifications/unsubscribe-auth/AMxcAjNrZ77fQeGcKhYHp9Z6KawZYSM_ks5rKufMgaJpZM4LT3xA .

saiprabhakar commented 7 years ago

Thanks. I didnt change any configuration, and I didnt use python 3 for installing gym torcs or the ddpg (I tried using python 3 as suggested in gym-torcs but i found it is not necessary). When I said i reinstalled I meant, I deleted the ~/.torcs file along with all the config files in the gym-torcs folder and reinstalled.

You can try changing the config by running torcs separately, and using the shortcuts to change the view (although this didnt work for me).