Skip to content

martenwikman/depth-anything-tensorrt-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Depth anything tensorrt docker image

Get started

Build docker image

docker build -t depth-anything-tensorrt .

Run

docker run --gpus all -it --rm -v local_dir:/container_dir depth-anything-tensorrt:latest

Export onnx to engine

cd depthanything 
trtexec --onnx=depth_anything_vitb14.onnx --saveEngine=depth_anything_vitb14.engine

Build software

Remove imshow from main.cpp to run without graphical interface.

mkdir build
cd build
cmake ..
make

Run

depth-anything-tensorrt-simplified ../depth_anything_vitb14.engine /container_dir/DJI_0434.mp4 

Output

Time of per frame: 47ms
Time of per frame: 47ms
Time of per frame: 47ms
Time of per frame: 49ms
Time of per frame: 47ms
Time of per frame: 48ms
Time of per frame: 46ms
Time of per frame: 47ms
Time of per frame: 47ms
Time of per frame: 47ms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published