kevin51jiang/ic-light 🔢📝❓🖼️ → 🖼️

▶️ 16.6K runs 📅 Jul 2024 ⚙️ Cog 0.9.13 🔗 GitHub ⚖️ License
image-editing image-re-lighting

About

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

Example Output

Prompt:

"Woman, detailed face, sci-fi RGB glowing, cyberpunk"

Output

Example output

Performance Metrics

6.17s Prediction Time
6.27s Total Time
All Input Parameters
{
  "cfg": 2,
  "steps": 25,
  "width": 512,
  "height": 640,
  "prompt": "Woman, detailed face, sci-fi RGB glowing, cyberpunk",
  "light_source": "None",
  "highres_scale": 1.5,
  "output_format": "webp",
  "subject_image": "https://replicate.delivery/pbxt/LKArbc3pT7J4HBp4avXse2pa7bLbSBjweKjCPGx2CRc7KOZn/i3.png",
  "lowres_denoise": 0.9,
  "output_quality": 100,
  "appended_prompt": "best quality",
  "highres_denoise": 0.5,
  "negative_prompt": "lowres, bad anatomy, bad hands, cropped, worst quality",
  "number_of_images": 1
}
Input Parameters
cfg Type: numberDefault: 2Range: 1 - 32
Classifier-Free Guidance scale - higher values encourage adherence to prompt, lower values encourage more creative interpretation
seed Type: integer
A fixed random seed for reproducible results (omit this parameter for a randomized seed)
steps Type: integerDefault: 25Range: 1 - 100
The number of diffusion steps to perform during generation (more steps generally improves image quality but increases processing time)
width Type: integerDefault: 512Range: 100 - 1280
The width of the generated images in pixels
height Type: integerDefault: 640Range: 100 - 1280
The height of the generated images in pixels
prompt (required) Type: string
A text description guiding the relighting and generation process
light_source Default: None
The type and position of lighting to apply to the initial background latent
highres_scale Type: numberDefault: 1.5Range: 1 - 3
The multiplier for the final output resolution relative to the initial latent resolution
output_format Default: webp
The image file format of the generated output images
subject_image (required) Type: string
The main foreground image to be relighted
lowres_denoise Type: numberDefault: 0.9Range: 0.1 - 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)
output_quality Type: integerDefault: 100Range: 0 - 100
The image compression quality (for lossy formats like JPEG and WebP). 100 = best quality, 0 = lowest quality.
appended_prompt Type: stringDefault: best quality
Additional text to be appended to the main prompt, enhancing image quality
highres_denoise Type: numberDefault: 0.5Range: 0.1 - 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)
negative_prompt Type: stringDefault: lowres, bad anatomy, bad hands, cropped, worst quality
A text description of attributes to avoid in the generated images
number_of_images Type: integerDefault: 1Range: 1 - 12
The number of unique images to generate from the given input and settings
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 6885
[!] (<class 'cog.types.Path'>) input_fg=/tmp/tmp3lwup1pxi3.png
[!] (<class 'str'>) prompt=Woman, detailed face, sci-fi RGB glowing, cyberpunk
[!] (<class 'int'>) image_width=512
[!] (<class 'int'>) image_height=640
[!] (<class 'int'>) num_samples=1
[!] (<class 'int'>) seed=6885
[!] (<class 'int'>) steps=25
[!] (<class 'str'>) a_prompt=best quality
[!] (<class 'str'>) n_prompt=lowres, bad anatomy, bad hands, cropped, worst quality
[!] (<class 'float'>) cfg=2.0
[!] (<class 'float'>) highres_scale=1.5
[!] (<class 'float'>) highres_denoise=0.5
[!] (<class 'float'>) lowres_denoise=0.9
[!] (<class 'str'>) bg_source=None
  0%|          | 0/25 [00:00<?, ?it/s]
 12%|█▏        | 3/25 [00:00<00:00, 25.66it/s]
 24%|██▍       | 6/25 [00:00<00:00, 23.99it/s]
 36%|███▌      | 9/25 [00:00<00:00, 23.09it/s]
 48%|████▊     | 12/25 [00:00<00:00, 22.67it/s]
 60%|██████    | 15/25 [00:00<00:00, 22.47it/s]
 72%|███████▏  | 18/25 [00:00<00:00, 22.32it/s]
 84%|████████▍ | 21/25 [00:00<00:00, 22.23it/s]
 96%|█████████▌| 24/25 [00:01<00:00, 22.18it/s]
100%|██████████| 25/25 [00:01<00:00, 22.55it/s]
  0%|          | 0/25 [00:00<?, ?it/s]
  8%|▊         | 2/25 [00:00<00:01, 15.14it/s]
 16%|█▌        | 4/25 [00:00<00:01, 11.09it/s]
 24%|██▍       | 6/25 [00:00<00:01, 10.20it/s]
 32%|███▏      | 8/25 [00:00<00:01,  9.83it/s]
 40%|████      | 10/25 [00:00<00:01,  9.67it/s]
 44%|████▍     | 11/25 [00:01<00:01,  9.61it/s]
 48%|████▊     | 12/25 [00:01<00:01,  9.56it/s]
 52%|█████▏    | 13/25 [00:01<00:01,  9.52it/s]
 56%|█████▌    | 14/25 [00:01<00:01,  9.49it/s]
 60%|██████    | 15/25 [00:01<00:01,  9.46it/s]
 64%|██████▍   | 16/25 [00:01<00:00,  9.45it/s]
 68%|██████▊   | 17/25 [00:01<00:00,  9.42it/s]
 72%|███████▏  | 18/25 [00:01<00:00,  9.41it/s]
 76%|███████▌  | 19/25 [00:01<00:00,  9.40it/s]
 80%|████████  | 20/25 [00:02<00:00,  9.40it/s]
 84%|████████▍ | 21/25 [00:02<00:00,  9.39it/s]
 88%|████████▊ | 22/25 [00:02<00:00,  9.39it/s]
 92%|█████████▏| 23/25 [00:02<00:00,  9.38it/s]
 96%|█████████▌| 24/25 [00:02<00:00,  9.37it/s]
100%|██████████| 25/25 [00:02<00:00,  9.39it/s]
100%|██████████| 25/25 [00:02<00:00,  9.66it/s]
[~] Saving to output_images/generated_0.webp...
[~] Output format: WEBP
[~] Output quality: 100
Version Details
Version ID
bd4985f1b5074cfb2f972bd8208736d1100c004eb3d28f5d220b05133f1a36dc
Version Created
July 24, 2024
Run on Replicate →