Nodes/Refocus - Generative Refocusing/Apply BokehNet (Utility)
ComfyUI Node

Apply BokehNet (Utility)

Apply BokehNet to generate realistic depth-of-field effects

By EricRollei·Created 7 months ago·Updated 3 months ago· 18
Apply BokehNet (Utility)
  • model
  • clip
  • vae
  • genfocus_loras
  • image
  • defocus_map
  • latents
  • bokeh_image
  • latents
promptan excellent photo with a large aperture
steps28
guidance_scale1.0
seed1234
lora_strength1.00
CategoryRefocus/Bokeh

Inputs (12)

NameTypeDefaultDescription
modelMODEL
clipCLIP
vaeVAE
genfocus_lorasGENFOCUS_LORAS
imageIMAGE
defocus_mapDEFOCUS_MAP
promptoptSTRINGan excellent photo with a large apertureText prompt to guide bokeh generation
stepsoptINT281–100Number of denoising steps
guidance_scaleoptFLOAT1.01–20Classifier-free guidance scale
seedoptINT12340–18446744073709550000Random seed for reproducibility
lora_strengthoptFLOAT1.000–2LoRA adapter strength
latentsoptLATENTOptional: reuse latents from previous run for consistency

Outputs (2)

NameTypeDescription
bokeh_imageIMAGE
latentsLATENT