garg-aayush/clarity-upscaler

Public
2 runs

Input

pip install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import the client:
import replicate

Run garg-aayush/clarity-upscaler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "garg-aayush/clarity-upscaler:8f0b827ce21896089dc7bb068c3410ab6c48b2204755cbc37d8f471b56e57819",
    input={
        "seed": 1337,
        "prompt": "masterpiece, best quality, highres, <lora:more_details:0.5> <lora:SDXLrender_v2.0:1>",
        "dynamic": 6,
        "handfix": "disabled",
        "pattern": False,
        "sharpen": 0,
        "sd_model": "juggernaut_reborn.safetensors [338b85bc4f]",
        "scheduler": "DPM++ 3M SDE Karras",
        "creativity": 0.35,
        "lora_links": "",
        "downscaling": False,
        "resemblance": 0.6,
        "scale_factor": 2,
        "tiling_width": 112,
        "output_format": "png",
        "tiling_height": 144,
        "custom_sd_model": "",
        "negative_prompt": "(worst quality, low quality, normal quality:2) JuggernautNegative-neg",
        "multistep_factor": 0.8,
        "num_inference_steps": 18,
        "downscaling_resolution": 768
    }
)

# To access the file URL:
print(output[0].url())
#=> "http://example.com"

# To write the file to disk:
with open("my-image.png", "wb") as file:
    file.write(output[0].read())

To learn more, take a look at the guide on getting started with Python.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.