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/18 06:59] – Tag0 Added: opencv,python,sb,skeleton 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> | ||
+ | **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. | ||
+ | ===Extrait du bash_history=== | ||
+ | <code bash> | ||
+ | cd / | ||
+ | sudo ./ | ||
+ | cd / | ||
+ | sudo -E ./ | ||
+ | source / | ||
+ | nano .bashrc | ||
+ | cd / | ||
+ | sudo ./ | ||
+ | sudo ./ | ||
+ | cd / | ||
+ | </ | ||
- | {{tag> | + | ===Steps for Intel® Processor Graphics (GPU)=== |
+ | <code bash> | ||
+ | cd / | ||
+ | sudo -E ./ | ||
+ | </ | ||
+ | |||
+ | ===Steps for Intel® Neural Compute Stick 2=== | ||
+ | <code bash> | ||
+ | sudo usermod -a -G users " | ||
+ | sudo cp / | ||
+ | sudo udevadm control --reload-rules | ||
+ | sudo udevadm trigger | ||
+ | sudo ldconfig | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === 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: | ||
+ | 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> |
pose_estimation_avec_intel_ncs2_et_openvino.1623999559.txt.gz · Dernière modification : 2021/06/18 06:59 de serge