BitDance Resolution:
The BitDanceResolution node is designed to facilitate the selection and management of image resolutions within the BitDance framework. It serves as a utility to ensure that the chosen resolution is compatible with the system's requirements, thereby optimizing the performance of image processing tasks. This node allows you to select from a predefined list of supported resolutions, ensuring that the dimensions are suitable for the BitDance processing pipeline. By providing a structured way to handle image resolutions, it helps prevent errors related to unsupported sizes and enhances the efficiency of image handling operations.
BitDance Resolution Input Parameters:
resolution
The resolution parameter allows you to select the desired image resolution from a list of predefined options. This parameter is crucial as it determines the dimensions of the images that will be processed. The available options are derived from the BITDANCE_RESOLUTION_CHOICES, which include various combinations of width and height that are supported by the BitDance system. The default value is set to 1024x1024, which is a common resolution for many applications. Selecting an appropriate resolution is important as it impacts the quality and processing speed of the images. Ensure that the chosen resolution is supported to avoid errors during execution.
BitDance Resolution Output Parameters:
resolution
The resolution output provides a BitDanceResolutionRuntime object that encapsulates the selected resolution's height and width. This output is essential for downstream processes that require specific image dimensions.
width
The width output returns the width component of the selected resolution as an integer. This value is used to define the horizontal dimension of the image and is crucial for ensuring compatibility with the BitDance processing pipeline.
height
The height output returns the height component of the selected resolution as an integer. This value defines the vertical dimension of the image and is necessary for maintaining the correct aspect ratio and compatibility with the system.
label
The label output provides a string representation of the selected resolution in the format WIDTHxHEIGHT. This label is useful for logging, debugging, and ensuring that the correct resolution is being used throughout the processing pipeline.
BitDance Resolution Usage Tips:
- Always select a resolution from the predefined list to ensure compatibility with the BitDance system and avoid processing errors.
- Consider the trade-off between image quality and processing speed when selecting a resolution. Higher resolutions may offer better quality but require more computational resources.
- Use the
labeloutput for easy identification and verification of the selected resolution in logs and reports.
BitDance Resolution Common Errors and Solutions:
Unsupported BitDance resolution: <resolution>
- Explanation: This error occurs when the selected resolution is not part of the supported
IMAGE_SIZE_LIST. - Solution: Ensure that you select a resolution from the available
BITDANCE_RESOLUTION_CHOICES. Double-check the resolution format and values to confirm they match the supported options.
Invalid BitDance resolution '<label>'
- Explanation: This error indicates that the resolution label provided does not conform to the expected
WIDTHxHEIGHTformat. - Solution: Verify that the resolution label is correctly formatted and corresponds to a valid option in the
BITDANCE_RESOLUTION_CHOICES.
