Skip to content

Solve OpenAI's Gymnasium Racecar problem with a custom DQN implementation! 🏎️

Notifications You must be signed in to change notification settings

sidlakkoju/Racecar-DQN

Repository files navigation

Racecar DQN!!! 🏎️💨

Click to watch the Demo!!!

alt text ^^Youtube^^

Training

Training parameters are in parameters.py. Adjust as needed.

Run train_model.py to train the model.

Trained Models

Found in the models directory.

  • model_weights_mps.pth (Best Performer) was trained on apple silicon with MPS.
  • model_weights_cuda.pth was trained on an Nvidia GPU with CUDA. Cuda trains much faster than cpu and mps.

Use test_model.py with appropriate weights path in agent.load_model() to test the model.

Resources Used

Drive Yourself 🏎️💨

  • Run manual_drive.py to drive the car yourself using the arrow keys. Can you beat the DQN? 🤔

About

Solve OpenAI's Gymnasium Racecar problem with a custom DQN implementation! 🏎️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages