2024-03-08 11:28:27 +02:00
2024-03-08 11:28:27 +02:00
2024-02-25 14:23:31 +02:00
2024-03-04 15:30:10 +02:00

ComfyUI-Advanced-Latent-Control

This custom node helps to transform latent in different ways.

Custom Nodes

Latent mirror

This node can flip latent and merge original and flipped version

Input:

  • latent

Fields:

  • direction – can be vertically, horizontally or both
  • multiplier – multiply latent by specified number

Output:

  • latent

Usage:
sample sample

Latent shift

This node can shift latent along x and y axes

Input:

  • latent

Fields:

  • x_shift – a number between -1 and 1 that indicates how much the latent should be shifted
  • y_shift – a number between -1 and 1 that indicates how much the latent should be shifted

Output:

  • latent

Usage:
sample

KSampler with transforms (Latent Control)

This node can multiply, mirror and shift latent during generation

Input:
exactly matches the base KSampler

Fields:

  • base KSampler fields
  • start_mirror_at – a number between 0 and 1 that indicates at what point the sampler will start mirroring
  • stop_mirror_at – a number between 0 and 1 that indicates at what point the sampler will stop mirroring
  • mirror_mode – can be replace or combine. replace will replace the latent with the transformed one, combine will add the original and the transformed latent and divide by 2
  • mirror_direction – can be none, vertically, horizontally, both, 90 degree rotation or 180 degree rotation
  • start_shift_at – a number between 0 and 1 that indicates at what point the sampler will start shifting
  • stop_shift_at – a number between 0 and 1 that indicates at what point the sampler will stop shifting
  • shift_mode – can be replace or combine. replace will replace the latent with the transformed one, combine will add the original and the transformed latent and divide by 2
  • x_shift – a number between -1 and 1 that indicates how much the latent should be shifted
  • y_shift – a number between -1 and 1 that indicates how much the latent should be shifted
  • start_multiplier_at – a number between 0 and 1 that indicates at what point the sampler will start multiplying
  • stop_multiplier_at – a number between 0 and 1 that indicates at what point the sampler will stop multiplying
  • multiplier_mode – can be replace or combine. replace will replace the latent with the transformed one, combine will add the original and the transformed latent
  • multiplier – multiply latent by specified number

Output: exactly matches the base KSampler

Usage:
You also can use those params together
sample
sample
sample
sample

KSampler (Latent Control)

This node allows to combine a lot of transforms with different parameters

Input:

  • base KSampler fields
  • transform_optional – field that can take output from one of those nodes: Mirror transform, Shift transform, Multiply transform or Combine transforms

Fields: exactly matches the base KSampler

Output: exactly matches the base KSampler

Usage:
sample
sample

All transform nodes parameters exactly match the corresponding KSampler with transforms (Latent Control) parameters

S
Description
No description provided
Readme
7.8 MiB
Languages
Python 74.5%
JavaScript 25.5%