ComfyUI Node
AGSoft Reference to Latent
Converts reference images to latent space and adds them as reference_latents to conditioning. **English:** - Converts 1-10 reference images to latents using a VAE. - Adds `reference_latents` to positive/negative conditioning for models like Flux. - Outputs the latent of the first image, a scaled mask, and the original image. **Русский:** - Преобразует 1-10 эталонных изображений в латенты с помощью VAE. - Добавляет `reference_latents` в позитивный/негативный conditioning для моделей типа Flux. - Возвращает латент первого изображения, масштабированную маску и оригинал.
AGSoft Reference to Latent
- positive
- negative
- vae
- image1_mask
- image1
- image2
- image3
- image4
- image5
- image6
- image7
- image8
- image9
- image10
- positive
- negative
- latent
- mask
- image
◄mode▾►
CategoryAGSoft/nodes
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| positive | CONDITIONING | Positive conditioning from CLIP text encoder. --- Позитивный conditioning от текстового энкодера CLIP. | |
| negative | CONDITIONING | Negative conditioning from CLIP text encoder. --- Негативный conditioning от текстового энкодера CLIP. | |
| vae | VAE | VAE model used to encode images into latent space. --- VAE модель, используемая для кодирования изображений в латентное пространство. | |
| mode | COMBO | Number of reference images to use (1-10). Dynamically changes the number of 'imageX' inputs. --- Количество используемых эталонных изображений (1-10). Динамически изменяет количество входов 'imageX'. | |
| image1_maskopt | MASK | Mask for the first image. Determines which areas will be affected during generation. Scaled automatically to latent size. --- Маска для первого изображения. Определяет, какие области будут затронуты во время генерации. Автоматически масштабируется до размера латентов. | |
| image1opt | IMAGE | First reference image (used as base latent). --- Первое эталонное изображение (используется как базовый латент). | |
| image2opt | IMAGE | Second reference image. --- Второе эталонное изображение. | |
| image3opt | IMAGE | Third reference image. --- Третье эталонное изображение. | |
| image4opt | IMAGE | Fourth reference image. --- Четвертое эталонное изображение. | |
| image5opt | IMAGE | Fifth reference image. --- Пятое эталонное изображение. | |
| image6opt | IMAGE | Sixth reference image. --- Шестое эталонное изображение. | |
| image7opt | IMAGE | Seventh reference image. --- Седьмое эталонное изображение. | |
| image8opt | IMAGE | Eighth reference image. --- Восьмое эталонное изображение. | |
| image9opt | IMAGE | Ninth reference image. --- Девятое эталонное изображение. | |
| image10opt | IMAGE | Tenth reference image. --- Десятое эталонное изображение. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| positive | CONDITIONING | — |
| negative | CONDITIONING | — |
| latent | LATENT | — |
| mask | MASK | — |
| image | IMAGE | — |