philz1337x / clarity-upscaler

High resolution image Upscaler and Enhancer. Use at ClarityAI.co. A free Magnific alternative. Twitter/X: @philz1337x

  • Public
  • 11M runs
  • A100 (40GB)
  • GitHub
  • Paper
  • License

Input

*file
Preview
image

input image

string
Shift + Return to add a new line

Prompt

Default: "masterpiece, best quality, highres, <lora:more_details:0.5> <lora:SDXLrender_v2.0:1>"

string
Shift + Return to add a new line

Negative Prompt

Default: "(worst quality, low quality, normal quality:2) JuggernautNegative-neg"

number

Scale factor

Default: 2

number
(minimum: 1, maximum: 50)

HDR, try from 3 - 9

Default: 6

number
(minimum: 0, maximum: 1)

Creativity, try from 0.3 - 0.9

Default: 0.35

number
(minimum: 0, maximum: 3)

Resemblance, try from 0.3 - 1.6

Default: 0.6

integer

Fractality, set lower tile width for a high Fractality

Default: 112

integer

Fractality, set lower tile height for a high Fractality

Default: 144

string

Stable Diffusion model checkpoint

Default: "juggernaut_reborn.safetensors [338b85bc4f]"

string

scheduler

Default: "DPM++ 3M SDE Karras"

integer
(minimum: 1, maximum: 100)

Number of denoising steps

Default: 18

integer

Random seed. Leave blank to randomize the seed

Default: 1337

boolean

Downscale the image before upscaling. Can improve quality and speed for images with high resolution but lower quality

Default: false

integer

Downscaling resolution

Default: 768

string
Shift + Return to add a new line

Link to a lora file you want to use in your upscaling. Multiple links possible, seperated by comma

Default: ""

string
Shift + Return to add a new line

Default: ""

number
(minimum: 0, maximum: 10)

Sharpen the image after upscaling. The higher the value, the more sharpening is applied. 0 for no sharpening

Default: 0

file

Mask image to mark areas that should be preserved during upscaling

string

Use clarity to fix hands in the image

Default: "disabled"

boolean

Upscale a pattern with seamless tiling

Default: false

string

Format of the output images

Default: "png"

Output

We were unable to load these images. Please make sure the URLs are valid.

{
  "input": "https://replicate.delivery/pbxt/KiDB5iqtTcxiTI17WASotG1Ei0TNJCztdU6J02pnMYAd8B1X/13_before-4.png",
  "outut": "https://replicate.delivery/pbxt/00paK5p2fY36XykEcte0skfqnSl3akRGTm4TC2l2wiU0E4QlA/1337-89fd2a6e-f5bd-11ee-87b9-bec9d6ff70a9.png"
}
Generated in

This example was created by a different version, philz1337x/clarity-upscaler:3bb9d341.

Run time and cost

This model costs approximately $0.014 to run on Replicate, or 71 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia A100 (40GB) GPU hardware. Predictions typically complete within 12 seconds.