Based on Depth Anything V2 with sparse LiDAR prompt fusion for metric depth.
1from transformers import AutoModelForDepthEstimation, AutoImageProcessor
2import torch
3
4model = AutoModelForDepthEstimation.from_pretrained("ilessio-aiflowlab/project_abyssos", subfolder="pytorch")
5processor = AutoImageProcessor.from_pretrained("ilessio-aiflowlab/project_abyssos", subfolder="pytorch")
6
7# Inference with prompt
8pixel_values = torch.randn(1, 3, 518, 518) # preprocessed RGB
9prompt_depth = torch.randn(1, 1, 518, 518) # sparse depth from LiDAR
10output = model(pixel_values=pixel_values, prompt_depth=prompt_depth)
11depth_map = output.predicted_depth # (1, 518, 518) metric depth in meters
1import onnxruntime as ort
2import numpy as np
3
4sess = ort.InferenceSession("onnx/abyssos_v1.onnx")
5depth = sess.run(None, {
6 "pixel_values": np.random.randn(1, 3, 518, 518).astype(np.float32),
7 "prompt_depth": np.random.randn(1, 1, 518, 518).astype(np.float32),
8})[0] # (1, 518, 518)
.
├── README.md
├── anima_module.yaml
├── pytorch/
│ ├── model.safetensors
│ ├── config.json
│ └── preprocessor_config.json
├── onnx/
│ └── abyssos_v1.onnx
├── checkpoints/
│ ├── model.safetensors
│ ├── training_state.pt
│ └── eval_metrics.json
├── configs/
│ ├── train_8gpu_ddp.yaml
│ ├── train_8gpu_dp_safe.yaml
│ └── ...
└── logs/
├── train_v3_report.json
└── training_history.jsonl