Instructions to use scenario-labs/depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scenario-labs/depth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="scenario-labs/depth")# Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("scenario-labs/depth") model = AutoModelForDepthEstimation.from_pretrained("scenario-labs/depth", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "do_normalize": true, | |
| "do_pad": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "ensure_multiple_of": 14, | |
| "image_mean": [0.485, 0.456, 0.406], | |
| "image_processor_type": "DPTImageProcessor", | |
| "image_std": [0.229, 0.224, 0.225], | |
| "keep_aspect_ratio": true, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 518, | |
| "width": 518 | |
| }, | |
| "size_divisor": null | |
| } | |