Instructions to use onnx-community/maskformer-swin-tiny-coco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/maskformer-swin-tiny-coco with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/maskformer-swin-tiny-coco');
Download preprocessor_config.json from onnx-community/maskformer-swin-tiny-coco: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/onnx-community/maskformer-swin-tiny-coco/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://onnx-community/maskformer-swin-tiny-coco/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/onnx-community/maskformer-swin-tiny-coco/resolve/main/preprocessor_config.json
557 Bytes
| { | |
| "do_normalize": true, | |
| "do_reduce_labels": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "ignore_index": 255, | |
| "image_mean": [ | |
| 0.48500001430511475, | |
| 0.4560000002384186, | |
| 0.4059999883174896 | |
| ], | |
| "image_processor_type": "MaskFormerFeatureExtractor", | |
| "image_std": [ | |
| 0.2290000021457672, | |
| 0.2239999920129776, | |
| 0.22499999403953552 | |
| ], | |
| "max_size": 1333, | |
| "num_labels": null, | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 1333, | |
| "shortest_edge": 800 | |
| }, | |
| "size_divisor": 32 | |
| } | |