-
Notifications
You must be signed in to change notification settings - Fork 1
/
singularity
25 lines (18 loc) · 985 Bytes
/
singularity
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
# Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
# To build this : $ singularity build --fakeroot --sandbox holoscan:v2.3.0-dgpu.simg singularity
# To Run this : $ singularity run --writable --nv holoscan:v2.3.0-dgpu.simg jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/python
Bootstrap: docker
FROM: nvcr.io/nvidia/clara-holoscan/holoscan:v2.3.0-dgpu
%environment
%files
workspace/* /workspace/
%post
pip3 install jupyterlab
apt update
apt install --no-install-recommends -y ffmpeg
apt install libegl1
ffmpeg -i /workspace/python/scripts/tao_peoplenet/data/people.mp4 -pix_fmt rgb24 -f rawvideo pipe:1 | python /opt/nvidia/holoscan/bin/convert_video_to_gxf_entities.py --directory /workspace/python/scripts/tao_peoplenet/data/ --basename people --width 1920 --height 1080 --framerate 30
%runscript
"$@"
%labels
Authors Adam Thompson, Nicolas Lebovitz, Denis Leshchev