Instructions to use facebook/dpt-dinov2-base-kitti with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/dpt-dinov2-base-kitti with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="facebook/dpt-dinov2-base-kitti")# Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("facebook/dpt-dinov2-base-kitti") model = AutoModelForDepthEstimation.from_pretrained("facebook/dpt-dinov2-base-kitti") - Notebooks
- Google Colab
- Kaggle
Fix code highlighting
Browse files
README.md
CHANGED
|
@@ -26,7 +26,7 @@ alt="drawing" width="600"/>
|
|
| 26 |
|
| 27 |
### Use with Transformers
|
| 28 |
|
| 29 |
-
```
|
| 30 |
from transformers import AutoImageProcessor, DPTForDepthEstimation
|
| 31 |
import torch
|
| 32 |
import numpy as np
|
|
|
|
| 26 |
|
| 27 |
### Use with Transformers
|
| 28 |
|
| 29 |
+
```python
|
| 30 |
from transformers import AutoImageProcessor, DPTForDepthEstimation
|
| 31 |
import torch
|
| 32 |
import numpy as np
|