SDR → HDR AI Fill Re-render (RUDRA v5, experimental)
Re-draw the whole window, not just the blown bits — and keep the rest of the frame
- image
- source
- reconstructed_mask
- image
- generated_mask
- reconstructed_mask
- report
A different bet from AI Fill v3
AI Fill v3's rule is that it only touches fully clipped pixels and leaves every other pixel bit-identical. That's a great guarantee and a real limitation: a window that's sitting at 98% white, not clipped, looks like a poster with a faint gradient on it, and v3 isn't allowed to help. Same for a sky just under white, or a practical lamp whose brightest part survived.
The Re-render node raises the stakes and the range. It takes the source SDR, finds the regions at code 240 and above, and draws that whole bright region again - window, open door, sky, lamp, sun glare - in a model pass with RUDRA 1.3's app finish on top. Inside the region, the SDR's codes are simply not kept. Outside it, every pixel is the master's.
So the contract flips from "add only where nothing exists" to "redraw where the image is bright and put everything else back exactly". If you were frustrated that v3 did nothing on your shot, this is why. If you were comforted by v3's bit-identical guarantee, this is the trade.
The pack labels it experimental, and it means it. RUDRA's own notes admit the sky can still shift slightly where windows join and the model can invent a sun or flare in a plain sky.
How it works
Two inputs define the job: the master, and the SDR it came from, frame for frame (resized to the master's size if they differ). The regions are the SDR's codes at 240+. condition tells the model how to read that source - bt1886 (code ^ 2.4) matches the analytic route and is what v4 was gated on; aces uses the ACES 2.0 inverse for a master from the RUDRA ACES 2 route.
finish is where the numbers get refreshingly specific. RUDRA app (1.3) sets source colour at 0.3 of the model's, level at 3.3 × SDR white, smoothing 0.8, dark detail capped at 0.3 stops, near-white sources only. off gives you the model as registered on 9 Nov - which, in the pack's own words, failed the level and flicker gates. There's a third option for the 12 Nov finish. Leaving the default alone is the sane choice; the alternatives exist so old graphs still reproduce.
region_model picks the LoRA: v5 (steadier on lamps, doors, windows, sun glare and thin objects against a bright sky), v4.3, or the v4 research build that is never auto-downloaded. keep_detail preserves thin, broken-up things inside the region - a floor grating's bright bars, a railing, a small practical lamp - instead of redrawing them. Turn it on the moment you have architecture in frame.
Inputs and outputs
Required: image, image_encoding, source, prompt_highlight (empty gives texture with no subject). Optional: reconstructed_mask, condition, finish, steps, seed, lora, base_model, fill_package, allow_download, keep_loaded, region_model, keep_detail.
Out: image, generated_mask, reconstructed_mask, report. Same shape as v3, so you can wire either into RUDRA Master Write.
Install, and the honest hardware note
cd ComfyUI/custom_nodes
git clone https://github.com/fxtd-studios/radiance
cd radiance
python -m pip install -r requirements.txt
Manager → Radiance → Install, restart, refresh. Windows portable: pip via python_embeded\python.exe.
First use downloads the v5 LoRA (263 MB), Wan2.1-VACE-1.3B (7.7 GB) and the v3 package's prompt cache (271 MB) - that last one is used only so an empty prompt needs no 11 GB text encoder. About 16 GB of VRAM. And here's the bit that catches people: Radiance runs RUDRA 1.3's finish and does not include RUDRA 1.2.5's lower-memory mode, so a card under 16 GB may simply run out of memory. If that's you, the analytic route plus v3 is the realistic path.
Where people get burned
It is not a highlight-only tool. Point it at a night scene with a bright window and it redraws the window, because the window is what's above code 240. That's the design; it also means a prompt like "city lights at dusk" will be applied to something you thought was fine.
The prompt is the whole content. Empty gives texture with no subject, which on a window looks like frosted glass. Say what's in the room.
Review the join. Windows of frames are generated separately. Look for brightness steps at joins, and for a sky that changes character halfway across a pan. The report and the flicker numbers are how you find those without watching 300 frames at 1× speed.
Experimental means experimental. Ship it only with the mask, and let the sidecar record that these pixels were generated - that's what generated_mask into Master Write is for.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The HDR master (scene-linear, 1.0 = diffuse white), a batch read as ordered frames of one shot. RUDRA tested v4 on its analytic route. | |
| image_encoding | COMBO | Linear (Rec.709) | How the master is encoded. The result leaves in the same encoding. |
| source | IMAGE | The SDR the master was made from (display-referred, 0..1), frame for frame. The regions are its codes at 240 and above. Resized to the master's size if it differs. | |
| prompt_highlight | STRING | What is in the bright area (e.g. 'an overcast sky through an open door'). Empty: texture with no subject. A new prompt loads the 11 GB umT5 text encoder once. | |
| reconstructed_maskopt | MASK | The master's reconstructed_mask; the output becomes max(it, generated). | |
| conditionopt | COMBO | bt1886 | How the model reads the source. bt1886: code ^ 2.4, RUDRA's analytic route (what v4 was gated on). aces: the ACES 2.0 inverse, for a master from the RUDRA ACES 2 route. |
| finishopt | COMBO | RUDRA app (1.3) | RUDRA app: source colour (0.3 of the model's), level 3.3 x SDR white, smoothing 0.8, dark detail at most 0.3 stops, near-white sources only. off: the model's own colour and level, as registered on 9 Nov (it failed the level and flicker gates). |
| stepsopt | INT | 304–80 | Denoising steps per window. RUDRA uses 30. |
| seedopt | INT | 00–4294967295 | Noise seed. The same seed and settings give the same fill. |
| loraopt | STRING | A region LoRA file or its folder, instead of region_model's own. Empty: v5 from RADIANCE_RUDRA_GENFILL_V5 or models/radiance/rudra_genfill_v5/, v4.3 from models/radiance/rudra_genfill_v4/ (downloaded if missing); v4 research from RADIANCE_RUDRA_GENFILL_V4 or models/radiance/rudra_genfill_v4/ (never downloaded). | |
| base_modelopt | STRING | Wan2.1-VACE-1.3B-diffusers folder. Empty searches RADIANCE_WAN_VACE, models/radiance/ and models/diffusers/. | |
| fill_packageopt | STRING | The AI fill v3 folder, used here for its prompt cache only (the base prompt's embedding, so no 11 GB text encoder for an empty prompt). | |
| allow_downloadopt | BOOLEAN | true | Download what is missing: the v5 or v4.3 LoRA (263 MB), the Wan base model (7.7 GB) and the v3 package's prompt cache (271 MB). Never the v4 research LoRA. RADIANCE_ALLOW_DOWNLOADS=0 always wins. |
| keep_loadedopt | BOOLEAN | true | Keep Wan VACE on the GPU between runs. Off frees it after this node. |
| region_modelopt | COMBO | v5 | Which region LoRA draws. v5 (RUDRA 1.3): steadier on lamps, doors, windows, sun glare and thin objects against a bright sky. v4.3 (RUDRA 1.2.4). v4 research: the 12 Nov build this node first ported, with its 12 Nov finish. |
| keep_detailopt | BOOLEAN | false | Thin, broken-up and small parts of the region keep the master's picture (a floor grating's bright bars, a railing, a practical lamp); RUDRA 1.2.7. Off redraws the whole region, as RUDRA's app does by default. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| generated_mask | MASK | — |
| reconstructed_mask | MASK | — |
| report | STRING | — |