anotherjesse / illusion-diffusion-hq-img2img

  • Public
  • 26.1K runs
  • L40S

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 anotherjesse/illusion-diffusion-hq-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "anotherjesse/illusion-diffusion-hq-img2img:95b0f074cb08f988c631ba13261c577adc4f13fc787050252b96450b9ae3a0aa",
    input={
        "width": 768,
        "border": 1,
        "height": 768,
        "num_outputs": 1,
        "guidance_scale": 7.5,
        "negative_prompt": "ugly, disfigured, low quality, blurry, nsfw",
        "prompt_strength": 0.8,
        "qrcode_background": "gray",
        "num_inference_steps": 40,
        "controlnet_conditioning_scale": 1
    }
)
print(output)

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 costs approximately $0.0044 to run on Replicate, or 227 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 L40S GPU hardware. Predictions typically complete within 5 seconds.

Readme

This model doesn't have a readme.