Instructions to use onnx-community/DepthPro-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/DepthPro-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('depth-estimation', 'onnx-community/DepthPro-ONNX');
| { | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": false, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "ViTFeatureExtractor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098 | |
| } |