This project showcases a car agent that has been trained using reinforcement learning to complete successful laps on a scaled-down version of the Circuit de Barcelona-Catalunya. We've used the mlagents
package from Unity for the agent's training.
- Unity (2022.3.9f1)
- mlagents package installed
Ensure that you've cloned this repository to your local machine.
Open a terminal or command prompt and navigate to the Build
folder of the cloned project.
To train the model yourself, run the following command:
mlagents-learn config.yaml --run-id=<YOUR_DESIRED_NAME>
A pre-trained model is included in the project. To see the car agent in action:
- Open the project in Unity.
- Play the environment from the Unity interface.
Enjoy the simulation and feel free to contribute or suggest improvements!