archives:archive_yolo_v3_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édente | ||
archives:archive_yolo_v3_sur_un_portable_optimus [2019/04/29 16:38] – ↷ Page déplacée de archive_yolo_v3_sur_un_portable_optimus à archives:archive_yolo_v3_sur_un_portable_optimus serge | archives:archive_yolo_v3_sur_un_portable_optimus [2019/08/11 17:11] (Version actuelle) – supprimée serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Archive YOLO v3 sur un portable Optimus ====== | ||
- | <WRAP center round box 80% centeralign> | ||
- | // | ||
- | **Xubuntu 18.04 CUDA 10 CUDNN 7 ** | ||
- | </ | ||
- | <WRAP center round box 80% centeralign> | ||
- | **{{tagpage> | ||
- | </ | ||
- | |||
- | =====Ressources et documentation de YOLO Darknet===== | ||
- | ===Darknet=== | ||
- | * **[[https:// | ||
- | * **[[https:// | ||
- | * **[[https:// | ||
- | * **[[https:// | ||
- | ===Portable Optimus=== | ||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | * [[https:// | ||
- | * https:// | ||
- | |||
- | |||
- | =====Installation du driver Nvidia===== | ||
- | **Sur Xubuntu 18.04**\\ | ||
- | Avec pilotes additionnels, | ||
- | |||
- | =====Installation de tensorflow GPU===== | ||
- | **Uniquement pour tester le calcul sur GPU**\\ | ||
- | * **[[https:// | ||
- | < | ||
- | # | ||
- | sudo apt-get install libcupti-dev | ||
- | # A utiliser avec: | ||
- | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ | ||
- | |||
- | # Add NVIDIA package repositories | ||
- | wget https:// | ||
- | sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | ||
- | sudo apt-key adv --fetch-keys https:// | ||
- | sudo apt-get update | ||
- | wget http:// | ||
- | sudo apt install ./ | ||
- | sudo apt-get update | ||
- | |||
- | # Install development and runtime libraries (~4GB) | ||
- | sudo apt-get install --no-install-recommends cuda-10-0 libcudnn7=7.4.1.5-1+cuda10.0 libcudnn7-dev=7.4.1.5-1+cuda10.0 | ||
- | |||
- | # Install TensorRT. Requires that libcudnn7 is installed above. | ||
- | sudo apt-get update && sudo apt-get install nvinfer-runtime-trt-repo-ubuntu1804-5.0.2-ga-cuda10.0 && sudo apt-get update && sudo apt-get install -y --no-install-recommends libnvinfer-dev=5.0.2-1+cuda10.0 | ||
- | </ | ||
- | |||
- | Test: | ||
- | python3 | ||
- | <code python> | ||
- | import tensorflow as tf | ||
- | hello = tf.constant(' | ||
- | sess = tf.Session() | ||
- | print(sess.run(hello)) | ||
- | </ | ||
- | Ne marche pas ma carte est trop vielle ! | ||
- | =====Installation de CUDA===== | ||
- | < | ||
- | wget -c https:// | ||
- | sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb | ||
- | sudo apt-key add / | ||
- | sudo apt-key add / | ||
- | sudo apt-get update | ||
- | sudo apt-get install cuda | ||
- | </ | ||
- | =====Installation de CUDNN===== | ||
- | * **https:// | ||
- | * https:// | ||
- | |||
- | Remarque: Début des essais avec | ||
- | sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | ||
- | qui n'a pas installer cudnn !! | ||
- | |||
- | Il faut avoir un compte sur Nvidia et se loguer pour pouvoir télécharger: | ||
- | wget -c https:// | ||
- | |||
- | Décompresser, | ||
- | sudo cp -P / | ||
- | sudo cp / | ||
- | sudo chmod a+r / | ||
- | | ||
- | =====Darknet===== | ||
- | ===Dépendances=== | ||
- | sudo apt-get install cmake | ||
- | sudo apt-get install clang | ||
- | sudo apt-get install python3-pip | ||
- | sudo pip3 install opencv-python==3.4.5.20 | ||
- | sudo apt-get install libopencv-core-dev libopencv-highgui-dev libopencv-flann-dev libopencv-photo-dev libopencv-video-dev libopencv-dev | ||
- | |||
- | export PATH=/ | ||
- | nvcc -V | ||
- | export PATH=/ | ||
- | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ | ||
- | make | ||
- | | ||
- | | ||
- | =====Création du set d' | ||
- | Nous avons 1000 images 416x416 obtenus avec **[[2019_04: | ||
- | et les fichiers test.txt et train.txt | ||
- | ====Mon sémaphore==== | ||
- | Python 3.6.7 pour utiliser les sources de **[[https:// | ||
- | # pour mes projets | ||
- | sudo pip3 install -e git+https:// | ||
- | |||
- | {{tag>sb archive}} |
archives/archive_yolo_v3_sur_un_portable_optimus.1556555918.txt.gz · Dernière modification : 2019/04/29 16:38 de serge