pose_estimation_avec_intel_ncs2_et_openvino
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 | ||
intel_neural_compute_stick_2 [2021/06/21 15:36] – [Installation] serge | pose_estimation_avec_intel_ncs2_et_openvino [2022/03/22 14:12] (Version actuelle) – [Utilisation de OpenVino avec Realsense D455] Benjamin Labomedia | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ======Intel | + | ====== |
{{ :: | {{ :: | ||
+ | <WRAP center round box 80% centeralign> | ||
+ | **{{tagpage> | ||
+ | </ | ||
<WRAP center round info 60% centeralign> | <WRAP center round info 60% centeralign> | ||
**Le Intel Neural Compute Stick 2, NCS2 fonctionne ave OpenVINO, un fork de OpenCV adapté à ce stick.** | **Le Intel Neural Compute Stick 2, NCS2 fonctionne ave OpenVINO, un fork de OpenCV adapté à ce stick.** | ||
</ | </ | ||
+ | {{ : | ||
=====OpenVINO===== | =====OpenVINO===== | ||
**Intel Neural Compute Stick 2** est un calculateur, | **Intel Neural Compute Stick 2** est un calculateur, | ||
- | IL a été concu pour être un calculateur sur un PC sans GPU, genre Raspberry Pi. | + | Il a été concu pour être un calculateur sur un PC sans GPU, genre Raspberry Pi. |
**OpenVINO** est un **fork de OpenCV**, optmisé pour les produits Intel: | **OpenVINO** est un **fork de OpenCV**, optmisé pour les produits Intel: | ||
* Intel Neural Compute Stick 2 | * Intel Neural Compute Stick 2 | ||
* Le GPU intégré aux CPU Intel: genre HD 530 | * Le GPU intégré aux CPU Intel: genre HD 530 | ||
+ | * **[[https:// | ||
=====Installation de OpenVINO===== | =====Installation de OpenVINO===== | ||
+ | ====Operating Systems==== | ||
+ | * Ubuntu 18.04.x long-term support (LTS), 64-bit | ||
+ | * Ubuntu 20.04.0 long-term support (LTS), 64-bit | ||
+ | * CentOS 7.6, 64-bit (for target only) | ||
+ | * Yocto Project v3.0, 64-bit (for target only and requires modifications) | ||
+ | Le tuto a été réalisé sur Xubuntu 18.04 | ||
====Installation==== | ====Installation==== | ||
Suivre à la lettre ce tuto Intel: | Suivre à la lettre ce tuto Intel: | ||
Ligne 26: | Ligne 35: | ||
et installer tout. | et installer tout. | ||
- | Faire install_openvino_dependencies.sh, | + | ===Extrait du bash_history=== |
- | ====realsense==== | + | <code bash> |
- | bug realsense | + | cd /media/data/ |
- | E: Impossible de récupérer http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/bionic/InRelease | + | sudo ./install_GUI.sh |
+ | cd /opt/ | ||
+ | sudo -E ./install_openvino_dependencies.sh | ||
+ | source | ||
+ | nano .bashrc | ||
+ | cd / | ||
+ | sudo ./ | ||
+ | sudo ./ | ||
+ | cd / | ||
+ | </ | ||
- | Dans le sources.list | + | ===Steps for Intel® Processor Graphics (GPU)=== |
- | http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/bionic/ | + | <code bash> |
- | devient | + | cd /opt/intel/openvino_2021/install_dependencies/ |
+ | sudo -E ./install_NEO_OCL_driver.sh | ||
+ | </code> | ||
- | https://librealsense.intel.com/Debian/apt-repo | + | ===Steps for Intel® Neural Compute Stick 2=== |
+ | <code bash> | ||
+ | sudo usermod -a -G users " | ||
+ | sudo cp /opt/intel/ | ||
+ | sudo udevadm control | ||
+ | sudo udevadm trigger | ||
+ | sudo ldconfig | ||
+ | </ | ||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | ===== Conversion du caffemodel en Intermediate Representation IR ===== | ||
- | Convert a Caffe* Model to produce an optimized Intermediate Representation (IR) of the model based on the trained network topology, weights, and biases values | ||
- | | + | |
+ | === Vérification de l' | ||
+ | <code bash> | ||
+ | python3 | ||
+ | >>> | ||
+ | >>> | ||
+ | 4.5.2-openvino | ||
+ | </ | ||
+ | Les scripts python doivent être lancés depuis un terminal, pas depuis le Run D'un EDI.\\ | ||
+ | A l' | ||
+ | [setupvars.sh] OpenVINO environment initialized | ||
+ | |||
+ | |||
+ | =====Création des fichiers bin et xml à partir du caffemodel===== | ||
+ | Convert a Caffe* Model to produce an optimized Intermediate Representation (IR) of the model based on the trained network topology, weights, and biases values [[https:// | ||
Dans le dossier du caffemodel: | Dans le dossier du caffemodel: | ||
python3 / | python3 / | ||
| | ||
- | Les fichiers .caffemodel et .prototxt doivent avoir les mêmes noms | + | Les fichiers .caffemodel et .prototxt doivent avoir les mêmes noms.\\ |
- | + | Les Input Layers ne sont pas définis dans le .prototxt. J'ai improvisé avec [1, 3, 270, 270] ! | |
- | mo.utils.error.Error: | + | |
- | For more information please refer to Model Optimizer FAQ, question #38. (https:// | + | |
- | + | ||
- | + | ||
- | + | ||
- | ===== OpenCV Deep Neural Network module cv2.dnn ===== | + | |
- | * https:// | ||
- | serge@serge-PS42-8M: | ||
- | Python 3.6.9 (default, Jan 26 2021, 15: | ||
- | [GCC 8.4.0] on linux | ||
- | Type " | ||
- | >>> | ||
- | >>> | ||
- | 4.5.2-openvino | ||
- | >>> | ||
+ | =====Utilisation de OpenVino avec Realsense D455===== | ||
+ | Fichier à: **[[https:// | ||
+ | < | ||
+ | CPU avec OpenCV | ||
+ | CPU avec OpenCV et model light fps = 1.4 | ||
+ | CPU avec OpenCV et body_25 | ||
+ | CPU avec OpenVINO | ||
+ | CPU avec OpenVINO Light fps = 2.2 | ||
+ | GPU | ||
+ | GPU et model light GTX1060 | ||
+ | Intel NCS2 Stick Intel® Neural Compute Stick 2 (Intel® NCS2) fps = 1.6 | ||
+ | Intel NCS2 Stick Intel® Neural Compute Stick 2 (Intel® NCS2) et model light fps = 2.0 | ||
+ | </ | ||
- | {{tag> | + | {{tag> |
pose_estimation_avec_intel_ncs2_et_openvino.1624289790.txt.gz · Dernière modification : 2021/06/21 15:36 de serge