Instructions to use DarthReca/depth-any-canopy-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DarthReca/depth-any-canopy-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="DarthReca/depth-any-canopy-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForDepthEstimation processor = AutoImageProcessor.from_pretrained("DarthReca/depth-any-canopy-small") model = AutoModelForDepthEstimation.from_pretrained("DarthReca/depth-any-canopy-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update preprocessor_config.json
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"do_normalize": false,
|
| 21 |
"do_pad": false,
|
| 22 |
"do_rescale": false,
|
| 23 |
-
"do_resize":
|
| 24 |
"ensure_multiple_of": 14,
|
| 25 |
"image_mean": [
|
| 26 |
0.485,
|
|
|
|
| 20 |
"do_normalize": false,
|
| 21 |
"do_pad": false,
|
| 22 |
"do_rescale": false,
|
| 23 |
+
"do_resize": true,
|
| 24 |
"ensure_multiple_of": 14,
|
| 25 |
"image_mean": [
|
| 26 |
0.485,
|