latent
batch
Latent from Batch

Latent From Batch

comfyUI节点-Latent From Batch|从批次获取Latent

Documentation

  • Class name: LatentFromBatch
  • Category: latent/batch
  • Output node: False

This node is designed to extract a specific subset of latent samples from a given batch based on the specified batch index and length. It allows for selective processing of latent samples, facilitating operations on smaller segments of the batch for efficiency or targeted manipulation.

Input types

ParameterComfy dtypeDescription
samplesLATENTThe collection of latent samples from which a subset will be extracted. This parameter is crucial for determining the source batch of samples to be processed.
batch_indexINTSpecifies the starting index within the batch from which the subset of samples will begin. This parameter enables targeted extraction of samples from specific positions in the batch.
lengthINTDefines the number of samples to be extracted from the specified starting index. This parameter controls the size of the subset to be processed, allowing for flexible manipulation of batch segments.

Output types

ParameterComfy dtypeDescription
latentLATENTThe extracted subset of latent samples, now available for further processing or analysis.