Depth Estimation
Transformers
Safetensors
tipsv2_dpt
feature-extraction
vision
surface-normals
semantic-segmentation
dense-prediction
custom_code
Instructions to use google/tipsv2-g14-dpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/tipsv2-g14-dpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="google/tipsv2-g14-dpt", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("google/tipsv2-g14-dpt", trust_remote_code=True) model = AutoModel.from_pretrained("google/tipsv2-g14-dpt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update files
Verified signatureUpdate filesb9247c2
-
Remove image_encoder.py and update configuration_dpt.py
Verified signatureRemoves the unused image_encoder.py file and uploads configuration_dpt.py.6f7faf2 -
Remove image_encoder.py and update configuration_dpt.py
Verified signatureRemoves the unused image_encoder.py file and uploads configuration_dpt.py.0caf79c -
Remove image_encoder.py and update configuration_dpt.py
Verified signatureRemoves the unused image_encoder.py file and uploads configuration_dpt.py.b7ed313 -
Remove image_encoder.py
Verified signatureRemoves the unused image_encoder.py file from the integration PR.9cb581a -
Update files for transformers integration
Verified signatureUpdates the repo to smoothly integrate with transformers. PR: https://github.com/huggingface/transformers/pull/46347 Changes: - Update `config.json` to match transformers structure - Update config classes to handle new `config.json` - Add processor and tokenizer configs - Update DPT `model.safetensors` files to include DPT head + backbone weights - Update DPT model code to handle extra weights in `model.safetensors` file4ef05df
-
Update example image URL to use HF-hosted ADE20K image
Gabriele7eec622
-
Add navigation table linking all variants and DPT heads
Gabriele109ccc8
-
Revert "Use device-agnostic code instead of hardcoded .cuda()"
GabrieleThis reverts commit cd27033a2dc3ddcfbc30db5b77fb565e4c4fe388.071bca8 -
Use device-agnostic code instead of hardcoded .cuda()
Gabrielecd27033 -
Add print statements with descriptive comments to code examples
Gabriele1cc1840 -
Use cat photo, add print statements to code examples
Gabriele28ae6d4 -
Fix zero-shot segmentation section, use public example image
Gabrielee3015bd -
Fix backbone link in Model details
Gabriele51a33d5
-
Update README
Gabriele76a1ecb -
Upload README.md with huggingface_hub
Verified signature4e6a83b
-
Upload model.safetensors with huggingface_hub
Verified signaturecf4ae00 -
Upload README.md with huggingface_hub
Verified signature4a196e1 -
Upload config.json with huggingface_hub
Verified signature247406c -
Upload dpt_head.py with huggingface_hub
Verified signature4a592df -
Upload modeling_dpt.py with huggingface_hub
Verified signature4e09276 -
Upload configuration_dpt.py with huggingface_hub
Verified signature10532f4 -
initial commit
Verified signature4c5ed74