DDPG-Keras-Torcs icon indicating copy to clipboard operation
DDPG-Keras-Torcs copied to clipboard

Track change failed

Open Artioss opened this issue 8 years ago • 10 comments

I trained a model in the track CG Speedway number 1, and it work well when test in this track. But when I change the track(e.g. to CG track 2), and the trained model seem not work, the car run out of the track. Is that means for every different track, I have to train different models ?

Artioss avatar Nov 29 '16 09:11 Artioss

No. It probably means you are overfit the model in CG Speedway. I suggest you try following

  1. Train on a more difficult track and test out in CG speedway number 1 instead.
  2. Apply L2 Regularization to your Neural Network and make sure not overfit
  3. Do cross-validation on training/testing different tracks.

In fact, even in the original Deepmind paper, they did not test their model on the validation data. I did validate my model where the training data and validation dataset are different.

yanpanlau avatar Nov 29 '16 09:11 yanpanlau

@yanpanlau Thanks for your suggestions, i'll try it soon. Could you please tell me what's your training & validation tracks? By the way, what's your opinion with issue #2? Thank you.

Artioss avatar Nov 30 '16 06:11 Artioss

would you like tell us how you change the track by which interface or script? @yanpanlau @Artioss

deepmeng avatar Apr 19 '17 15:04 deepmeng

Hi,

  1. sudo torcs
  2. Click Race
  3. Click Practice
  4. Click Configure Race
  5. Choose different track
  6. Click New Race

Then you should see the game load a new track. Then you can click Ctrl + C to quit and run your AI agent.

On Wed, Apr 19, 2017 at 11:24 PM, Benjamin [email protected] wrote:

would you like tell us how you change the track by which interface or script? @yanpanlau https://github.com/yanpanlau @Artioss https://github.com/Artioss

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yanpanlau/DDPG-Keras-Torcs/issues/6#issuecomment-295309095, or mute the thread https://github.com/notifications/unsubscribe-auth/AO1sY8x5C9XrB9Zx3oqc53FaQiS-kO87ks5rxicfgaJpZM4K-u6u .

yanpanlau avatar Apr 19 '17 15:04 yanpanlau

Hi man, sorry to bother you, this visualization method we all know. Do you know is there a method to config it in some functions? I read and modify the *.py files, but it does not work.

deepmeng avatar Apr 19 '17 15:04 deepmeng

I have not do it myself before. The original author (gym_torcs) use a unix tools called xautomation to do the "actual mouse click", you may want to try that

On Wed, Apr 19, 2017 at 11:44 PM, Benjamin [email protected] wrote:

Hi man, sorry to bother you, this visualization method we all know. Do you know is there a method to config it in some functions? I read and modify the *.py files, but it does not work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yanpanlau/DDPG-Keras-Torcs/issues/6#issuecomment-295316658, or mute the thread https://github.com/notifications/unsubscribe-auth/AO1sY2zFfbjMLfhB8O47IopM-es41d8Eks5rxivwgaJpZM4K-u6u .

yanpanlau avatar Apr 19 '17 15:04 yanpanlau

thanks very much!

deepmeng avatar Apr 19 '17 15:04 deepmeng

Hi man, excuse me, could you please tell us how we can change the mode from "practice" to "quick race", and always keep it in "quick race"? THX very much!

deepmeng avatar May 14 '17 03:05 deepmeng

Hey, I currently also look into this project, have you found how to change the mode and could you please tell me? @deepmeng

JiaojiaoYe1994 avatar Sep 05 '18 10:09 JiaojiaoYe1994

@JiaojiaoYe1994 I'm very sorry about this. I can't remember it anymore...

deepmeng avatar Sep 05 '18 11:09 deepmeng