IAMCCS Influencer Latent / VAE
The Krea graph's latent prep, without a third-party VAE utility
- image_1
- image_2
- mask
- latent
- vae
- latent_1
- latent_2
- mask
- empty_latent
- width
- height
The "Influencer" pair of nodes exists to let the IAMCCS AI Influencer applications (Studio, Identity, and the Krea graph) run on stock ComfyUI without depending on someone's VAE utility pack. IAMCCS_InfluencerLatent is the encode side: it takes up to two images, a mask, and a VAE, resizes everything to a common canvas, and hands you latent_1, latent_2, a mask, and - this is the output the apps actually consume - an empty_latent ready for sampling.
The one-line description in the source is honest: "Studio and Identity consume empty_latent (output index 3)." So the headline feature is the empty latent, which defaults to 16 channels (latent_type default) - the shape Krea-style and Flux-family editing graphs want - with 4_channels available as a compatibility mode for older workflows. Don't overthink the channel count; match it to the model you're sampling or you'll get shape errors at the sampler, not here.
The inputs that matter:
width/height(1024 default, step 8) plusresize_to_input- the manual size, or "copy the size fromimage_1/image_2/mask/latentinstead." The auto modes are the ones you'll use most: they let you build a graph where one connected image defines the canvas and you never touch the width boxes again.image_1/image_2+vae- the two reference images. Connect both and the node encodes both to their own latents;vaeis required only if an image is actually connected (leave both empty and it just emits empties).mask+mask_channel(red/green/blue/alpha) +invert_mask- the mask image gets resized and one channel extracted into a proper ComfyUIMASK. Great for turning a reference image's alpha into an inpaint region.interpolation(lanczos default) andmethod(stretchorfill / crop) - resizing behavior.fill / cropis the one that keeps aspect and crops, which is what you want for faces;stretchonly when aspect literally doesn't matter.
Outputs: latent_1, latent_2 (VAE-encoded, or empty tensors if no image), mask (single-channel, possibly inverted), empty_latent, and the resolved width/height as INTs (useful to pipe into other nodes that need the canvas size). Feed latent_1/latent_2 into whatever sampling graph follows, or skip them entirely and just use empty_latent - both patterns are legitimate.
Installation is pack-standard: search IAMCCS in ComfyUI Manager, or clone https://github.com/IAMCCS/IAMCCS-nodes.git into custom_nodes and restart. No models ship with it - the vae comes from your own model folders, and for the Krea side you want a Qwen-Image VAE (that's what Krea 2 uses; the KB notes its VAE is the Qwen-Image one).
The gotchas are subtle and mostly about expectations. resize_to_input honors the dimensions of the chosen input, not its contents, so a 4:5 image in a square canvas stays square-cropped unless you change method. And the two-image path encodes each image independently to its own latent - this node does not concatenate or blend references, it just gets them both ready. If you were expecting a fused identity latent, that blending happens downstream in the sampler's patch, not here.
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| resize_to_input | COMBO | false | 5 options: false, image_1, image_2, mask, latent |
| width | INT | 10248–16384 | — |
| height | INT | 10248–16384 | — |
| mask_channel | COMBO | red | 4 options: red, green, blue, alpha |
| invert_mask | BOOLEAN | false | — |
| latent_type | COMBO | 16_channels | 2 options: 4_channels, 16_channels |
| interpolation | COMBO | lanczos | 5 options: nearest-exact, bilinear, area, bicubic, lanczos |
| method | COMBO | fill / crop | 2 options: stretch, fill / crop |
| image_1opt | IMAGE | — | |
| image_2opt | IMAGE | — | |
| maskopt | IMAGE | — | |
| latentopt | LATENT | — | |
| vaeopt | VAE | — |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| latent_1 | LATENT | — |
| latent_2 | LATENT | — |
| mask | MASK | — |
| empty_latent | LATENT | — |
| width | INT | — |
| height | INT | — |