zsxkib/ic-light πŸ”’β“πŸ“πŸ–ΌοΈ β†’ πŸ–ΌοΈ

▢️ 1.2M runs πŸ“… May 2024 βš™οΈ Cog 0.9.7 πŸ”— GitHub βš–οΈ License
image-editing image-re-lighting portrait-relighting

About

✍️✨Prompts to auto-magically relights your images

Example Output

Prompt:

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

Output

Example output

Performance Metrics

5.72s Prediction Time
5.77s Total Time
All Input Parameters
{
  "cfg": 2,
  "steps": 25,
  "width": 512,
  "height": 640,
  "prompt": "Woman, detailed face, sci-fi RGB glowing, cyberpunk",
  "light_source": "Left Light",
  "highres_scale": 1.5,
  "output_format": "webp",
  "subject_image": "https://replicate.delivery/pbxt/KtCKrs9sxPF3HciwoWL0TTVM9Nde7ySDWpO9S2flTiyi9Pp3/i3.png",
  "lowres_denoise": 0.9,
  "output_quality": 80,
  "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 Default: 512
The width of the generated images in pixels
height Default: 640
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: 80Range: 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: array β€’ Items Type: string β€’ Items Format: uri

Example Execution Logs
Using seed: 3579
[!] (<class 'cog.types.Path'>) input_fg=/tmp/tmpdqgnps5yi3.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=3579
[!] (<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=Left Light
  0%|          | 0/25 [00:00<?, ?it/s]
 12%|β–ˆβ–        | 3/25 [00:00<00:00, 29.80it/s]
 24%|β–ˆβ–ˆβ–       | 6/25 [00:00<00:00, 24.69it/s]
 36%|β–ˆβ–ˆβ–ˆβ–Œ      | 9/25 [00:00<00:00, 23.39it/s]
 48%|β–ˆβ–ˆβ–ˆβ–ˆβ–Š     | 12/25 [00:00<00:00, 22.81it/s]
 60%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ    | 15/25 [00:00<00:00, 22.50it/s]
 72%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–  | 18/25 [00:00<00:00, 22.31it/s]
 84%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 21/25 [00:00<00:00, 22.19it/s]
 96%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ| 24/25 [00:01<00:00, 22.09it/s]
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 25/25 [00:01<00:00, 22.68it/s]
  0%|          | 0/25 [00:00<?, ?it/s]
  8%|β–Š         | 2/25 [00:00<00:01, 15.12it/s]
 16%|β–ˆβ–Œ        | 4/25 [00:00<00:01, 11.04it/s]
 24%|β–ˆβ–ˆβ–       | 6/25 [00:00<00:01, 10.18it/s]
 32%|β–ˆβ–ˆβ–ˆβ–      | 8/25 [00:00<00:01,  9.81it/s]
 40%|β–ˆβ–ˆβ–ˆβ–ˆ      | 10/25 [00:00<00:01,  9.61it/s]
 44%|β–ˆβ–ˆβ–ˆβ–ˆβ–     | 11/25 [00:01<00:01,  9.54it/s]
 48%|β–ˆβ–ˆβ–ˆβ–ˆβ–Š     | 12/25 [00:01<00:01,  9.49it/s]
 52%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–    | 13/25 [00:01<00:01,  9.43it/s]
 56%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ    | 14/25 [00:01<00:01,  9.39it/s]
 60%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ    | 15/25 [00:01<00:01,  9.36it/s]
 64%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–   | 16/25 [00:01<00:00,  9.34it/s]
 68%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š   | 17/25 [00:01<00:00,  9.33it/s]
 72%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–  | 18/25 [00:01<00:00,  9.23it/s]
 76%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ  | 19/25 [00:01<00:00,  9.12it/s]
 80%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  | 20/25 [00:02<00:00,  9.17it/s]
 84%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 21/25 [00:02<00:00,  9.18it/s]
 88%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 22/25 [00:02<00:00,  9.22it/s]
 92%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–| 23/25 [00:02<00:00,  9.24it/s]
 96%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ| 24/25 [00:02<00:00,  9.23it/s]
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 25/25 [00:02<00:00,  9.26it/s]
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 25/25 [00:02<00:00,  9.55it/s]
[~] Saving to output_images/generated_0.webp...
[~] Output format: WEBP
[~] Output quality: 80
Version Details
Version ID
d41bcb10d8c159868f4cfbd7c6a2ca01484f7d39e4613419d5952c61562f1ba7
Version Created
May 21, 2024
Run on Replicate β†’