-
Notifications
You must be signed in to change notification settings - Fork 13
/
How to Install MediaPipe on jetson-nano 2022.txt
80 lines (49 loc) · 2.28 KB
/
How to Install MediaPipe on jetson-nano 2022.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#How to install Media pipe on jetson nano 2022
# The starting point is a flashed new SD card with Jetpack 4.6
# Increase swap for more swap ram
# ===============================
git clone https://github.com/JetsonHacksNano/installSwapfile.git
cd installSwapfile
./installSwapfile.sh
# setup - pre install include Python and pip
# ===================
sudo apt update
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install -U pip testresources setuptools==49.6.0
# python libraries for Tensorflow
# ================================
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
# Install more Python libraries
# =================================
sudo pip3 install -U --no-deps numpy==1.19.4 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig
# part of Numpy -> store large amount of data in binary format
sudo env H5PY_SETUP_REQUIRES=0 pip3 install -U h5py==3.1.0
sudo apt-get install python3-opencv
#install media pipe from the source code
#=======================================
git clone https://github.com/google/mediapipe.git
cd mediapipe
# install more libraries for the media pipe setup
# ===============================================
sudo apt-get install -y libopencv-core-dev libopencv-highgui-dev libopencv-calib3d-dev libopencv-features2d-dev libopencv-imgproc-dev libopencv-video-dev
# set permissions for the setup script file
sudo chmod 744 setup_opencv.sh
# run installation from source code : about 30 minutes
# ====================================================
./setup_opencv.sh
# last step
sudo pip3 install opencv_contrib_python
git clone https://github.com/PINTO0309/mediapipe-bin
cd mediapipe-bin
sudo apt install curl
./v0.8.5/numpy119x/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64_numpy119x_jetsonnano_L4T32.5.1_download.sh
sudo pip3 install numpy-1.19.4-cp36-none-manylinux2014_aarch64.whl
sudo pip3 install mediapipe-0.8.5_cuda102-cp36-none-linux_aarch64.whl
pip3 install dataclasses
#download examples from here : https://github.com/feitgemel/BodyPos/tree/master/MediaPipe/Demo
git clone https://github.com/feitgemel/BodyPos.git
cd BodyPos
cd MediaPipe
cd Demo
python3 MediaPipe-Holistic.py