Nodes/ComfyUI_StarNodes/⭐ Star Moss Control
ComfyUI Node

⭐ Star Moss Control

Block in flat colour and depth, let MOSS Image paint inside the lines

By Starnodes2024·Created 2 years ago·Updated a day ago· 124
⭐ Star Moss Control
  • model
  • vae
  • color_map
  • depth_map
  • MODEL
◄adapter_file▾►
◄lora_strength1.00►
◄color_end0.50►
◄depth_end0.50►

What you're actually plugging in

MOSS Image is one of the 2026 DiT image models - it runs on the FLUX.2 VAE, which matters in a second. StarMossControl is its colour-and-depth control adapter loader, and it's a good example of how control stopped looking like ControlNet after the UNet died. There's no trainable encoder copy here. The adapter file you download is two things stapled together: a wider input projection and a small LoRA. This node does the surgery - you hand it the adapter plus one or both maps, it hands back a patched MODEL.

Why it earns a slot: prompt-only composition on a modern base is very good and very inexact. If you need three blocks of wall in three specific colours with a sofa in one corner, prose is a bad interface. The colour map is the interesting half - flat blobs, each colour effectively a region ID, black meaning "you decide". That's segmentation-style control done by hand, one of the conditioning types the post-Flux ecosystem largely failed to rebuild. Depth handles the other half: mass, scale, what sits in front.

How the mechanism really works

Read the node's source and it's simple, in three moves.

First, it swaps the model's input projection. MOSS Image expects a 128-channel latent; the adapter's replacement projection takes 128 + 128 + 128 = 384, so every denoise step is fed [noisy latent | colour latent | depth latent]. Second, it applies the adapter's LoRA weights to the transformer blocks. Third, it wraps the diffusion step so it can zero out a control channel once sampling passes its cutoff - a zeroed map is exactly the "no control on this channel" signal, so releasing colour halfway through doesn't fade it, it switches it off and lets the model free-run detail.

Both maps go through the FLUX.2 VAE, and the node encodes each one twice: at native size and at half size. That second copy is what keeps a low-res first pass or a two-pass upscale honest - when the latent arrives at a different spatial size it picks the nearest encode and interpolates instead of silently mismatching. Encodes are cached in float on CPU; only the most recent adapter file stays in memory.

The inputs that matter

  • model / vae - the MOSS Image model (SFT or Base) and the FLUX.2 VAE. The VAE isn't optional plumbing: it's what turns your maps into latents, so a proxy VAE will get rejected.
  • adapter_file - populated from ComfyUI/models/model_patches, so that's where the safetensors goes.
  • color_map / depth_map (optional, IMAGE) - flat colour region map with black as unspecified, plus grayscale depth with near = white. Feed them at the target's size and aspect.
  • color_end / depth_end - the settings people underestimate. Default 0.5 means each map guides the first half of the schedule. The tooltips say it plainly: real photo-derived maps deserve 1.0; painted flat maps work better at 0.4–0.5; rough or mannequin depth wants lower still, or disconnected.
  • lora_strength - scales only the adapter's LoRA. It's worth knowing that the replaced input layer is always applied in full, so pulling this to 0 does not turn control off. Use the end values for that.

Output is a single MODEL. Wire it into your guider/sampler exactly where the raw model went; everything downstream is unchanged.

Install

ComfyUI Manager → search Starnodes → Install → restart. Manual is the usual two lines:

cd ComfyUI/custom_nodes
git clone https://github.com/Starnodes2024/ComfyUI_StarNodes
cd ComfyUI_StarNodes && pip install -r requirements.txt

Nothing in requirements.txt is for this node - those are for PSD export, video and palette tools. StarMossControl runs on torch and ComfyUI's own patching internals. Drop the adapter safetensors into ComfyUI/models/model_patches, then double-click the canvas and search star moss. The README's category list hasn't caught up with the MOSS nodes yet, so don't be alarmed when it isn't documented there.

Where people get burned

Connect both maps or nothing happens. Leave colour and depth both unconnected and the node returns your model untouched - no adapter load, no error, no warning. It looks like it worked. That's the one that'll cost you an evening.

Wrong VAE, loud error. Feed it anything that isn't the FLUX.2 VAE and you get a channel-mismatch complaining that it needs 128 channels; a video VAE trips the same check because it hands back a 5D latent.

Wrong adapter, also loud. The file must actually be a MOSS colour/depth adapter - the node checks for video_embedder weights and control_channels: color,depth metadata. A FLUX.2 union ControlNet dropped in the folder gets rejected rather than half-applied.

Aspect mismatch. Mismatched map ratios get resized with a centre crop, which can shave off painted regions or introduce black bars the model reads as "unspecified".

It only talks to MOSS Image. Anything else fails immediately with "Star Moss Control only works with a MOSS Image model." Hoping it works on plain FLUX.2? It doesn't - that base has its own adapters.

Category⭐StarNodes/MOSS

Inputs (8)

NameTypeDefaultDescription
modelMODELMOSS Image model (SFT or Base).
vaeVAEFLUX.2 VAE used to encode the control maps.
adapter_fileCOMBOMOSS color/depth control adapter safetensors (models/model_patches).
lora_strengthFLOAT1.000–2Strength of the adapter's LoRA. The replaced input layer is always applied fully.
color_endFLOAT0.500–1Fraction of steps after which the color map stops guiding. Real photo maps: 1.0. Painted/flat maps: 0.4-0.5.
depth_endFLOAT0.500–1Fraction of steps after which the depth map stops guiding. Real photo depth: 1.0. Rough/mannequin depth: lower (or disconnect the map).
color_mapoptIMAGEFlat color region map (colors act as region IDs; black = unspecified). Same size as the target image.
depth_mapoptIMAGEGrayscale depth map, near = white. Same size as the target image.

Outputs (1)

NameTypeDescription
MODELMODEL—