yolo_darknet_sur_un_portable_optimus
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
yolo_darknet_sur_un_portable_optimus [2019/08/08 16:59] – ↷ Liens modifiés en raison d'un déplacement. serge | yolo_darknet_sur_un_portable_optimus [2020/02/04 16:23] – ↷ Liens modifiés en raison d'un déplacement. serge | ||
---|---|---|---|
Ligne 44: | Ligne 44: | ||
sudo apt-get install --no-install-recommends libcudnn7=7.4.1.5-1+cuda10.0 | sudo apt-get install --no-install-recommends libcudnn7=7.4.1.5-1+cuda10.0 | ||
sudo apt-get install cmake clang python3-pip libopencv-dev libopencv-core-dev libopencv-highgui-dev libopencv-flann-dev libopencv-photo-dev libopencv-video-dev | sudo apt-get install cmake clang python3-pip libopencv-dev libopencv-core-dev libopencv-highgui-dev libopencv-flann-dev libopencv-photo-dev libopencv-video-dev | ||
- | sudo pip3 install opencv-python==3.4.5.20 | + | sudo pip3 install opencv-python==3.4.5.20 |
</ | </ | ||
Ligne 51: | Ligne 51: | ||
Pour faire les mises à jour, il faudrait d' | Pour faire les mises à jour, il faudrait d' | ||
- | ====Installation complémentaire==== | + | ====Installation complémentaire |
- | sudo apt install python3-pip | + | |
- | sudo pip3 install numpy scikit-image | + | |
Installation de mon module personnel: [[: | Installation de mon module personnel: [[: | ||
Ligne 61: | Ligne 58: | ||
=====Installation de YOLO Darknet===== | =====Installation de YOLO Darknet===== | ||
Dans les [[https:// | Dans les [[https:// | ||
+ | |||
+ | Pour ajouter la libération de la RAM GPU entre 2 détections dans un script python, | ||
+ | [[Darknet Letters unload GPU RAM in python script|Darknet Letters unload GPU RAM in python script]] | ||
====Options de Makefile avec GPU avec CUDA avec OPENCV==== | ====Options de Makefile avec GPU avec CUDA avec OPENCV==== | ||
< | < | ||
Ligne 96: | Ligne 96: | ||
{{: | {{: | ||
{{: | {{: | ||
- | |||
- | Les commandes pour exécuter .darknet ont comme argument: | ||
- | axe/ | ||
| | ||
**darknet53.conv.74** | **darknet53.conv.74** | ||
Ligne 149: | Ligne 146: | ||
=====Training===== | =====Training===== | ||
- | export PATH=/ | ||
./darknet detector train axe/ | ./darknet detector train axe/ | ||
Ligne 189: | Ligne 185: | ||
for thresh = 0.25, precision = 0.97, recall = 0.95, F1-score = 0.96 | for thresh = 0.25, precision = 0.97, recall = 0.95, F1-score = 0.96 | ||
for thresh = 0.25, TP = 5699, FP = 188, FN = 301, average IoU = 87.69 % | for thresh = 0.25, TP = 5699, FP = 188, FN = 301, average IoU = 87.69 % | ||
- | |||
IoU threshold = 50 %, used Area-Under-Curve for each unique Recall | IoU threshold = 50 %, used Area-Under-Curve for each unique Recall | ||
mean average precision (mAP@0.50) = 0.982366, or 98.24 % | mean average precision (mAP@0.50) = 0.982366, or 98.24 % | ||
- | Total Detection Time: 78.000000 Seconds | ||
- | |||
- | Set -points flag: | ||
- | | ||
- | | ||
- | | ||
- | |||
| | ||
- | Saving weights to axe/ | ||
- | Saving weights to axe/ | ||
- | Saving weights to axe/ | ||
</ | </ | ||
- | |||
- | ===Le fichier final obtenu=== | ||
- | * **{{ : | ||
=====Testing===== | =====Testing===== | ||
====Test sur une image==== | ====Test sur une image==== | ||
- | export PATH=/ | ||
./darknet detector test axe/ | ./darknet detector test axe/ | ||
Ligne 216: | Ligne 197: | ||
<WRAP group> | <WRAP group> | ||
<WRAP half column> | <WRAP half column> | ||
- | {{:2019_03: | + | {{media_01: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
- | {{:2019_03: | + | {{media_01: |
shot_36_space.jpg: | shot_36_space.jpg: | ||
space: 40% | space: 40% | ||
Ligne 238: | Ligne 219: | ||
* **[[https:// | * **[[https:// | ||
- | {{tag> ia sb semaphore}} | + | {{tag> ia sb semaphore |
yolo_darknet_sur_un_portable_optimus.txt · Dernière modification : 2020/12/27 15:09 de serge