avant codex
This commit is contained in:
37
test_yolo/README.md
Normal file
37
test_yolo/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Test YOLO (feuilles/plantes)
|
||||
|
||||
## 1) Créer et activer un venv
|
||||
|
||||
```bash
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
```
|
||||
|
||||
## 2) Installer les dépendances
|
||||
|
||||
```bash
|
||||
pip install --upgrade pip
|
||||
pip install ultralyticsplus==0.0.28 ultralytics==8.0.43 opencv-python matplotlib
|
||||
```
|
||||
|
||||
## 3) Lancer un test
|
||||
|
||||
```bash
|
||||
python3 test_yolo/test_yolo_leaf.py --image /chemin/vers/ma_plante.jpg
|
||||
```
|
||||
|
||||
Sorties générées :
|
||||
- `test_yolo/output/detections.json`
|
||||
- `test_yolo/output/annotated.jpg`
|
||||
|
||||
## 4) Paramètres utiles
|
||||
|
||||
```bash
|
||||
python3 test_yolo/test_yolo_leaf.py \
|
||||
--image /chemin/vers/ma_plante.jpg \
|
||||
--conf 0.25 \
|
||||
--iou 0.45 \
|
||||
--max-det 1000 \
|
||||
--json-out test_yolo/output/detections.json \
|
||||
--image-out test_yolo/output/annotated.jpg
|
||||
```
|
||||
Reference in New Issue
Block a user