Outils pour utilisateurs

Outils du site


raspberry_pi_et_intel_neuronal_computer_stick_2

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
yolo_v3_darknet_sur_raspberrypi_et_intel_movidius_myria_2_vpu [2019/06/24 19:04] – [Nvidia Jetson Nano] sergeraspberry_pi_et_intel_neuronal_computer_stick_2 [2019/07/17 14:45] Benjamin Labomedia
Ligne 1: Ligne 1:
-======Yolo v3 Darknet sur Raspberry Pi et Intel Movidius Myria VPU======+======Raspberry Pi et Intel Neuronal Computer Stick 2======
 <WRAP center round box 80% centeralign> <WRAP center round box 80% centeralign>
-**{{tagpage>semaphore|Sémaphores}}** .... **{{tagpage>ia|Intelligence Artificielle}}**+**{{tagpage>ia|Intelligence Artificielle}}**
 </WRAP> </WRAP>
-<WRAP center round box 60% centeralign> + 
-C'est quoi un sémaphore ? +=====Comparaison Nvidia Jetson Nano et Intel NCS2 Stick===== 
-{{ youtube>F3sY6_fOx2I?medium }} +====NCS2==== 
-{{ :chappe.jpeg?400 }} +  * Seulement Ubuntu 16.04 or nous sommes en 07/2019 
-</WRAP> + 
-\\ \\  +<WRAP center round alert 80%> 
-<WRAP center round box 60centeralign+Bosser sur Ubuntu 16.04, c'est galère, il y a une icône Ama ...$ ... zon sur le bureau, ça craint ... 
-//**Reconnaissance d'un vrai sémaphore avec YOLO Darknet avec une Raspberry Pi**//\\+Mark Shuttleworth n'est pas Johnny Clegg
 </WRAP> </WRAP>
  
-=====Ressources sur le stick Intel Movidius Myria 2 VPU=====+ 
 +=====Ressources=====
   * https://www.movidius.com/solutions/vision-processing-unit   * https://www.movidius.com/solutions/vision-processing-unit
