Instructions to use LiheYoung/depth-anything-large-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiheYoung/depth-anything-large-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="LiheYoung/depth-anything-large-hf")# Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("LiheYoung/depth-anything-large-hf") model = AutoModelForDepthEstimation.from_pretrained("LiheYoung/depth-anything-large-hf") - Notebooks
- Google Colab
- Kaggle
ValueError
#1
by bogoivanov - opened
ValueError: The checkpoint you are trying to load has model type depth_anything but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Hi,
For now you'll need to install Transformers from source to use it: pip install -q git+https://github.com/huggingface/transformers.git.
Hi,
For now you'll need to install Transformers from source to use it: pip install -q git+https://github.com/huggingface/transformers.git.
It still throw same error