burn_depth 🔥📐😎
burn depth pro model inference
| input | metric depth |
|---|---|
![]() |
![]() |
usage
use *;
use ;
// NdArray backend (alternatively: burn::backend::Cuda, burn::backend::Cpu)
let device = default;
let model = load?;
// Image tensor with shape [1, 3, H, W] (batch, channels, height, width)
let input: = zeros;
let result = model.infer;
// result.depth: Tensor<InferenceBackend, 3> with shape [1, H, W]
// result.focallength_px: Tensor<InferenceBackend, 1> with shape [1]
setup
- download
depth_pro.pttoassets/model/ cargo run --bin import --features importcargo run --example inference

