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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| region_type | COMBO | face | 6 options: glasses, face, upper_body, lower_body, full_body, object |
| custom_textopt | STRING | — | |
| selection_modeopt | COMBO | largest | 2 options: largest, merge_all |
| padding_percentopt | FLOAT | 8.00–100 | — |
| return_rect_maskopt | BOOLEAN | false | — |
| api_keyopt | STRING | — | |
| api_key_env_varopt | STRING | FAL_KEY | — |
| mask_blur_percentopt | FLOAT | 0.00–100 | Soft blur applied to the returned Florence mask. |
| upload_max_dimensionopt | INT | 2048512–4096 | Downscale longest image edge before upload. Lower this if FAL closes the connection. |
| detection_modeopt | COMBO | auto | Use grounding_bbox for face if segmentation grabs the wrong region. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| mask_image | IMAGE | — |
| info | STRING | — |
| center_x | INT | — |
| center_y | INT | — |
| crop_width | INT | — |
| crop_height | INT | — |