This repository was archived by the owner on Mar 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathSingularity_deepstream
56 lines (45 loc) · 1.67 KB
/
Singularity_deepstream
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
# Select base image
Bootstrap: docker
From: nvcr.io/nvidia/deepstream:6.1.1-devel
%environment
export XDG_RUNTIME_DIR=
%post
# Install additional packages
cd /opt/nvidia/deepstream/deepstream
./user_additional_install.sh
# Install required dependencies
apt install ffmpeg python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev -y
# Initialization of submodules
cd /opt/nvidia/deepstream/deepstream/sources
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps
git checkout v1.1.4
git submodule update --init
# Installing Gst-python
apt-get install -y apt-transport-https ca-certificates -y
update-ca-certificates
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/3rdparty/gst-python
./autogen.sh
make
make install
# Compiling python bindings
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings
mkdir build
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
cmake .. -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=8
make
# Installing python bindings
pip3 install ./pyds-1.1.4-py3-none*.whl
# Install jupyterlab and packages
pip3 install jupyterlab \
ipywidgets \
matplotlib \
scipy \
imutils \
opencv-python
%runscript
"$@"
%labels
Author Massimiliano, Tosin