Long Nguyen commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- autonomous-driving
|
| 5 |
-
- planning
|
| 6 |
-
- pytorch
|
| 7 |
---
|
| 8 |
|
| 9 |
# TFv6 NavSim
|
|
@@ -15,27 +11,6 @@ Autonomous driving planning model (TransFuser-based). Predicts waypoints and hea
|
|
| 15 |
```bash
|
| 16 |
pip install torch timm numpy opencv-python jaxtyping beartype omegaconf huggingface_hub
|
| 17 |
```
|
| 18 |
-
|
| 19 |
-
### Quick Start
|
| 20 |
-
|
| 21 |
-
```python
|
| 22 |
-
from inference import TFv6NavSimInference
|
| 23 |
-
import numpy as np
|
| 24 |
-
|
| 25 |
-
# Auto-downloads from HuggingFace
|
| 26 |
-
model = TFv6NavSimInference()
|
| 27 |
-
|
| 28 |
-
# Prepare input
|
| 29 |
-
rgb = np.random.randint(0, 255, (256, 1920, 3), dtype=np.uint8)
|
| 30 |
-
command = [0, 1, 0, 0] # [left, straight, right, unknown]
|
| 31 |
-
speed = 5.0 # m/s
|
| 32 |
-
acceleration = 0.0 # m/s²
|
| 33 |
-
|
| 34 |
-
# Run inference
|
| 35 |
-
result = model.predict(rgb, command, speed, acceleration)
|
| 36 |
-
print(result['waypoints'].shape, result['headings'].shape)
|
| 37 |
-
```
|
| 38 |
-
|
| 39 |
## Input/Output
|
| 40 |
|
| 41 |
**Input:**
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# TFv6 NavSim
|
|
|
|
| 11 |
```bash
|
| 12 |
pip install torch timm numpy opencv-python jaxtyping beartype omegaconf huggingface_hub
|
| 13 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
## Input/Output
|
| 15 |
|
| 16 |
**Input:**
|