KJNodes/weightsgenerated

Weight Schedule Extend(WeightScheduleExtend)

This node can automatically detect the format of input data, supporting three common data structures: lists, Pandas Series, and PyTorch Tensor.

Weight Schedule Extend

FLOAT
input_values_1
0
input_values_2
0
output_type
match_input
KJNodes

The Weight Schedule Extend node is capable of automatically detecting the format of input data, supporting three common data structures: lists, Pandas Series, and PyTorch Tensors.

Weight Schedule Extend is a node designed for processing and extending weight or numerical sequences. Its core functionality is to receive two input sequences, merge or extend them into a single sequence, and automatically perform data format conversion as needed. This node simplifies the workflow of collaborating across different data formats.

Node Functionality

This node can automatically detect the format of input data, supporting three common data structures: lists, Pandas Series, and PyTorch Tensors. Its core mechanism is that when the formats of the two input data are inconsistent, it converts the second input to match the format of the first input, thereby achieving seamless sequence merging and extension, ultimately outputting a unified sequence of floating-point numbers.

Node Parameter Description - Weight Schedule Extend

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
output_typeCOMBOYesmatch_input"match_input", "list", "pandas series", "tensor"Specifies the output format. Options are "match_input" (match input format), "list", "pandas series", or "tensor" (PyTorch Tensor).
input_values_1FLOATYes0.0-The first input numerical sequence. Accepts formats such as list, Pandas Series, or PyTorch Tensor.
input_values_2FLOATYes0.0-The second input numerical sequence. The format is unrestricted; the node will automatically attempt to convert it to match the format of the first input.

Output

Parameter NameData TypeDescription
FLOATFLOATOutputs the merged or extended unified floating-point number sequence. The specific format is determined by the output_type parameter.

Usage Scenarios

This node is particularly useful when building workflows involving animation interpolation or weight transitions. For example, you can concatenate a weight list describing the motion trajectory of shot A with the weight list of shot B to generate a complete animation weight sequence with smooth transitions, without the need for manual format conversion.

Notes

When using this node, note that the input data should be interpretable as numerical sequences. Inputting complex objects that cannot be converted into valid sequences may result in errors. The node internally relies on the Pandas and PyTorch libraries, so please ensure these dependencies are correctly installed in your ComfyUI environment.

The Weight Schedule Extend node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…