◎ Radiance Compression Artifacts:
The RadianceCompressionArtifacts node is designed to simulate and analyze compression artifacts, such as JPEG blocking and color banding, in digital images. This node is particularly useful for AI artists who want to understand how compression affects image quality or to intentionally add these artifacts for artistic purposes. By introducing these artifacts, you can explore the visual impact of compression on your images, which is crucial for both quality control and creative experimentation. The node provides a mechanism to add realistic compression effects, allowing you to preview how images might appear after being subjected to common compression algorithms. This can be especially beneficial when preparing images for platforms where compression is inevitable, ensuring that the final output meets your aesthetic and quality standards.
◎ Radiance Compression Artifacts Input Parameters:
image
The image parameter is a tensor representing the image data to be processed. It is crucial as it serves as the input on which compression artifacts will be applied or analyzed. The image should be in a format compatible with the node, typically a tensor with dimensions corresponding to batch size, height, width, and color channels. There are no explicit minimum or maximum values for this parameter, but the image should be properly pre-processed to ensure accurate results.
block_size
The block_size parameter determines the size of the blocks used in the Discrete Cosine Transform (DCT) process, which is typically 8 for JPEG compression. This parameter affects the granularity of the compression artifacts; smaller block sizes may result in finer artifacts, while larger block sizes can lead to more pronounced blocking effects. The default value is usually set to 8, aligning with standard JPEG compression practices.
seed
The seed parameter is used to initialize the random number generator, ensuring that the addition of artifacts is consistent across multiple runs. This is particularly useful for reproducibility, allowing you to achieve the same results when applying the node multiple times with the same settings. There are no specific minimum or maximum values, but it should be an integer.
◎ Radiance Compression Artifacts Output Parameters:
artifact_score
The artifact_score is a tensor that provides a quantitative measure of the compression artifacts present in the image. This score ranges from 0 to 100, where higher values indicate more severe artifacts. It is an essential output for assessing the quality of the image after compression, helping you determine whether the level of artifacts is acceptable for your intended use. This score can guide decisions on whether further processing or adjustments are needed to meet quality standards.
◎ Radiance Compression Artifacts Usage Tips:
- To achieve consistent results, always use the same
seedvalue when applying the node to similar images. This ensures that the random aspects of artifact generation are controlled and reproducible. - Experiment with different
block_sizevalues to understand how they affect the appearance of compression artifacts. This can help you tailor the node's output to match specific artistic or quality requirements. - Before applying the node, consider pre-processing your images to ensure they are within the expected range, particularly if they contain high dynamic range (HDR) values. Tone-mapping may be necessary to prevent clipping during compression.
◎ Radiance Compression Artifacts Common Errors and Solutions:
Input contains HDR values (max=%.3f). JPEG encoding clips to [0, 1] — HDR values above 1.0 will be lost.
- Explanation: This warning indicates that the input image contains HDR values that exceed the standard range for JPEG encoding, which can result in loss of detail.
- Solution: Apply tone-mapping to your image before using this node to ensure that all values are within the [0, 1] range, preserving image details during compression.
Artifact score calculation results in unexpected values.
- Explanation: This issue may arise if the input image is not properly formatted or if the
block_sizeis set incorrectly. - Solution: Verify that your image tensor is correctly shaped and that the
block_sizeis appropriate for the image dimensions. Adjust these parameters as needed to ensure accurate artifact scoring.
