smoretalk
/
upscale
- Public
- 5 runs
Run smoretalk/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 |
---|---|---|---|
model_name |
string
(enum)
|
SUPIR-v0Q
Options: SUPIR-v0Q, SUPIR-v0F |
Choose a model. SUPIR-v0Q is the default training settings with paper. SUPIR-v0F is high generalization and high image quality in most cases. Training with light degradation settings. Stage1 encoder of SUPIR-v0F remains more details when facing light degradations.
|
image |
string
|
Low quality input image.
|
|
upscale |
integer
|
1
|
Upsampling ratio of given inputs.
|
min_size |
number
|
1024
|
Minimum resolution of output images.
|
edm_steps |
integer
|
50
Min: 1 Max: 500 |
Number of steps for EDM Sampling Schedule.
|
a_prompt |
string
|
Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.
|
Additive positive prompt for the inputs.
|
n_prompt |
string
|
painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth
|
Negative prompt for the inputs.
|
color_fix_type |
string
(enum)
|
Wavelet
Options: None, AdaIn, Wavelet |
Color Fixing Type..
|
s_stage1 |
integer
|
-1
|
Control Strength of Stage1 (negative means invalid).
|
s_churn |
number
|
5
|
Original churn hy-param of EDM.
|
s_noise |
number
|
1.003
|
Original noise hy-param of EDM.
|
s_cfg |
number
|
7.5
Min: 1 Max: 20 |
Classifier-free guidance scale for prompts.
|
s_stage2 |
number
|
1
|
Control Strength of Stage2.
|
linear_CFG |
boolean
|
False
|
Linearly (with sigma) increase CFG from 'spt_linear_CFG' to s_cfg.
|
linear_s_stage2 |
boolean
|
False
|
Linearly (with sigma) increase s_stage2 from 'spt_linear_s_stage2' to s_stage2.
|
spt_linear_CFG |
number
|
1
|
Start point of linearly increasing CFG.
|
spt_linear_s_stage2 |
number
|
0
|
Start point of linearly increasing s_stage2.
|
seed |
integer
|
Random seed. Leave blank to randomize the seed
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 17,
"description": "Random seed. Leave blank to randomize the seed"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "Low quality input image."
},
"s_cfg": {
"type": "number",
"title": "S Cfg",
"default": 7.5,
"maximum": 20,
"minimum": 1,
"x-order": 11,
"description": " Classifier-free guidance scale for prompts."
},
"s_churn": {
"type": "number",
"title": "S Churn",
"default": 5,
"x-order": 9,
"description": "Original churn hy-param of EDM."
},
"s_noise": {
"type": "number",
"title": "S Noise",
"default": 1.003,
"x-order": 10,
"description": "Original noise hy-param of EDM."
},
"upscale": {
"type": "integer",
"title": "Upscale",
"default": 1,
"x-order": 2,
"description": "Upsampling ratio of given inputs."
},
"a_prompt": {
"type": "string",
"title": "A Prompt",
"default": "Cinematic, High Contrast, highly detailed, taken using a Canon EOS R camera, hyper detailed photo - realistic maximum detail, 32k, Color Grading, ultra HD, extreme meticulous detailing, skin pore detailing, hyper sharpness, perfect without deformations.",
"x-order": 5,
"description": "Additive positive prompt for the inputs."
},
"min_size": {
"type": "number",
"title": "Min Size",
"default": 1024,
"x-order": 3,
"description": "Minimum resolution of output images."
},
"n_prompt": {
"type": "string",
"title": "N Prompt",
"default": "painting, oil painting, illustration, drawing, art, sketch, oil painting, cartoon, CG Style, 3D render, unreal engine, blurring, dirty, messy, worst quality, low quality, frames, watermark, signature, jpeg artifacts, deformed, lowres, over-smooth",
"x-order": 6,
"description": "Negative prompt for the inputs."
},
"s_stage1": {
"type": "integer",
"title": "S Stage1",
"default": -1,
"x-order": 8,
"description": "Control Strength of Stage1 (negative means invalid)."
},
"s_stage2": {
"type": "number",
"title": "S Stage2",
"default": 1,
"x-order": 12,
"description": "Control Strength of Stage2."
},
"edm_steps": {
"type": "integer",
"title": "Edm Steps",
"default": 50,
"maximum": 500,
"minimum": 1,
"x-order": 4,
"description": "Number of steps for EDM Sampling Schedule."
},
"linear_CFG": {
"type": "boolean",
"title": "Linear Cfg",
"default": false,
"x-order": 13,
"description": "Linearly (with sigma) increase CFG from 'spt_linear_CFG' to s_cfg."
},
"model_name": {
"enum": [
"SUPIR-v0Q",
"SUPIR-v0F"
],
"type": "string",
"title": "model_name",
"description": "Choose a model. SUPIR-v0Q is the default training settings with paper. SUPIR-v0F is high generalization and high image quality in most cases. Training with light degradation settings. Stage1 encoder of SUPIR-v0F remains more details when facing light degradations.",
"default": "SUPIR-v0Q",
"x-order": 0
},
"color_fix_type": {
"enum": [
"None",
"AdaIn",
"Wavelet"
],
"type": "string",
"title": "color_fix_type",
"description": "Color Fixing Type..",
"default": "Wavelet",
"x-order": 7
},
"spt_linear_CFG": {
"type": "number",
"title": "Spt Linear Cfg",
"default": 1,
"x-order": 15,
"description": "Start point of linearly increasing CFG."
},
"linear_s_stage2": {
"type": "boolean",
"title": "Linear S Stage2",
"default": false,
"x-order": 14,
"description": "Linearly (with sigma) increase s_stage2 from 'spt_linear_s_stage2' to s_stage2."
},
"spt_linear_s_stage2": {
"type": "number",
"title": "Spt Linear S Stage2",
"default": 0,
"x-order": 16,
"description": "Start point of linearly increasing s_stage2."
}
}
}
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"
}