Instructions to use CineAI/Depth-Pro-hf-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CineAI/Depth-Pro-hf-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="CineAI/Depth-Pro-hf-4bit")# Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("CineAI/Depth-Pro-hf-4bit") model = AutoModelForDepthEstimation.from_pretrained("CineAI/Depth-Pro-hf-4bit") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,6 +27,10 @@ depth_model = DepthProForDepthEstimation.from_pretrained(
|
|
| 27 |
|
| 28 |
## How to use it
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
```python
|
| 31 |
import torch
|
| 32 |
from PIL import Image
|
|
|
|
| 27 |
|
| 28 |
## How to use it
|
| 29 |
|
| 30 |
+
```bash
|
| 31 |
+
pip install --upgrade transformers accelerate bitsandbytes
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
```python
|
| 35 |
import torch
|
| 36 |
from PIL import Image
|