Instructions to use justinsoberano/depth-ai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justinsoberano/depth-ai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="justinsoberano/depth-ai")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("justinsoberano/depth-ai") model = AutoModelForDepthEstimation.from_pretrained("justinsoberano/depth-ai", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from justinsoberano/depth-ai: direct link, hf CLI and curl.
- Browser
- Download file 137 Bytes
-
https://huggingface.co/justinsoberano/depth-ai/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://justinsoberano/depth-ai/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/justinsoberano/depth-ai/resolve/main/preprocessor_config.json
137 Bytes
| { | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "GLPNFeatureExtractor", | |
| "resample": 2, | |
| "size_divisor": 32 | |
| } | |