Instructions to use apple/DepthPro-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apple/DepthPro-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="apple/DepthPro-hf")# Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("apple/DepthPro-hf") model = AutoModelForDepthEstimation.from_pretrained("apple/DepthPro-hf") - Notebooks
- Google Colab
- Kaggle
Upload preprocessor_config.json with huggingface_hub
Browse files- preprocessor_config.json +0 -1
preprocessor_config.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
| 8 |
"image_std": 0.5,
|
| 9 |
"resample": 2,
|
| 10 |
"rescale_factor": 0.00392156862745098,
|
| 11 |
-
"return_tensors": "pt",
|
| 12 |
"size": {
|
| 13 |
"height": 1536,
|
| 14 |
"width": 1536
|
|
|
|
| 8 |
"image_std": 0.5,
|
| 9 |
"resample": 2,
|
| 10 |
"rescale_factor": 0.00392156862745098,
|
|
|
|
| 11 |
"size": {
|
| 12 |
"height": 1536,
|
| 13 |
"width": 1536
|