Nodes/ComfyUI_LC_MaskMaker_nodes/LC Smart Detailer 🩹
ComfyUI Node

LC Smart Detailer 🩹

Finds what you describe (hands, face, eyes, etc.) and redraws it at full detail. Each hand or face gets its own crop, scaled up to inpaint_resolution, redrawn, then blended back in. Nothing found? The image passes through untouched and the node tells you. No negative wired: fine for Flux, Krea 2, Anima and other cfg 1 models. Wire one for SDXL.

By lonecatone23·Created 16 days ago·Updated about 16 hours ago· 1
LC Smart Detailer 🩹
  • image
  • model
  • vae
  • positive
  • inpaint_positive
  • negative
  • image
  • mask
◄prompthands►
◄sam3_model▾►
◄threshold0.50►
◄grow4.0►
◄feather8.0►
◄blend0.80►
◄padding64►
◄inpaint_resolution1024►
◄sampler_name▾►
◄scheduler▾►
◄steps20►
◄cfg1.0►
◄denoise0.30►
◄seed0►
CategoryLC MaskMaker/detailer

Inputs (20)

NameTypeDefaultDescription
imageIMAGE—
modelMODEL—
vaeVAE—
positiveCONDITIONINGThe image's prompt. A prompt describing the whole scene can get drawn into every crop at denoise 0.3 and up (a whole tiny scene in the face): wire inpaint_positive to prevent that.
promptSTRINGhandsWhat to detail, as simple words separated by commas: hands, face. Every match is found (both hands, every face). Add :N to cap it, e.g. face:1.
sam3_modelCOMBOSAM 3 model that does the finding. Pick the SAM 3.1 download, or use your own sam3.pt / sam3.safetensors in models/sam3.
thresholdFLOAT0.500.05–0.95How sure SAM 3 has to be. Lower finds more (and more wrong things), higher is pickier. 0.5 is a good start. Colors are only a hint: 'red dress' can still pick a green dress. Things that are not there are not found.
growFLOAT4.0-64–256Pixels to grow (positive) or shrink (negative) the mask before inpainting. Growing a little covers the edges.
featherFLOAT8.00–128Softness of the mask edge in pixels, so the redrawn area blends into the rest. 0 = hard edge.
blendFLOAT0.800–1How much of the redraw is pasted in. 1 = all of it, 0.5 = half redraw, half original. Lower tames a redraw that went too far.
paddingINT640–1024Pixels of the surrounding image included with each crop, so the model sees the context.
inpaint_resolutionINT1024256–4096Each crop is redrawn at about this many pixels squared (1024 = 1 megapixel), whatever its shape. Higher = more detail, slower.
sampler_nameCOMBOSampler.
schedulerCOMBOScheduler.
stepsINT201–150Sampling steps.
cfgFLOAT1.01–30CFG. 1 for Flux, Krea 2, Anima and other cfg 1 models; around 5 to 7 for SDXL. Never goes below 1: a lower value (from a pipe or a wired input) is raised to 1, because below 1 the redraw comes out speckled.
denoiseFLOAT0.300–1How much is redrawn. Low keeps the shape and fixes details, high redraws from scratch.
seedINT00–18446744073709550000Seed for the redraw.
inpaint_positiveoptCONDITIONINGOptional. A prompt for the crops only, e.g. 'close-up of a woman's face, natural skin'. Used instead of positive for the redraw. Recommended whenever positive describes the whole scene.
negativeoptCONDITIONINGOptional. Leave empty for cfg 1 models; wire it for SDXL and other models that use a negative.

Outputs (2)

NameTypeDescription
imageIMAGE—
maskMASK—