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édenteDernière révisionLes deux révisions suivantes | ||
intel_neural_compute_stick_2 [2021/06/19 07:29] – serge | pose_estimation_avec_intel_ncs2_et_openvino [2021/07/10 09:12] – [Pose Estimation avec Intel NCS2 et OpenVINO] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ======Intel | + | ====== |
+ | {{ :: | ||
+ | <WRAP center round box 80% centeralign> | ||
+ | **{{tagpage> | ||
+ | </ | ||
+ | <WRAP center round info 60% centeralign> | ||
+ | **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, |
+ | Il a été concu pour être un calculateur sur un PC sans GPU, genre Raspberry Pi. | ||
- | skeleton | + | **OpenVINO** est un **fork de OpenCV**, optmisé pour les produits Intel: |
+ | * Intel Neural Compute Stick 2 | ||
+ | * Le GPU intégré aux CPU Intel: genre HD 530 | ||
+ | * **[[https:// | ||
- | caffemodel | + | =====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) | ||
- | * https:// | + | Le tuto a été réalisé sur Xubuntu 18.04 |
+ | ====Installation==== | ||
+ | Suivre à la lettre ce tuto Intel: | ||
+ | * **[[https:// | ||
- | pb dépendances | + | Faire l' |
+ | sudo ./ | ||
+ | et installer tout. | ||
- | bug | + | ===Extrait du bash_history=== |
- | E: Impossible de récupérer http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/bionic/InRelease | + | <code bash> |
+ | cd /media/data/ | ||
+ | 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 Input Layers ne sont pas définis dans le .prototxt. J'ai improvisé avec [1, 3, 270, 270] ! |
+ | =====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.txt · Dernière modification : 2022/03/22 14:12 de Benjamin Labomedia