Skip to content
项目

a-und-b/ComfyUI_IC-Light-v2_fal

在 GitHub 查看

关于

Custom node for ComfyUI that integrates lllyasviel's IC-Light V2 model into your workflows using the fal.ai API.

人工智能与机器学习

这些数字如何统计

可以做什么

  • New light and background from a description - prompt, e.g. at the beach, golden hour
  • Light from one side - initial_latent: Left, Right, Top, Bottom
  • Only part of the image relit - an optional mask
  • More detail - enable_hr_fix with highres_denoise and hr_downscale

实测星标增长

24小时
0
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

AB IC-Light V2 (fal.ai): relight photos and swap backgrounds in ComfyUI

Describe the light and the place, get your subject relit to match; IC-Light V2 runs on fal.ai, no local GPU needed.


Star this repo   Comfy Registry installs   Comfy Registry version   License: MIT


Load Image feeds AB IC-Light V2 (fal.ai) with a prompt for warm sunset light from the left, into Preview Image


A cut-out subject pasted onto a new background never looks right: the light on the subject comes from somewhere else. lllyasviel's IC-Light V2 relights the subject to the scene you describe. This node sends your image to the fal.ai API and returns the result as a ComfyUI image.

Install · Example workflow · Parameters · Contributing


Why AB IC-Light V2 (fal.ai)

Running IC-Light V2 locally needs a large GPU and its own model setup. Here it is one node and a fal.ai key. The node makes network calls by design: it uploads the image (and mask) to fal.ai and downloads the result. fal.ai bills every image; see their pricing before you queue batches. Dependencies: fal-client, requests, pillow.

Features

You want You use
New light and background from a description prompt, e.g. at the beach, golden hour
Light from one side initial_latent: Left, Right, Top, Bottom
Only part of the image relit an optional mask
More detail enable_hr_fix with highres_denoise and hr_downscale
Several variants in one request num_images (1–4)

Install

ComfyUI Manager: search for AB IC-Light V2, install, set your API key (below), restart ComfyUI.

comfy-cli:

comfy node install ComfyUI_IC-Light-v2_fal

Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/a-und-b/ComfyUI_IC-Light-v2_fal.git
pip install -r ComfyUI_IC-Light-v2_fal/requirements.txt

Restart ComfyUI. The node appears under AB/Image; search for AB IC-Light or relight.

API key

Set your fal.ai API key as an environment variable before starting ComfyUI:

export FAL_KEY=your_fal_key

Existing config.ini setups ([falai] api_key=…) still work; FAL_KEY wins when both are set.

Example workflow

ab-ic-light-relight-on-fal.json: Load Image → AB IC-Light V2 (fal.ai) → Preview Image, core nodes only. Drag the file onto the canvas, or open it in ComfyUI under Workflow → Browse Templates, under the pack's name. Pick your image in Load Image and queue: each run is one paid fal.ai request. The preview above shows the graph before a run.

For best results, remove the background first (any background-removal node) and connect the subject's mask to mask.

Parameters

  • image: the subject to relight
  • prompt: the light and background you want
  • negative_prompt: what the result should not show
  • num_inference_steps: more steps, more detail, slower
  • guidance_scale: how closely the result follows the prompt
  • seed: -1 lets fal.ai pick a random seed
  • initial_latent: side the light comes from (None, Left, Right, Top, Bottom)
  • enable_hr_fix: second pass at higher resolution
  • lowres_denoise: denoise strength of the low-resolution pass
  • highres_denoise: denoise strength of the high-resolution pass (with enable_hr_fix)
  • hr_downscale: scale of the low-resolution pass (with enable_hr_fix)
  • num_images: images per run, each billed by fal.ai
  • cfg: real CFG scale, 1.0 is the fal.ai default
  • output_format: jpeg or png
  • mask (optional): area to relight

Up to 0.1.x the node was called IC-Light V2 (fal.ai) under image effects/lighting. Search still finds the old name, and saved workflows load unchanged.

Contributing

Bug reports and pull requests are welcome. Open an issue first for larger changes; CONTRIBUTING.md has the three steps.

License

MIT

Credits


探索相关项目

加载中…