Run this model with HF Jobs
Run LibreYOLO/LibreDepthAnythingV2s-depth 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/LibreYOLO/LibreDepthAnythingV2s-depth. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/LibreYOLO/LibreDepthAnythingV2s-depth 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.
Instructions to use LibreYOLO/LibreDepthAnythingV2s-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreDepthAnythingV2s-depth with LibreYOLO:
# pip install libreyolo from libreyolo import LibreYOLO model = LibreYOLO("LibreYOLO/LibreDepthAnythingV2s-depth") results = model("https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/guggenheim-bilbao.jpg", save=True) - Notebooks
- Google Colab
- Kaggle
LibreDepthAnythingV2s-depth
Depth Anything V2 Small (ViT-S encoder + DPT head), repackaged for LibreYOLO's depth task.
Source
Derived from DepthAnything/Depth-Anything-V2
at commit 03876f8651c73a60fe4c2c48294e09fcb6838fcf.
Copyright (c) 2024 Depth Anything V2 authors (TikTok / ByteDance). Licensed under the Apache License, Version 2.0.
The ViT-S encoder is a DINOv2-Small backbone from facebookresearch/dinov2. Copyright (c) Meta Platforms, Inc. and affiliates. Licensed under the Apache License, Version 2.0.
Modifications
State-dict key remapping only. Learned parameters are unchanged.
See weights/convert_depth_anything_v2_weights.py in the
LibreYOLO source repository.
Usage
from libreyolo import LibreYOLO
model = LibreYOLO("LibreYOLO/LibreDepthAnythingV2s-depth")
results = model.predict("image.jpg")
depth_map = results[0].depth_map # DepthMap(shape=(H, W), higher = closer)
Note β weight licensing split: The Apache-2.0 license covers the Depth Anything V2 source code and the Small (ViT-S) checkpoint only. Base / Large / Giant checkpoints are CC-BY-NC-4.0 (non-commercial). LibreYOLO does not redistribute those; convert them locally with
weights/convert_depth_anything_v2_weights.py.
License
Apache License 2.0. See the LICENSE and NOTICE files in this repository.
- Downloads last month
- 69