fofr / illusions

Create illusions with img2img and masking support

  • Public
  • 48.1K runs
  • L40S
  • GitHub

Input

string
Shift + Return to add a new line

Default: "a painting of a 19th century town"

string
Shift + Return to add a new line

The negative prompt to guide image generation.

Default: "ugly, disfigured, low quality, blurry, nsfw"

integer
(minimum: 20, maximum: 100)

Number of diffusion steps

Default: 40

number
(minimum: 0.1, maximum: 30)

Scale for classifier-free guidance

Default: 7.5

integer
integer

Default: 768

integer

Default: 768

string

Decide how to resize images – use width/height, resize based on input image or control image

Default: "width/height"

integer
(minimum: 1, maximum: 4)

Number of outputs

Default: 1

file
Preview
control_image

Control image

file
Preview
image

Optional img2img

file

Optional mask for inpainting

number
(minimum: 0, maximum: 1)

Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image

Default: 0.8

number
(minimum: 0, maximum: 4)

How strong the controlnet conditioning is

Default: 0.75

number
(minimum: 0, maximum: 1)

When controlnet conditioning starts

Default: 0

number
(minimum: 0, maximum: 1)

When controlnet conditioning ends

Default: 1

Output

output
Generated in

Run time and cost

This model costs approximately $0.017 to run on Replicate, or 58 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 18 seconds. The predict time for this model varies significantly based on the inputs.

Readme

An updated version of https://replicate.com/andreasjansson/illusion

This model:

  • uses Deliberate v2 as a base model for better quality outputs
  • has img2img support
  • has inpainting support
  • has controlnet start and end support
  • allows resizing based on image or control image
  • logs seed