Instructions to use Xenova/moondream2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/moondream2 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'Xenova/moondream2');
Update preprocessor_config.json
Browse files- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"resample": 3,
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
-
"height":
|
| 21 |
-
"width":
|
| 22 |
}
|
| 23 |
}
|
|
|
|
| 17 |
"resample": 3,
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
+
"height": 378,
|
| 21 |
+
"width": 378
|
| 22 |
}
|
| 23 |
}
|