Spaces:
Sleeping
Sleeping
add readme
Browse files
README.md
CHANGED
|
@@ -7,6 +7,28 @@ sdk: docker
|
|
| 7 |
app_port: 7860
|
| 8 |
---
|
| 9 |
|
| 10 |
-
## Rubik's Cube Solver
|
| 11 |
|
| 12 |
-
Solve Rubik's Cube
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
app_port: 7860
|
| 8 |
---
|
| 9 |
|
| 10 |
+
## π§ Rubik's Cube Solver
|
| 11 |
|
| 12 |
+
Solve the Rubik's Cube using Reinforcement Learning! π
|
| 13 |
+
|
| 14 |
+
## ποΈββοΈ Train the Model
|
| 15 |
+
|
| 16 |
+
1. Navigate to the `rlcube` directory:
|
| 17 |
+
```
|
| 18 |
+
cd rlcube
|
| 19 |
+
```
|
| 20 |
+
2. Install dependencies:
|
| 21 |
+
```
|
| 22 |
+
uv sync
|
| 23 |
+
```
|
| 24 |
+
3. Activate the virtual environment:
|
| 25 |
+
```
|
| 26 |
+
source .venv/bin/activate
|
| 27 |
+
```
|
| 28 |
+
4. Start training:
|
| 29 |
+
```
|
| 30 |
+
python -m rlcube.train.train
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
After training, your model will be saved in the `models` folder.
|
| 34 |
+
Please rename the trained file to `model_final.pth` so it can be used by the API. π―
|