Smart Loop Preview Image | akatz-loops| Smart Loop Preview Image | akatz-loops:
The SmartLoopPreviewImage node is designed to enhance your workflow by providing a dynamic preview of images generated across multiple iterations within a loop. This node is particularly useful when working with iterative processes, as it allows you to accumulate and track image results over time using a stable display_id. By offering two display modes, "latest" and "gallery", it gives you the flexibility to either focus on the most recent image or view a collection of images generated throughout the iterations. This capability is essential for artists who want to monitor the evolution of their work in real-time, ensuring that they can make informed decisions based on the visual feedback provided by the node.
Smart Loop Preview Image | akatz-loops| Smart Loop Preview Image | akatz-loops Input Parameters:
images
This parameter accepts a collection of images that are processed through the node. It serves as the primary input, allowing the node to accumulate and preview images across loop iterations. The images are typically generated by other nodes in the workflow and passed into this node for preview purposes.
display_mode
The display_mode parameter determines how the images are presented during the preview. It offers two options: "latest" and "gallery". The "latest" mode displays only the most recent image from the current iteration, providing a focused view on the latest output. In contrast, the "gallery" mode accumulates and displays all images from each iteration, allowing you to see the progression and variations over time. The default setting is "latest", but you can switch to "gallery" if you prefer a comprehensive view of all iterations.
prompt
This hidden parameter is used to pass any textual prompts that might be associated with the image generation process. It is not directly visible to the user but can be utilized internally by the node to maintain context or metadata related to the images.
extra_pnginfo
Another hidden parameter, extra_pnginfo, is used to store additional metadata or information in the PNG files generated by the node. This can include details such as settings or parameters used during image creation, which can be useful for documentation or reproduction purposes.
unique_id
The unique_id is a hidden parameter that helps in uniquely identifying each image or iteration. This ensures that the node can accurately track and manage images across multiple iterations without confusion or overlap.
dynprompt
This hidden parameter allows for dynamic prompts to be used during the image generation process. It provides flexibility in altering prompts on-the-fly, which can be particularly useful in iterative workflows where conditions or requirements might change.
Smart Loop Preview Image | akatz-loops| Smart Loop Preview Image | akatz-loops Output Parameters:
images
The output parameter images provides the processed images after they have been accumulated and previewed by the node. Depending on the display_mode selected, this could be either the latest image or a collection of images from all iterations. This output is crucial for further processing or final output, as it represents the visual results of the iterative process.
Smart Loop Preview Image | akatz-loops| Smart Loop Preview Image | akatz-loops Usage Tips:
- To focus on the most recent output and reduce visual clutter, use the "latest" display mode. This is particularly useful when you are only interested in the final result of the iterative process.
- If you want to analyze the progression of your images over multiple iterations, switch to the "gallery" mode. This will allow you to see all images generated during the loop, providing insights into how your settings or inputs affect the output over time.
Smart Loop Preview Image | akatz-loops| Smart Loop Preview Image | akatz-loops Common Errors and Solutions:
Error: "Image accumulation failed due to missing display_id"
- Explanation: This error occurs when the node cannot find a stable
display_idto track iterations, which is essential for accumulating images. - Solution: Ensure that the node is correctly integrated into a loop structure where a stable
display_idis generated and maintained across iterations.
Error: "Invalid display_mode selected"
- Explanation: This error indicates that an unsupported value was provided for the
display_modeparameter. - Solution: Verify that the
display_modeis set to either "latest" or "gallery". These are the only supported options for this parameter.
