Nodes/ComfyUI-Inpaint-CropStitch-NB2/Florence-2 Smart Region Selector (FAL API)
ComfyUI Node

Florence-2 Smart Region Selector (FAL API)

Select one semantic region at a time using Florence-2 through the FAL API. API key can be provided by input or environment variable.

By amortegui84·Created 5 months ago·Updated 2 months ago· 3
Florence-2 Smart Region Selector (FAL API)
  • image
  • mask
  • mask_image
  • info
  • center_x
  • center_y
  • crop_width
  • crop_height
region_typeface
custom_text
selection_modelargest
padding_percent8.0
return_rect_maskfalse
api_key
api_key_env_varFAL_KEY
mask_blur_percent0.0
upload_max_dimension2048
detection_modeauto
Categoryinpaint/api

Inputs (11)

NameTypeDefaultDescription
imageIMAGE
region_typeCOMBOface6 options: glasses, face, upper_body, lower_body, full_body, object
custom_textoptSTRING
selection_modeoptCOMBOlargest2 options: largest, merge_all
padding_percentoptFLOAT8.00–100
return_rect_maskoptBOOLEANfalse
api_keyoptSTRING
api_key_env_varoptSTRINGFAL_KEY
mask_blur_percentoptFLOAT0.00–100Soft blur applied to the returned Florence mask.
upload_max_dimensionoptINT2048512–4096Downscale longest image edge before upload. Lower this if FAL closes the connection.
detection_modeoptCOMBOautoUse grounding_bbox for face if segmentation grabs the wrong region.

Outputs (7)

NameTypeDescription
maskMASK
mask_imageIMAGE
infoSTRING
center_xINT
center_yINT
crop_widthINT
crop_heightINT