lightweight-ai
/
all_upscale
- Public
- 9.5K runs
Run lightweight-ai/all_upscale with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
img |
string
|
Input
|
|
version |
string
(enum)
|
General - v3
Options: General - RealESRGANplus, General - v3, Anime - anime6B, waifu2x, AnimeVideo - v3 |
RealESRGAN version. Please see [Readme] below for more descriptions
|
upscale_height |
integer
|
Upscaled Resolution
|
|
face_enhance |
boolean
|
False
|
Enhance faces with GFPGAN. Note that it does not work for anime images/vidoes
|
tile |
integer
|
0
|
Tile size. Default is 0, that is no tile. When encountering the out-of-GPU-memory issue, please specify it, e.g., 400 or 200
|
{
"type": "object",
"title": "Input",
"required": [
"img",
"upscale_height"
],
"properties": {
"img": {
"type": "string",
"title": "Img",
"format": "uri",
"x-order": 0,
"description": "Input"
},
"tile": {
"type": "integer",
"title": "Tile",
"default": 0,
"x-order": 4,
"description": "Tile size. Default is 0, that is no tile. When encountering the out-of-GPU-memory issue, please specify it, e.g., 400 or 200"
},
"version": {
"enum": [
"General - RealESRGANplus",
"General - v3",
"Anime - anime6B",
"waifu2x",
"AnimeVideo - v3"
],
"type": "string",
"title": "version",
"description": "RealESRGAN version. Please see [Readme] below for more descriptions",
"default": "General - v3",
"x-order": 1
},
"face_enhance": {
"type": "boolean",
"title": "Face Enhance",
"default": false,
"x-order": 3,
"description": "Enhance faces with GFPGAN. Note that it does not work for anime images/vidoes"
},
"upscale_height": {
"type": "integer",
"title": "Upscale Height",
"x-order": 2,
"description": "Upscaled Resolution"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}