Travel between different latent spaces using a range of blend and travel modes.
workflow:Latent_travel_workflow【Zho】.json
note:need CoInput
workflow:Latent_travel_compare2composite_workflow【Zho】.json
note:need CoInput
- Change BOOL to BOOLEAN (for "reflect_travel", "output_images" and "save_images")
- Change some names:
- "write_images" to "save_images"
- "prefix" to "filename_prefix"
(修改为boolean模式 + 修改参数位置和名称)
Node Inputs
- A, B: Latent variables needed for the process.
- vae: VAE (Variational Autoencoder) type, to decode generated latents to tensors.
- steps: Integer representing the number of steps. This includes the two input latents A and B which will always be the first and last latents. The default value is 5. It should be within the range [0,10000].
- factor: A floating-point value with a default of 0.5. This value depends on the travel_mode specified
- blend_mode: Specifies the method used for latent blending: lerp", "slerp", "add", "multiply", "divide", "subtract", "overlay", "hard_light", "soft_light", "screen", "linear_dodge", "difference", "exclusion", "random"
- travel_mode: Determines the travel interval model:
- 'linear': linear interpolation
- 'hinge': takes factor as a cutpoint and splits the steps evenly between above and below the hinge
- 'circle': steps along the X-axis of a circle
- 'norm': steps along a normal distribution centered at 0.5. Factor is the gaussian scale factor.
- 'quadratic', 'cubic', 'quartic': steps along linear space raised to 2, 3, 4 powers.
- 'geometric': steps along geomspace from 0, 1
- reflect_travel: whether to reflect travel mode values around the center.
- output_images: whether to output images. Requires VAE input.
- save_images: whether to save output images. Requires VAE input.
- filepath: String for defining the output path for the files. Default path is 'output/travel'.
- filename_prefix: String for prefixing the generated files. By default, this is 'travel'.
Node Outputs
- LATENTS: Resulting travel latents. There will be
steps
latents, and the first and last will be the inputA
andB
. - IMAGES: Tensor images, if
output_images=True
. Requires VAE. - FILEPATHS: List of filepaths produced if
save_images=True
.