Downloads · 30 days
0
tala-kamel1/fast-depth
fast-depth is a machine learning model from tala-kamel1. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
markdown Copy --- language: en license: apache-2.0 tags: - depth-estimation - fast-depth datasets: - nyudepthv2 ---
Downloads · 30 days
0
Access
Public
Updated Jan 22, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.5 KB · 62%
From the Hugging Face model README
language: en license: apache-2.0 tags:
This repository provides trained models and evaluation code for the FastDepth project at MIT. FastDepth is designed for fast monocular depth estimation on embedded systems.
<p align="center"> <img src="img/visualization.png" alt="FastDepth Visualization" width="50%" height="50%"> </p>FastDepth is based on a MobileNet-NNConv5 architecture with depthwise separable layers in the decoder, additive skip connections, and network pruning using NetAdapt. It achieves state-of-the-art performance on the NYU Depth V2 dataset while being optimized for real-time inference on embedded devices like the NVIDIA Jetson TX2.
This model is intended for monocular depth estimation from RGB images. It can be used in applications such as:
You can use this model with the Hugging Face transformers library or directly via the Hugging Face API.
import requests
API_URL = "https://api-inference.huggingface.co/models/your-username/your-model-name"
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
def query(filename):
with open(filename, "rb") as f:
data = f.read()
response = requests.post(API_URL, headers=headers, data=data)
return response.json()
output = query("path_to_image.jpg")
Using Transformers
python
Copy
from transformers import pipeline
depth_estimator = pipeline("depth-estimation", model="your-username/your-model-name")
result = depth_estimator("path_to_image.jpg")
Results
FastDepth achieves the following results on the NYU Depth V2 dataset:
Model Input Size MACs [G] RMSE [m] delta1 CPU [ms] GPU [ms]
FastDepth (Pruned) 224×224 0.37 0.604 0.771 37 5.6
<p float="left"> <img src="img/acc_fps_gpu.png" alt="Accuracy vs FPS (GPU)" width="375"> <img src="img/acc_fps_cpu.png" alt="Accuracy vs FPS (CPU)" width="375"> </p>
Citation
If you use this model, please cite the following paper:
bibtex
Copy
@inproceedings{icra_2019_fastdepth,
author = {{Wofk, Diana and Ma, Fangchang and Yang, Tien-Ju and Karaman, Sertac and Sze, Vivienne}},
title = {{FastDepth: Fast Monocular Depth Estimation on Embedded Systems}},
booktitle = {{IEEE International Conference on Robotics and Automation (ICRA)}},
year = {{2019}}
}