Instructions to use plhery/mobileclip2-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use plhery/mobileclip2-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-feature-extraction', 'plhery/mobileclip2-onnx');
Download preprocessor_config.json from plhery/mobileclip2-onnx: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/plhery/mobileclip2-onnx/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://plhery/mobileclip2-onnx/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/plhery/mobileclip2-onnx/resolve/main/preprocessor_config.json
284 Bytes
| { | |
| "image_processor_type": "CLIPImageProcessor", | |
| "crop_size": {"height": 256, "width": 256}, | |
| "do_center_crop": true, | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "image_mean": [0.0, 0.0, 0.0], | |
| "image_std": [1.0, 1.0, 1.0], | |
| "resample": 3, | |
| "size": {"shortest_edge": 256} | |
| } | |