-{{tag>ia sb}}+  * https://www.raspberrypi.org/downloads/raspbian/ 
 +  * https://www.raspberrypi.org/documentation/installation/installing-images/README.md 
 +  * https://richardstechnotes.com/2019/01/03/yolov3-object-detection-now-working-on-ncs-2/ 
 +  * https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html 
 + 
 +Avec lien du mail réponse d'inscription 
 +  * https://software.intel.com/en-us/openvino-toolkit/documentation/get-started 
 +NCS 2 
 +  * https://software.intel.com/en-us/neural-compute-stick 
 +  * https://software.intel.com/en-us/articles/intel-neural-compute-stick-2-and-open-source-openvino-toolkit 
 +  
 +=====Installation sur Ubuntu 16.04 sur un desktop dans Virtual Box===== 
 +  * **https://movidius.github.io/ncsdk/vm_config.html** 
 +Voir [[debian_installation_configuration#virtualbox_buster_10|VirtualBox Debian Installation Configuration]] pour activer les Guest Additions, les exentions, l'usb 3  
 + 
 +puis 
 +  * https://movidius.github.io/ncsdk/install.html 
 + 
 +  sudo apt install git 
 +  git clone -b ncsdk2 http://github.com/Movidius/ncsdk && cd ncsdk && make install 
 +   
 +Installation longue avec beaucoup de paquets {{::install_ncs2.txt.zip|}}. 
 + 
 +====Ne réinventons pas la poudre==== 
 +===Essai 0=== 
 +  * [[https://richardstechnotes.com/2019/01/03/yolov3-object-detection-now-working-on-ncs-2/|yolov3-object-detection-now-working-on-ncs-2]] dit que [[https://richardstechnotes.com/2018/12/01/running-yolov3-with-openvino-on-cpu-and-not-ncs-2/|running-yolov3-with-openvino-on-cpu-and-not-ncs-2/]] marche depuis **OpenVINO version 2018.5.445** 
 + 
 +===Essai 1=== 
 +  *   * [[https://github.com/PINTO0309/OpenVINO-YoloV3|Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO]] [[https://qiita.com/PINTO|qiita.com/PINTO]] **Très complet** 
 + 
 +1. Installation sur un laptop avec ubuntu 16.04 
 +  cd ~ 
 +  curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1ciX7cHqCh8lLFYI0HKkhC3r_fMirrlKk" > /dev/null 
 +  CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)" 
 +  curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1ciX7cHqCh8lLFYI0HKkhC3r_fMirrlKk" -o l_openvino_toolkit_p_2019.1.133.tgz 
 +  tar -zxf l_openvino_toolkit_p_2019.1.133.tgz 
 +  rm l_openvino_toolkit_p_2019.1.133.tgz 
 +  cd l_openvino_toolkit_p_2019.1.133 
 +  sudo -E ./install_openvino_dependencies.sh 
 +  sudo ./install_GUI.sh 
 + 
 +2. Configure the Model Optimizer 
 +  cd /opt/intel/openvino/install_dependencies/ 
 +  sudo -E ./install_openvino_dependencies.sh 
 +  nano ~/.bashrc 
 +  source /opt/intel/openvino/bin/setupvars.sh 
 +  source ~/.bashrc 
 +  cd /opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites/ 
 +  sudo ./install_prerequisites.sh 
 + 
 +3. Additional installation steps for Intel® Neural Compute Stick v2 
 +  sudo usermod -a -G users "$(whoami)" 
 +  cat <<EOF > 97-usbboot.rules 
 +  SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1" 
 +  SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1" 
 +  SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1" 
 +  EOF 
 + 
 +  sudo cp 97-usbboot.rules /etc/udev/rules.d/ 
 +  sudo udevadm control --reload-rules 
 +  sudo udevadm trigger 
 +  sudo ldconfig 
 +  rm 97-usbboot.rules 
 + 
 +4. Additional installation steps for processor graphics (GPU, Intel HD Graphics series only) 
 +  cd /opt/intel/openvino/install_dependencies/ 
 +  sudo -E su 
 +  uname -r 
 + 
 +  ### Execute only when the kernel version is older than 4.14 
 +  ./install_4_14_kernel.sh 
 +   
 +  ./install_NEO_OCL_driver.sh 
 +  sudo reboot 
 +=====Installation de Raspbian===== 
 +<WRAP center round alert 60% centeralign> 
 +**Abandon** 
 +</WRAP> 
 + 
 +====Installation sur la SD Card==== 
 +  wget -c http://director.downloads.raspberrypi.org/raspbian_full/images/raspbian_full-2019-06-24/2019-06-20-raspbian-buster-full.zip 
 +  sha256sum 2019-06-20-raspbian-buster-full.zip 
 +  # Récup de la SD Card ou du disk externe 
 +  sudo fdisk -l 
 +  unzip -p 2019-06-20-raspbian-buster-full.zip | sudo dd of=/dev/mmc<x> bs=4M status=progress conv=fsync 
 +  sudo eject /dev/mmc<x> 
 + 
 +Note: bs=1M faster write speeds this way, and conv=fsync is telling dd to flush data to the disk after every write. 
 +====Boot sur disk externe Valable pour Pi 3B, 3B+, 3A+ and Raspberry Pi 2B v1.2==== 
 +  * [[https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md|How to boot from a USB mass storage device on a Raspberry Pi]] 
 + 
 +===Installation de raspbian avec une *.iso sur un PC=== 
 +  * [[https://www.raspberrypi.org/downloads/raspberry-pi-desktop/|Téléchargement de l'iso]] 
 + 
 +  wget -c http://director.downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2019-04-12/2019-04-11-rpd-x86-stretch.iso 
 + 
 +Vérifier le sha256sum 
 + 
 +Puis création d'une clé USB bootable avec l'iso 
 +  sudo dd if=./2019-04-11-rpd-x86-stretch.iso of=/dev/sd<x> bs=4M status=progress && sync 
 +Puis installation sur un disque USB sur un PC. 
 + 
 +===Configuration de la SD Card=== 
 +Ajout de "program_usb_boot_mode=1" à /boot/config.txt sur la SD Card 
 +  echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt 
 +  sudo reboot 
 + 
 +====Boot sur disk externe Valable pour Pi 4==== 
 +Documentation à faire quand La Labomedia en aura acheter une! 
 +  * [[https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/bootflow.md|Boot flow for models prior to the Raspberry Pi 4]] 
 + 
 +{{tag>ia sb raspberry_pi}}