Refocus - Generative Refocusing

by EricRollei0 starssuccess

ComfyUI nodes for Genfocus generative refocusing. Features DeblurNet (restore all-in-focus images), BokehNet (create realistic depth-of-field/bokeh effects), DepthPro depth estimation, and defocus map utilities. Uses FLUX.1-dev with specialized LoRA adapters.

View on GitHub

Nodes (20)

Apply BokehNet (Utility)BokehNetApplyRefocus/Bokeh
Compute Defocus MapComputeDefocusMapRefocus/Defocus
Apply DeblurNet (Utility)DeblurNetApplyRefocus/Deblur
Depth Metric to InverseDepthMetricToInverseRefocus/Depth
Depth Metric to RelativeDepthMetricToRelativeRefocus/Depth
DepthPro EstimateDepthProEstimateRefocus/Depth
Load DepthPro ModelDepthProModelLoaderRefocus/Depth
Focal Length MM to PXFocalMMtoPXRefocus/Depth
Focal Length PX to MMFocalPXtoMMRefocus/Depth
Focus Point From MaskFocusPointFromMaskRefocus/Defocus
Genfocus Bokeh (Native)GenfocusBokehNativeGenfocus
Genfocus ConditionGenfocusConditionGenfocus
Genfocus Deblur (Native)GenfocusDeblurNativeGenfocus
Genfocus Defocus Map ConditionGenfocusDefocusMapConditionGenfocus
Genfocus Generate (Native)GenfocusGenerateGenfocus
Load Genfocus LoRAs (Utility)GenfocusLoRALoaderRefocus/LoRA
Genfocus Model Loader (Native)GenfocusModelLoaderGenfocus
Genfocus Switch AdapterGenfocusSwitchAdapterGenfocus
Genfocus Unload ModelsGenfocusUnloadModelsGenfocus
Select Focus PointSelectFocusPointRefocus/Defocus