LayerStyle SAM Models Adapter
Use Your Layer Style SAM Models in SimpleSyrup Without Reloading
- sam_models
- sam_model
- dino_model
Model loading is the part of ComfyUI workflows that nobody wants to repeat. If you already use ComfyUI Layer Style Advance, you've got a LS_SAM_MODELS bundle - a single value carrying both a loaded SAM model and a GroundingDINO model. The catch: SimpleSyrup's detection and masking nodes speak their own socket names (SAM_MODEL, DINO_MODEL), so that bundle doesn't plug straight in. LayerStyle SAM Models Adapter is the 15-second bridge: feed it the LayerStyle bundle, and it splits it into separate SimpleSyrup-compatible SAM and DINO model outputs, no reloading, no double VRAM.
How it works
It's the rare node whose entire mechanism fits in its one-line description: "Splits LayerStyle LS_SAM_MODELS into SAM_MODEL and DINO_MODEL." One input, two outputs:
- sam_models (
LS_SAM_MODELS): the bundle from a Layer Style Advance SAM loader. - output
sam_model(SAM_MODEL): the SAM half, for SimpleSyrup mask/SEGS nodes. - output
dino_model(DINO_MODEL): the DINO half, for SimpleSyrup detection nodes.
That's it. The pack README names the interoperability explicitly - Layer Style Advance is one of the three optional integrations SimpleSyrup supports, alongside Impact Pack and ComfyUI Prompt Control.
When you'd use it
Only when you're already invested in Layer Style Advance. If you load models through SimpleSyrup's own loaders (GroundingDINO Model Loader, SAM Model Loader), you don't need this node at all - those outputs already match the sockets. This adapter is for the hybrid workflow: your graph is built around Layer Style's model loading (maybe you use its other masking/editing nodes), but you want the detection chain - text-prompt DINO + SAM segmentation into SEGS - to run through SimpleSyrup's nodes, whose Prompt SEGS w/ SAM accepts both GROUNDING_DINO_MODEL and DINO_MODEL. One adapter keeps both packs in one graph without loading the same models twice.
The practical benefit is VRAM and startup time: without the adapter you'd load a second SAM/DINO set through SimpleSyrup's loaders, doubling the memory and the load wait. With it, you reuse what Layer Style already loaded.
Install
Ships in the SimpleSyrup pack (install once via ComfyUI Manager → search SimpleSyrup → Install → restart, or git clone https://github.com/Artificial-Sweetener/SimpleSyrup into custom_nodes + pip install -r requirements.txt). The adapter additionally requires ComfyUI Layer Style Advance installed - the LS_SAM_MODELS input socket won't exist otherwise. SimpleSyrup loads normally if Layer Style is absent; only this node needs it. Current ComfyUI build required (v3 extension API).
Common issues
- No
LS_SAM_MODELSsocket - Layer Style Advance isn't installed, or its nodes haven't registered after a restart. Install it, restart ComfyUI. - "LS_SAM_MODELS must contain SAM_MODEL and DINO_MODEL" - the bundle you connected isn't the expected shape (an empty/placeholder bundle). Load the models through Layer Style's loader first, then connect.
- Outputs won't plug into the rest of the graph - check you're using SimpleSyrup's own mask/detection nodes; Impact nodes may use different socket names.
- Node missing - update ComfyUI first.
It's a small adapter with a big effect on memory: the difference between one loaded model set and two.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| sam_models | LS_SAM_MODELS | LayerStyle SAM/DINO bundle to split into separate SimpleSyrup-compatible model sockets. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| sam_model | SAM_MODEL | SAM model split from the LayerStyle bundle for SimpleSyrup mask nodes. |
| dino_model | DINO_MODEL | DINO model split from the LayerStyle bundle for SimpleSyrup detection nodes. |