f472be85a84b7741886cbbf09ddfe05003f349fe
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 bevertically,horizontallyorbothmultiplier– multiply latent by specified number
Output:
latent
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 shiftedy_shift– a number between -1 and 1 that indicates how much the latent should be shifted
Output:
latent
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 mirroringstop_mirror_at– a number between 0 and 1 that indicates at what point the sampler will stop mirroringmirror_mode– can bereplaceorcombine.replacewill replace the latent with the transformed one,combinewill add the original and the transformed latent and divide by 2mirror_direction– can benone,vertically,horizontally,both,90 degree rotationor180 degree rotationstart_shift_at– a number between 0 and 1 that indicates at what point the sampler will start shiftingstop_shift_at– a number between 0 and 1 that indicates at what point the sampler will stop shiftingshift_mode– can bereplaceorcombine.replacewill replace the latent with the transformed one,combinewill add the original and the transformed latent and divide by 2x_shift– a number between -1 and 1 that indicates how much the latent should be shiftedy_shift– a number between -1 and 1 that indicates how much the latent should be shiftedstart_multiplier_at– a number between 0 and 1 that indicates at what point the sampler will start multiplyingstop_multiplier_at– a number between 0 and 1 that indicates at what point the sampler will stop multiplyingmultiplier_mode– can bereplaceorcombine.replacewill replace the latent with the transformed one,combinewill add the original and the transformed latentmultiplier– multiply latent by specified number
Output: exactly matches the base KSampler
Usage:
You also can use those params together




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 transformorCombine transforms
Fields: exactly matches the base KSampler
Output: exactly matches the base KSampler
All transform nodes parameters exactly match the corresponding KSampler with transforms (Latent Control) parameters
Languages
Python
74.5%
JavaScript
25.5%




