Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

File processing demo

A simple pipeline demonstrates how to handle files (input/output).

Tested on platforms:

  • Nvidia Ampere

Prerequisites

git clone https://github.com/insight-platform/Savant.git
cd Savant
git lfs pull
./utils/check-environment-compatible

Note: Ubuntu 22.04 runtime configuration guide helps to configure the runtime to run Savant pipelines.

Build Engines

The demo uses models that are compiled into TensorRT engines the first time the demo is run. This takes time. Optionally, you can prepare the engines before running the demo by using the command:

# you are expected to be in Savant/ directory

./scripts/run_module.py --build-engines samples/file_processing/module.yml

Launch the pipeline and video file sink

docker compose -f samples/file_processing/docker-compose.x86.yml up

Ingest a file

Known issues and how to fix them: #1140

Place a file in data/your-video.mp4.

docker compose \
    -f samples/file_processing/docker-compose.x86.yml \
    --profile video-file-input \
    run --rm \
    -e LOCATION="/data/your-video.mp4" \
    -e SOURCE_ID=your-source \
    video-file-input

Check processing results in data/results/your-source/your-video/video.mov.