Nodes Browser

ComfyDeploy: How ComfyUI_Florence2SAM2 works in ComfyUI?

What is ComfyUI_Florence2SAM2?

ComfyUI custom node implementing Florence 2 + Segment Anything Model 2, based on [a/SkalskiP's HuggingFace space](https://huggingface.co/spaces/SkalskiP/florence-sam)

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI_Florence2SAM2 and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI custom node implementing Florence 2 + Segment Anything Model 2, based on SkalskiP's HuggingFace space

sample workflow

RdancerFlorence2SAM2GenerateMask - the node is self-contained, and does not require separate model loaders. Models are lazy-loaded, and cached. Model unloading, if required, must be done manually.

Testing

Run python test.py test/*_source.png "products" 👉 the resulting images must pixel-match test/*output*.