zust-ai / supir

  • Public
  • 159.8K runs
  • A100 (80GB)

Run zust-ai/supir with an API

Input schema

seedinteger

Random seed. Leave blank to randomize the seed

imageuri

Low quality input image.

s_cfgnumber

Classifier-free guidance scale for prompts.

Default
7.5
Minimum
1
Maximum
20
s_churnnumber

Original churn hy-param of EDM.

Default
5
s_noisenumber

Original noise hy-param of EDM.

Default
1.003
upscaleinteger

Upsampling ratio of given inputs.

Default
1
a_promptstring

Additive positive prompt for the inputs.

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."
min_sizenumber

Minimum resolution of output images.

Default
1024
n_promptstring

Negative prompt for the inputs.

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"
s_stage1integer

Control Strength of Stage1 (negative means invalid).

Default
-1
s_stage2number

Control Strength of Stage2.

Default
1
edm_stepsinteger

Number of steps for EDM Sampling Schedule.

Default
50
Minimum
1
Maximum
500
use_llavaboolean

Use LLaVA model to get captions.

Default
true
linear_CFGboolean

Linearly (with sigma) increase CFG from 'spt_linear_CFG' to s_cfg.

model_namestring

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"
color_fix_typestring

Color Fixing Type..

Default
"Wavelet"
spt_linear_CFGnumber

Start point of linearly increasing CFG.

Default
1
linear_s_stage2boolean

Linearly (with sigma) increase s_stage2 from 'spt_linear_s_stage2' to s_stage2.

spt_linear_s_stage2number

Start point of linearly increasing s_stage2.

Output schema

Type
uri