🔍 H3 Relay · Latent Upscale:
The H3RelayLatentUpscale node is designed to enhance the spatial resolution of latent representations in a 3D space without altering the temporal dimension. This node is particularly beneficial for AI artists looking to upscale their visual content while maintaining the original audio quality. It achieves this by dividing the input into chunks, processing each chunk individually through a learning-based 3D upscaler, and then reassembling the chunks to form the final output. This method allows for flexible memory management and can be adjusted to suit different hardware capabilities. The node is specifically tailored for use with H3 latent upscale models, which are distinct from conventional ESRGAN models, ensuring compatibility and optimal performance.
🔍 H3 Relay · Latent Upscale Input Parameters:
latent
The latent parameter represents the input data that contains the visual and possibly audio information to be upscaled. It is crucial as it forms the basis of the upscaling process, and its quality directly impacts the final output.
model_name
The model_name specifies the name of the upscaling model to be used. This parameter determines the algorithm and weights applied during the upscaling process. It must match the available models in the designated directory.
mode
The mode parameter defines the upscaling method, such as "scale by multiplier," which influences how the upscaling is applied to the latent data.
scale
The scale parameter sets the factor by which the spatial dimensions of the latent data are increased. A higher scale results in a larger output but requires more computational resources.
width
The width parameter specifies the target width of the upscaled output. It helps define the aspect ratio and resolution of the final image.
height
The height parameter specifies the target height of the upscaled output, complementing the width to determine the overall resolution.
megapixels
The megapixels parameter is used to control the total number of pixels in the output, providing a way to manage the output size and quality.
chunks
The chunks parameter determines how many segments the input data is divided into for processing. More chunks can reduce memory usage but may affect the visual continuity of the output.
overlap
The overlap parameter sets the number of overlapping frames between chunks, which helps in maintaining smooth transitions and avoiding visible seams in the output.
align
The align parameter ensures that the upscaled output is aligned correctly, which is important for maintaining the integrity of the visual content.
precision
The precision parameter allows you to choose the computational precision, such as bf16, fp16, or fp32. Lower precision can save memory but may affect stability and accuracy.
device
The device parameter specifies the hardware to be used for processing, such as cuda, rocm, or cpu. Choosing the right device can significantly impact processing speed.
force_unload
The force_unload parameter, when enabled, unloads the model from the GPU after processing to free up memory. This is useful when working with limited resources but can slow down processing if multiple chunks are used.
🔍 H3 Relay · Latent Upscale Output Parameters:
latent
The latent output is the upscaled version of the input latent data, with enhanced spatial resolution while preserving the original temporal dimension and audio quality.
report
The report output provides a detailed summary of the upscaling process, including information about the input and output dimensions, processing time, and any adjustments made during the operation. This helps in understanding the performance and results of the upscaling task.
🔍 H3 Relay · Latent Upscale Usage Tips:
- To optimize performance, adjust the
chunksparameter based on your hardware capabilities. More chunks can help manage memory usage but may require careful handling of overlaps to avoid visual artifacts. - Use the
precisionparameter to balance between memory usage and processing speed.fp32offers the most stability but at the cost of speed and memory.
🔍 H3 Relay · Latent Upscale Common Errors and Solutions:
ValueError: "plan 的帧数 %d 与 latent 的 %d 不符。"
- Explanation: This error occurs when there is a mismatch between the expected number of frames in the plan and the actual number of frames in the latent data.
- Solution: Ensure that the input latent data matches the expected frame count specified in the plan. Adjust the input or the plan accordingly.
ValueError: "upscale_fn 必须返回张量,得到 %s。"
- Explanation: This error indicates that the upscaling function did not return a tensor as expected.
- Solution: Verify that the upscaling function is correctly implemented and returns a tensor. Check the model and function definitions for any discrepancies.
