You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd ./engine
trtexec --onnx=depth_anything_vits14_364.onnx --saveEngine=depth_anything_vits14_364.engine --fp16
Build executable using CMake
# switch to the project directorycd xxx/Depth-Anything-for-Jetson-Orin-CPP
# create build directory:./build
cmake -S . -B build
# build the project
cmake --build build
Running the Demo
# usage:
./depth_anything_cpp [model_trt_engine_path] [--stream or --image or --video] [camera_id (optional:0) or image_path or video path]
# examples:# 1. run with picture input
./depth_anything_cpp ./engine/depth_anything_vits14_364.engine --image ./test_video_picture/bus.jpg
# 2. run with video input
./depth_anything_cpp ./engine/depth_anything_vits14_364.engine --video ./test_video_picture/davis_dolphins.mp4
# 3. run with live realsense camera input
./depth_anything_cpp ./engine/depth_anything_vits14_364.engine --stream 0