Nodes/lf-nodes/Detail transfer
ComfyUI Node

Detail transfer

Add a detail source's fine lightness detail (its high-pass) to an image, at a fixed gain or at the gain that makes the result's fine detail match a reference region's.

By lucafoscili·Created 2 years ago·Updated 5 days ago· 36
Detail transfer
  • image
  • detail_source
  • mask
  • reference_image
  • reference_mask
  • ui_widget
  • image
  • report
  • image_list
◄radius4►
◄modematch_reference►
◄strength1.00►
Category✨ LF Nodes/Texture

Inputs (9)

NameTypeDefaultDescription
imageIMAGEImage(s) to receive detail (sRGB).
detail_sourceIMAGEImage whose fine lightness detail is added: one for all images or one per image, same H,W.
radiusINT41–256Detail finer than this many pixels (box blur radius) is transferred and measured.
modeCOMBOmatch_referencematch_reference: choose the gain so the result's fine detail matches reference_image's; fixed: use strength.
strengthFLOAT1.000–10Gain on the source's detail in fixed mode (1.0 adds it as is). Ignored by match_reference.
maskoptMASKWhere detail is added and measured; values weight it. Defaults to the whole image.
reference_imageoptIMAGEImage whose fine detail spread the result should match (match_reference).
reference_maskoptMASKThe region of reference_image to measure. Defaults to the whole image.
ui_widgetoptLF_COMPARE[object Object]—

Outputs (3)

NameTypeDescription
imageIMAGEImage batch with the detail added to L*; zero-weight pixels and alpha are unchanged.
reportJSONlf.detail-transfer.v1: the fine-detail spreads measured and the gain used, per image.
image_listIMAGEThe same images as an authoritative list.