TPU-Posenet


Download TPU-Posenet:

moore@neuralux:~/src$ git clone https://github.com/PINTO0309/TPU-Posenet.git
moore@neuralux:~/src$ cd TPU-Posenet/models/
moore@neuralux:~/src/TPU-Posenet/models$ ls
download.sh

Launch the installer:

moore@neuralux:~/src/TPU-Posenet/models$ ./download.sh 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   388    0   388    0     0    305      0 --:--:--  0:00:01 --:--:--   305
100 3740k    0 3740k    0     0  2340k      0 --:--:--  0:00:01 --:--:-- 2340k
Archive:  posenet_mobilenetv1.zip
  inflating: posenet_mobilenet_v1_075_353_481_quant_decoder_edgetpu.tflite  
  inflating: posenet_mobilenet_v1_075_481_641_quant_decoder_edgetpu.tflite  
  inflating: posenet_mobilenet_v1_075_721_1281_quant_decoder_edgetpu.tflite  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   388    0   388    0     0    654      0 --:--:-- --:--:-- --:--:--   654
100  609k  100  609k    0     0   508k      0  0:00:01  0:00:01 --:--:-- 1531k
Archive:  deeplabv3.zip
  inflating: deeplabv3_mnv2_dm05_pascal_trainaug_edgetpu.tflite  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   388    0   388    0     0   1380      0 --:--:-- --:--:-- --:--:--  1380
100 4096k    0 4096k    0     0  3890k      0 --:--:--  0:00:01 --:--:-- 8048k
Archive:  mobilenet_ssd_v2_coco.zip
  inflating: mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   388    0   388    0     0   1603      0 --:--:-- --:--:-- --:--:--  1603
100  6614  100  6614    0     0  11562      0 --:--:-- --:--:-- --:--:-- 11562

Upgrade Python-pip:

moore@neuralux:~$ sudo pip3 install pip --upgrade
[sudo] password for moore: 
The directory '/home/moore/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/moore/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 1.2MB/s 
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed pip-19.2.3

Install numpy:

moore@neuralux:~$ sudo pip3 install numpy
WARNING: The directory '/home/moore/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/moore/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.13.3)
moore@neuralux:~$ cd src/

Download the download_2019R2.sh script:

moore@neuralux:~/src$  wget https://github.com/PINTO0309/OpenVINO-bin/raw/master/Linux/download_2019R2.sh
--2019-09-08 23:32:41--  https://github.com/PINTO0309/OpenVINO-bin/raw/master/Linux/download_2019R2.sh
Resolving github.com (github.com)... 140.82.118.3
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/PINTO0309/OpenVINO-bin/master/Linux/download_2019R2.sh [following]
--2019-09-08 23:32:41--  https://raw.githubusercontent.com/PINTO0309/OpenVINO-bin/master/Linux/download_2019R2.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.120.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.120.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 425 [text/plain]
Saving to: ‘download_2019R2.sh’

download_2019R2.sh                     100%[============================================================================>]     425  --.-KB/s    in 0s      

2019-09-08 23:32:41 (26.4 MB/s) - ‘download_2019R2.sh’ saved [425/425]

FINISHED --2019-09-08 23:32:41--
Total wall clock time: 0.5s
Downloaded: 1 files, 425 in 0s (26.4 MB/s)

Launch download_2019R2.sh:

moore@neuralux:~/src$ sh download_2019R2.sh 

moore@neuralux:~/src$ sudo l_openvino_toolkit_p_2019.2.242/install_openvino_dependencies.sh

moore@neuralux:~/src$ sudo l_openvino_toolkit_p_2019.2.242/install.sh 

moore@neuralux:~/src$ echo "source /opt/intel/openvino/bin/setupvars.sh" >> ~/.bashrc

Test pose_camera_single_tpu.py:

moore@neuralux:~/src$ python3 pose_camera_single_tpu.py --videofile video.mp4' 


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

EN | FR | ES

Búsqueda