Instructions to use onnx-community/tiny-clip-test-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/tiny-clip-test-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('zero-shot-image-classification', 'onnx-community/tiny-clip-test-ONNX');
Download preprocessor_config.json from onnx-community/tiny-clip-test-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/onnx-community/tiny-clip-test-ONNX/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://onnx-community/tiny-clip-test-ONNX/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/onnx-community/tiny-clip-test-ONNX/resolve/main/preprocessor_config.json
503 Bytes
| { | |
| "crop_size": { | |
| "height": 30, | |
| "width": 30 | |
| }, | |
| "do_center_crop": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_processor_type": "CLIPFeatureExtractor", | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "processor_class": "CLIPProcessor", | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 30 | |
| } | |
| } | |