ComfyUI Node
LASED Multi-Seed
Runs one LASED swarm per seed point and merges the edge fields (element-wise max) and masks (union) into a full-image contour map.
LASED Multi-Seed
- image
- edge_map
- mask
◄seeds64,64; 192,128►
◄tolerance40.0►
◄ants250►
◄steps600►
◄color_spacergb►
◄handboth►
◄beta4.0►
◄epsilon0.05►
◄seed0►
◄modemasking►
◄mask_threshold0.15►
◄sticky_threshold0.20►
◄freeze_after0►
◄no_decayfalse►
◄max_side512►
CategoryLASED
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| seeds | STRING | 64,64; 192,128 | Spawn points as 'x,y; x,y; ...' in input-image pixels. Each point gets its own swarm and target colour. |
| tolerance | FLOAT | 40.01–250 | Colour tolerance (tau). Lower = tighter region. Lab distances run smaller; try 10-25 there. |
| ants | INT | 2501–5000 | — |
| steps | INT | 6001–20000 | Simulation ticks. More steps = cleaner, more complete contours. |
| color_space | COMBO | rgb | 3 options: rgb, weighted, lab |
| hand | COMBO | both | Wall-following handedness; 'both' splits the swarm into clockwise and counter-clockwise cohorts. |
| beta | FLOAT | 4.00.1–12 | Softmax temperature. Higher = greedier edge following. |
| epsilon | FLOAT | 0.050–0.5 | Random-move floor; prevents the swarm freezing. |
| seed | INT | 00–18446744073709550000 | — |
| mode | COMBO | masking | classic: MASK = thresholded edge pheromone. masking (Stage 2): MASK = sticky-latched, gap-closed, despeckled contour. |
| mask_threshold | FLOAT | 0.150.01–0.95 | classic mode only: threshold on the normalised edge map for the MASK output. |
| sticky_threshold | FLOAT | 0.200.05–0.6 | masking mode: latch a cell when its edge pheromone crosses this fraction of the field maximum. |
| freeze_after | INT | 00–20000 | masking mode: freeze (and clean) the mask after this many ticks. 0 = run all steps, then freeze. |
| no_decay | BOOLEAN | false | masking mode: stop edge-pheromone evaporation entirely. |
| max_side | INT | 5120–4096 | Downsample the longest side to this for simulation (0 = full resolution). Outputs are resampled back. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| edge_map | IMAGE | — |
| mask | MASK | — |