Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,37 @@ sdk: static
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 11 |
+
|
| 12 |
+
# Autonomous Driving Simulation
|
| 13 |
+
## Car Brain Storage
|
| 14 |
+
This repository contains code for storing and managing a car's brain in local storage using JavaScript. The car's brain is represented by a neural network, and this code allows you to save and discard the neural network as needed.
|
| 15 |
+
|
| 16 |
+
## Instructions
|
| 17 |
+
To store a car's brain in local storage, follow these steps:
|
| 18 |
+
|
| 19 |
+
1. Open the browser console.
|
| 20 |
+
2. Call the `save()` method.
|
| 21 |
+
|
| 22 |
+
To discard the stored neural network, follow these steps:
|
| 23 |
+
|
| 24 |
+
1. Open the browser console.
|
| 25 |
+
2. Call the `discard()` method.
|
| 26 |
+
|
| 27 |
+
## Adjusting Simulation Parameters
|
| 28 |
+
You can customize the simulation by adjusting the following parameters:
|
| 29 |
+
|
| 30 |
+
* Number of Cars Simulated in Parallel (N): To change the number of cars simulated in parallel, modify the value of `N` on line 9 in the code.
|
| 31 |
+
* Mutation Amount: To modify the mutation amount, update the value of `mutationAmount` on line 20 in the code.
|
| 32 |
+
|
| 33 |
+
## Changing Neural Network and Sensor Properties
|
| 34 |
+
If you want to change the properties of the neural network or the sensor, you need to discard the old ones from local storage. Follow these steps:
|
| 35 |
+
|
| 36 |
+
1. Open the browser console.
|
| 37 |
+
2. Call the `discard()` method.
|
| 38 |
+
|
| 39 |
+
By discarding the old properties, you ensure that the updated neural network and sensor properties are used in the simulation.
|
| 40 |
+
|
| 41 |
+
## Demo:
|
| 42 |
+
|
| 43 |
+
https://github.com/RustX2802/Autonomous-Driving/assets/72299347/809a1121-6565-415f-bf93-f77fb197505f
|