Nodes/ComfyUI-LASED-mask/LASED Food Map
ComfyUI Node

LASED Food Map

LASED swarm run with a standing food field shaped by the input MASK: ants are rewarded (and their trails reinforced) where the mask is bright, steering the learned edges toward the contours you care about.

By MushroomFleet·Created 2 months ago·Updated 2 months ago· 0
LASED Food Map
  • image
  • food
  • edge_map
  • mask
seed_x0
seed_y0
food_amount5.0
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 (19)

NameTypeDefaultDescription
imageIMAGE
foodMASKWhere to reward: standing food is laid under this mask every tick — the offline analogue of 'success clicks'.
seed_xINT00–16384
seed_yINT00–16384
food_amountFLOAT5.00.1–50Food potential at fully-masked cells.
toleranceFLOAT40.01–250Colour tolerance (tau). Lower = tighter region. Lab distances run smaller; try 10-25 there.
antsINT2501–5000
stepsINT6001–20000Simulation ticks. More steps = cleaner, more complete contours.
color_spaceCOMBOrgb3 options: rgb, weighted, lab
handCOMBObothWall-following handedness; 'both' splits the swarm into clockwise and counter-clockwise cohorts.
betaFLOAT4.00.1–12Softmax temperature. Higher = greedier edge following.
epsilonFLOAT0.050–0.5Random-move floor; prevents the swarm freezing.
seedINT00–18446744073709550000
modeCOMBOmaskingclassic: MASK = thresholded edge pheromone. masking (Stage 2): MASK = sticky-latched, gap-closed, despeckled contour.
mask_thresholdFLOAT0.150.01–0.95classic mode only: threshold on the normalised edge map for the MASK output.
sticky_thresholdFLOAT0.200.05–0.6masking mode: latch a cell when its edge pheromone crosses this fraction of the field maximum.
freeze_afterINT00–20000masking mode: freeze (and clean) the mask after this many ticks. 0 = run all steps, then freeze.
no_decayBOOLEANfalsemasking mode: stop edge-pheromone evaporation entirely.
max_sideINT5120–4096Downsample the longest side to this for simulation (0 = full resolution). Outputs are resampled back.

Outputs (2)

NameTypeDescription
edge_mapIMAGE
maskMASK