Nodes/ainvfx-paintaplate/Relight Transfer
ComfyUI Node

Relight Transfer

Moves the new light of a regenerated shot onto the plate. Light, shadows and reflections come from the regeneration; texture, grain, sharpness and highlights stay the plate's. Each input is linear light, or sRGB as 'plate_space' and 'shot_space' say.

By AInVFX·Created 5 days ago·Updated about 17 hours ago· 2
Relight Transfer
  • plate
  • source
  • relit
  • image
◄radius8►
◄strength1.00►
◄aligntrue►
◄plate_spacelinear►
◄shot_spacelinear►
CategoryAInVFX/Paint a plate

Inputs (8)

NameTypeDefaultDescription
plateIMAGEThe plate in linear light, any size.
sourceIMAGEThe plate as the model saw it, in linear light. The light is measured at this size: half the plate's size is plenty, light is smooth.
relitIMAGEThe regenerated shot, same size as 'source', in linear light.
radiusINT81–256Detail size kept from the plate, in pixels of 'source'. Lower lets sharper new shadows through.
strengthFLOAT1.000–2—
alignBOOLEANtrueRemove a small shift of 'relit' first.
plate_spaceoptCOMBOlinearHow 'plate' and the result are encoded. sRGB is decoded to linear light here, frame by frame in parallel, and the result encoded back: far cheaper than core colour conversions at full size.
shot_spaceoptCOMBOlinearHow 'source' and 'relit' are encoded: sRGB, as the model saw and made them, is decoded here.

Outputs (1)

NameTypeDescription
imageIMAGE—