Construct Metadata Flexible:
The Sage_ConstructMetadataFlexible node is designed to construct metadata in a flexible manner, supporting various styles to cater to different needs. This node is particularly useful for AI artists who want to generate metadata that aligns with specific formats or requirements, such as A1111 Full, A1111 Lite, or Simple styles. The node allows for the inclusion of detailed information like model hashes and LoRA resources, which can be crucial for documentation and reproducibility of AI-generated art. By providing a customizable approach to metadata construction, this node enhances the ability to manage and utilize metadata effectively, ensuring that the generated content is both comprehensive and tailored to the user's preferences.
Construct Metadata Flexible Input Parameters:
model_info
This parameter is essential as it provides the foundational information about the model being used. It can be a dictionary or tuple containing details like the model's name and hash. This information is crucial for generating accurate metadata and ensuring that the model's identity is clearly documented. There is no default value, and it is a required input.
positive_string
The positive_string parameter allows you to input a string that represents positive prompts or keywords associated with the model's output. This can help in generating metadata that highlights the intended positive aspects or themes of the generated content. The default value is an empty string.
negative_string
Similar to the positive_string, the negative_string parameter is used to input a string that represents negative prompts or keywords. This helps in documenting any negative aspects or themes that should be avoided in the generated content. The default value is an empty string.
sampler_info
This parameter provides information about the sampler used in the generation process. It is a dictionary that may include details like the sampler's name, steps, and configuration settings. This information is vital for reproducing the generation process and understanding the sampling method applied. There is no default value specified.
width
The width parameter specifies the width of the generated content in pixels. It impacts the size of the output and is important for ensuring that the metadata accurately reflects the dimensions of the generated art. The default value is 1024 pixels.
height
Similar to the width, the height parameter specifies the height of the generated content in pixels. It is crucial for documenting the dimensions of the output and ensuring consistency in metadata. The default value is 1024 pixels.
metadata_style
This parameter allows you to choose the style of metadata to be generated. Options include "A1111 Full", "A1111 Lite", "Simple", and any other styles defined in metadata_templates. This flexibility enables you to tailor the metadata to specific requirements or preferences. The default style is "A1111 Full".
lora_stack
The lora_stack parameter is optional and allows you to include a list of LoRA resources used in the generation process. This can be important for documenting additional resources or modifications applied to the model. If not provided, it defaults to None.
Construct Metadata Flexible Output Parameters:
param_metadata
The param_metadata output is a string that contains the constructed metadata based on the input parameters and selected style. This metadata is crucial for documenting the generation process, including model details, prompts, sampler information, and any additional resources used. It serves as a comprehensive record that can be used for reproducibility, analysis, and sharing of AI-generated art.
Construct Metadata Flexible Usage Tips:
- To ensure comprehensive metadata, always provide detailed
model_infoandsampler_infoinputs, as these are crucial for accurate documentation. - Experiment with different
metadata_styleoptions to find the format that best suits your needs, especially if you are sharing your work on platforms with specific metadata requirements.
Construct Metadata Flexible Common Errors and Solutions:
Error: model_info is required
- Explanation: This error occurs when the
model_infoparameter is not provided, which is essential for constructing metadata. - Solution: Ensure that you provide a valid
model_infoinput, containing necessary details about the model, to avoid this error.
