Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Huggy - Trained Agent
|
| 2 |
+
|
| 3 |
+
**Author:** Vishand03
|
| 4 |
+
**Model Type:** Reinforcement Learning (PPO)
|
| 5 |
+
**Environment:** Custom Huggy Environment (ML-Agents)
|
| 6 |
+
**Framework:** ML-Agents + PyTorch
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Description
|
| 11 |
+
This model is a trained Huggy agent using the PPO algorithm.
|
| 12 |
+
It learns to navigate and complete tasks in the Huggy environment.
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
## Training Details
|
| 17 |
+
- **Trainer:** PPO
|
| 18 |
+
- **Steps:** ~800,000 (can be resumed)
|
| 19 |
+
- **Reward:** ~3.9 mean reward at the last checkpoint
|
| 20 |
+
- **Hyperparameters:**
|
| 21 |
+
- Batch size: 4096
|
| 22 |
+
- Buffer size: 40960
|
| 23 |
+
- Learning rate: 0.0001
|
| 24 |
+
- Gamma: 0.995
|
| 25 |
+
- Lambda: 0.95
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
```python
|
| 31 |
+
from mlagents_envs.environment import UnityEnvironment
|
| 32 |
+
from mlagents_envs.base_env import ActionTuple
|
| 33 |
+
import onnxruntime as ort
|
| 34 |
+
|
| 35 |
+
env = UnityEnvironment(file_name="Huggy.x86_64", no_graphics=True)
|
| 36 |
+
# Load model
|
| 37 |
+
session = ort.InferenceSession("Huggy-799913.onnx")
|
| 38 |
+
# Continue with your inference pipeline...
|