Home

Awesome

StyleAligned for ComfyUI

Implementation of the StyleAligned technique for ComfyUI.

This implementation is split into two different nodes, and does not require any additional models or dependencies.

StyleAligned Reference Sampler

This node replaces the KSampler, and lets you reference an existing latent as a style reference. In order to retrieve the latent, you will need to perform DDIM inversion; an example workflow for this is provided here.

Above, a reference image, and a batch of images generated using the prompt 'a robot' and the reference image shown as style input.

Parameters

StyleAligned Batch Align

Instead of referencing a single latent, this node aligns the style of the entire batch with the first image generated in the batch, effectively causing all images in the batch to be generated with the same style.

A batch of generations with the same parameters and the Batch Align node applied (left) and disabled (right).

Parameters

Installation

Simply download or git clone this repository in ComfyUI/custom_nodes/. Example workflows are included in resources/.