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