kevin51jiang / ic-light

Fork of https://replicate.com/zsxkib/ic-light that allows any image resolution

  • Public
  • 15.2K runs
  • L40S
  • GitHub
  • License

Input

subject_image
*file

The main foreground image to be relighted

*string
Shift + Return to add a new line

A text description guiding the relighting and generation process

string
Shift + Return to add a new line

Additional text to be appended to the main prompt, enhancing image quality

Default: "best quality"

string
Shift + Return to add a new line

A text description of attributes to avoid in the generated images

Default: "lowres, bad anatomy, bad hands, cropped, worst quality"

integer
(minimum: 100, maximum: 1280)

The width of the generated images in pixels

Default: 512

integer
(minimum: 100, maximum: 1280)

The height of the generated images in pixels

Default: 640

integer
(minimum: 1, maximum: 100)

The number of diffusion steps to perform during generation (more steps generally improves image quality but increases processing time)

Default: 25

number
(minimum: 1, maximum: 32)

Classifier-Free Guidance scale - higher values encourage adherence to prompt, lower values encourage more creative interpretation

Default: 2

number
(minimum: 1, maximum: 3)

The multiplier for the final output resolution relative to the initial latent resolution

Default: 1.5

number
(minimum: 0.1, maximum: 1)

Controls the amount of denoising applied when refining the high resolution output (higher = more adherence to the upscaled latent, lower = more creative details added)

Default: 0.5

number
(minimum: 0.1, maximum: 1)

Controls the amount of denoising applied when generating the initial latent from the background image (higher = more adherence to the background, lower = more creative interpretation)

Default: 0.9

string

The type and position of lighting to apply to the initial background latent

Default: "None"

integer

A fixed random seed for reproducible results (omit this parameter for a randomized seed)

integer
(minimum: 1, maximum: 12)

The number of unique images to generate from the given input and settings

Default: 1

string

The image file format of the generated output images

Default: "webp"

integer
(minimum: 0, maximum: 100)

The image compression quality (for lossy formats like JPEG and WebP). 100 = best quality, 0 = lowest quality.

Default: 100

Output

output
Generated in
ShareReport

This output was created using a different version of the model, kevin51jiang/ic-light:c5089f92.

Run time and cost

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

Readme

This model doesn't have a readme.