Instructions to use Xenova/tiny-random-Swin2SRModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/tiny-random-Swin2SRModel with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-feature-extraction', 'Xenova/tiny-random-Swin2SRModel');
Download preprocessor_config.json from Xenova/tiny-random-Swin2SRModel: direct link, hf CLI and curl.
- Browser
- Download file 185 Bytes
-
https://huggingface.co/Xenova/tiny-random-Swin2SRModel/resolve/f207c13b93f307990b7f64df00c19c2a4ed8a52b/preprocessor_config.json
- Command line
-
hf download hf://Xenova/tiny-random-Swin2SRModel@f207c13b93f307990b7f64df00c19c2a4ed8a52b/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Xenova/tiny-random-Swin2SRModel/resolve/f207c13b93f307990b7f64df00c19c2a4ed8a52b/preprocessor_config.json
185 Bytes
| { | |
| "crop_size": 32, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "image_processor_type": "Swin2SRImageProcessor", | |
| "pad_size": 8, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": 32 | |
| } | |