Instructions to use Xenova/4x_APISR_GRL_GAN_generator-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/4x_APISR_GRL_GAN_generator-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-image', 'Xenova/4x_APISR_GRL_GAN_generator-onnx');
Upload 2 files
Browse files- config.json +3 -0
- preprocessor_config.json +7 -0
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "apisr"
|
| 3 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_pad": true,
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"image_processor_type": "Swin2SRImageProcessor",
|
| 5 |
+
"pad_size": 4,
|
| 6 |
+
"rescale_factor": 0.00392156862745098
|
| 7 |
+
}
|