a-und-b/ComfyUI_IC-Light-v2_fal
Tentang
Custom node for ComfyUI that integrates lllyasviel's IC-Light V2 model into your workflows using the fal.ai API.
AI dan pembelajaran mesinYang dapat Anda lakukan
- 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
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliAB 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.

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.
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 relightprompt: the light and background you wantnegative_prompt: what the result should not shownum_inference_steps: more steps, more detail, slowerguidance_scale: how closely the result follows the promptseed:-1lets fal.ai pick a random seedinitial_latent: side the light comes from (None,Left,Right,Top,Bottom)enable_hr_fix: second pass at higher resolutionlowres_denoise: denoise strength of the low-resolution passhighres_denoise: denoise strength of the high-resolution pass (withenable_hr_fix)hr_downscale: scale of the low-resolution pass (withenable_hr_fix)num_images: images per run, each billed by fal.aicfg: real CFG scale, 1.0 is the fal.ai defaultoutput_format:jpegorpngmask(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
Credits
- lllyasviel for the IC-Light model
- fal.ai for the API endpoint
Jelajahi proyek terkait
Memuat…