H3 Studio • Advanced Resolution:
H3StudioResolution is an advanced node designed to facilitate the calculation and selection of image resolutions within the H3 Studio environment. It provides a sophisticated mechanism to determine the optimal canvas size for image generation, taking into account various factors such as aspect ratio, megapixel requirements, and native area constraints. This node is particularly beneficial for AI artists who need to generate images with specific dimensions and quality, as it allows for precise control over the resolution settings. By leveraging the capabilities of H3StudioResolution, you can ensure that your images are generated with the desired level of detail and within the constraints of your hardware resources. The node's primary goal is to streamline the resolution planning process, making it easier to achieve high-quality results without unnecessary complexity.
H3 Studio • Advanced Resolution Input Parameters:
aspect_ratio
The aspect_ratio parameter specifies the desired width-to-height ratio for the image. It allows you to define the shape of the canvas, such as "1:1" for a square or "16:9" for a widescreen format. This parameter impacts the overall composition of the image and is crucial for maintaining the intended visual proportions. The default value is "1:1", but you can customize it to suit your artistic needs.
resolution_profile
The resolution_profile parameter determines the preset resolution settings to be used for image generation. It allows you to select from predefined profiles that cater to different resolution requirements, ensuring consistency and ease of use. If a custom resolution is needed, you can specify the custom_megapixels parameter instead. This parameter helps streamline the resolution selection process by providing convenient options.
source_image
The source_image parameter is an optional input that allows you to provide a reference image in the form of a torch.Tensor. When specified, the node can use the aspect ratio of the source image to guide the resolution calculation, ensuring that the generated image aligns with the proportions of the reference. This parameter is particularly useful when you want to maintain consistency with an existing image.
custom_megapixels
The custom_megapixels parameter allows you to define a specific megapixel value for the image resolution. This parameter provides flexibility in setting the desired level of detail and quality for the generated image. The default value is 2.0 megapixels, but you can adjust it within a range of 0.10 to 64.0 megapixels to meet your specific requirements.
limit_to_native_area
The limit_to_native_area parameter is a boolean flag that, when enabled, restricts the resolution to the native pixel area of the H3 Studio environment. This option helps manage memory usage and performance by preventing the generation of excessively large images that may exceed hardware capabilities. By default, this parameter is set to False, allowing for larger resolutions if needed.
H3 Studio • Advanced Resolution Output Parameters:
width
The width output parameter represents the calculated width of the image canvas in pixels. It is determined based on the specified aspect ratio, resolution profile, and other input parameters. This value is crucial for understanding the horizontal dimension of the generated image and ensuring it meets your artistic requirements.
height
The height output parameter indicates the calculated height of the image canvas in pixels. Similar to the width, it is derived from the input parameters and reflects the vertical dimension of the image. This output is essential for maintaining the intended aspect ratio and overall composition of the generated image.
info
The info output parameter provides a comprehensive summary of the resolution settings and characteristics. It includes details such as the width and height in pixels, the actual megapixel count, the source of the aspect ratio, the resolution profile used, and any notes regarding size limitations or oversize conditions. This information is valuable for understanding the context and implications of the chosen resolution settings.
H3 Studio • Advanced Resolution Usage Tips:
- To maintain a specific aspect ratio, ensure that the
aspect_ratioparameter is set to the desired value, such as "16:9" for widescreen images. - Use the
resolution_profileparameter to quickly select from predefined resolution settings, which can save time and ensure consistency across projects. - If you have a reference image, provide it through the
source_imageparameter to automatically align the generated image's aspect ratio with the reference. - Adjust the
custom_megapixelsparameter to control the level of detail and quality of the generated image, keeping in mind the balance between resolution and performance. - Enable the
limit_to_native_areaparameter to prevent generating images that exceed your hardware's capabilities, especially when working with high-resolution settings.
H3 Studio • Advanced Resolution Common Errors and Solutions:
Megapixels must be numeric.
- Explanation: This error occurs when the
custom_megapixelsparameter is not a valid numeric value. - Solution: Ensure that you provide a numeric value for the
custom_megapixelsparameter, within the range of 0.10 to 64.0 megapixels.
Width and height must be positive.
- Explanation: This error arises when the calculated width or height of the image is zero or negative, which is not valid.
- Solution: Check the input parameters, especially the
aspect_ratioandcustom_megapixels, to ensure they are set correctly and result in positive dimensions.
Megapixels must be finite.
- Explanation: This error indicates that the
custom_megapixelsparameter is set to an infinite value, which is not acceptable. - Solution: Provide a finite numeric value for the
custom_megapixelsparameter to avoid this error.
