Setting up OpenPose on NVIDIA Jetson TX2: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
=Introduction=
==Introduction==
This wiki is intended to give a quick and easy to understand guide to the reader for setting up OpenPose and all its dependencies on either a computer with Ubuntu 16.04 or a Nvidia Jetson TX2.
This wiki is intended to give a quick and easy to understand guide to the reader for setting up OpenPose and all its dependencies on either a computer with Ubuntu 16.04 or a Nvidia Jetson TX2.


=Setting up OpenPose on Ubuntu 16.04 for Desktop=
==Setting up OpenPose on Ubuntu 16.04 for Desktop==


==Requirements==
===Requirements===


===cuDNN (highly recommended)===
====cuDNN (highly recommended)====


'''Prerequisites'''
'''Prerequisites'''
Line 49: Line 49:
An output of “Test passed!” should appear.
An output of “Test passed!” should appear.


==Dependencies==
===Dependencies===


===OpenCV (2.X or 3.X)===
====OpenCV (2.X or 3.X)====


  $sudo apt-get install libopencv-dev
  $sudo apt-get install libopencv-dev


===Caffe===
====Caffe====


'''General Dependencies'''
'''General Dependencies'''
Line 94: Line 94:
  $make runtest
  $make runtest


==OpenPose Installation==
===OpenPose Installation===


1. First clone the OpenPose repository:
1. First clone the OpenPose repository:
Line 112: Line 112:
* Press “Generate” and close CMake.
* Press “Generate” and close CMake.


==OpenPose Building==
===OpenPose Building===


Go into the build directory and run:
Go into the build directory and run:
Line 120: Line 120:
  $sudo make install
  $sudo make install


==Verify OpenPose Installation==
===Verify OpenPose Installation===


1. Go to the OpenPose directory
1. Go to the OpenPose directory
Line 134: Line 134:
  $./build/examples/openpose/openpose.bin --face --hand
  $./build/examples/openpose/openpose.bin --face --hand


=Setting up OpenPose on NVidia Jetson TX2=
==Setting up OpenPose on NVidia Jetson TX2==
==Requirements and Dependencies==
===Requirements and Dependencies===
===Requirements===
====Requirements====
* It is required for the Jetson TX2 board to be flashed with either JetPack 3.1 or JetPack 3.3.
* It is required for the Jetson TX2 board to be flashed with either JetPack 3.1 or JetPack 3.3.
     For instructions on how to install JetPack 3.3 please refer to the [https://developer.nvidia.com/embedded/dlc/jetpack-install-guide-3_3 Nvidia JetPack 3.3 Installation Guide].
     For instructions on how to install JetPack 3.3 please refer to the [https://developer.nvidia.com/embedded/dlc/jetpack-install-guide-3_3 Nvidia JetPack 3.3 Installation Guide].
Line 142: Line 142:
* Please make sure to install CUDA and cuDNN before installing OpenPose.
* Please make sure to install CUDA and cuDNN before installing OpenPose.


===Dependencies===
====Dependencies====
     - OpenCV
     - OpenCV
         -> All 2.X and 3.X versions are compatible with Jetson TX2 boards flashed with JetPack 3.1.
         -> All 2.X and 3.X versions are compatible with Jetson TX2 boards flashed with JetPack 3.1.
Line 164: Line 164:




==Installing OpenPose==
===Installing OpenPose===
Once all the requirements and dependencies are ready, installing OpenPose is really easy to instal.
Once all the requirements and dependencies are ready, installing OpenPose is really easy to instal.
     $git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
     $git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
     $bash ./scripts/ubuntu/install_caffe_and_openpose_JetsonTX2_JetPack3.3.sh
     $bash ./scripts/ubuntu/install_caffe_and_openpose_JetsonTX2_JetPack3.3.sh


==Verify OpenPose Installation==
===Verify OpenPose Installation===
Testing if OpenPose was successfully installed can be one by running one of its examples.
Testing if OpenPose was successfully installed can be one by running one of its examples.
     ./build/examples/openpose/openpose.bin -camera_resolution 640x480 -net_resolution 128x96
     ./build/examples/openpose/openpose.bin -camera_resolution 640x480 -net_resolution 128x96
If OpenPose is properly installed, the example should be able to show live video from the camera with an skeleton overlay on each body on the scene.
If OpenPose is properly installed, the example should be able to show live video from the camera with an skeleton overlay on each body on the scene.


=Links=
==Links==


1. https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md
1. https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md
Line 181: Line 181:


3. http://caffe.berkeleyvision.org/installation.html
3. http://caffe.berkeleyvision.org/installation.html
{{ContactUs}}


[[Category:Jetson]]
[[Category:Jetson]]