Vision Transformers for Dense Prediction
Paper โข 2103.13413 โข Published โข 1
Run Addax-Data-Science/DPT-HYBRID-MIDAS on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/Addax-Data-Science/DPT-HYBRID-MIDAS. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/Addax-Data-Science/DPT-HYBRID-MIDAS on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use Addax-Data-Science/DPT-HYBRID-MIDAS with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("depth-estimation", model="Addax-Data-Science/DPT-HYBRID-MIDAS") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModelForDepthEstimation
processor = AutoImageProcessor.from_pretrained("Addax-Data-Science/DPT-HYBRID-MIDAS")
model = AutoModelForDepthEstimation.from_pretrained("Addax-Data-Science/DPT-HYBRID-MIDAS", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModelForDepthEstimation
processor = AutoImageProcessor.from_pretrained("Addax-Data-Science/DPT-HYBRID-MIDAS")
model = AutoModelForDepthEstimation.from_pretrained("Addax-Data-Science/DPT-HYBRID-MIDAS", device_map="auto")A mirror of Intel/dpt-hybrid-midas (Apache-2.0), unchanged. AddaxAI uses it for distance estimation with camera traps, following Haucke et al. 2022.
Files: config.json, preprocessor_config.json and model.safetensors, as published
by Intel. Paper: Ranftl, Bochkovskiy and Koltun 2021, Vision Transformers for Dense
Prediction, https://arxiv.org/abs/2103.13413.
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="Addax-Data-Science/DPT-HYBRID-MIDAS")