Skip to main content
Encodes an edit instruction together with reference images into conditioning for a MOSS-Image edit LoRA. Connect the output as the positive conditioning and run a second instance with the same references for the negative one. The references are used at the size they arrive, so scale them before connecting. Without a VAE, the images only go to the text encoder. This node is marked as experimental in ComfyUI.

Inputs

Note: With "ai-toolkit" and "ai-toolkit (kv_cache off)", or when no VAE is connected and image_strength is above 0, the text encoder also sees every reference, downscaled to at most 384x384 pixels and preceded by a Picture N: marker in the prompt, so the instruction can refer to them by number. With "Moss-Image-Edit" and a VAE connected, the references reach the model only as reference latents and the text encoder sees the instruction alone. "ai-toolkit (kv_cache off)" additionally keeps the references attending to the image being generated, so they are recomputed on every sampling step.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 673f098df6a8e466a5c8060009f446eac8f7556311a870de626c5f4bfc3ab196