CozyGen Choice Input:
The CozyGenChoiceInput node is designed to provide a flexible and dynamic way to select from a list of predefined choices within the CozyGen framework. This node is particularly useful when you need to incorporate a selection mechanism into your AI art generation process, allowing you to choose from various options such as samplers, schedulers, or other model-related choices. By offering a dropdown menu populated with available options, the node simplifies the process of making selections, ensuring that you can easily configure your workflow without needing to manually input or remember specific values. This enhances the user experience by providing a streamlined and intuitive interface for making selections, ultimately contributing to a more efficient and effective creative process.
CozyGen Choice Input Input Parameters:
param_name
This parameter specifies the name of the parameter you are configuring. It is a string value with a default of "Choice Parameter". This name is used to identify the parameter within the node graph and can be customized to better reflect its purpose in your specific workflow.
priority
The priority parameter is an integer that determines the order in which parameters are processed. It has a default value of 10. Higher priority values mean the parameter will be processed earlier, which can be important when the order of operations affects the outcome of your workflow.
choice_type
This parameter defines the type of choices available in the dropdown menu. It includes options such as "sampler", "scheduler", and dynamically retrieved model folder names. The choice type determines the set of options that will populate the dropdown, allowing you to select from relevant categories.
default_choice
The default_choice parameter provides a list of all possible choices, including a "None" option for safety. This list is dynamically generated based on the choice_type and includes options like samplers and schedulers. The default choice is used when no specific value is provided from the frontend UI.
display_bypass
This boolean parameter, with a default value of False, determines whether the display of the choice input can be bypassed. When set to True, it allows the node to skip displaying the choice input in certain conditions, which can be useful for simplifying the UI in complex workflows.
value
The value parameter is a hidden string that represents the selected choice from the frontend UI. It defaults to an empty string and is used to store the user's selection, which is then utilized during the node's execution to determine the final output.
CozyGen Choice Input Output Parameters:
ANY
The output of the CozyGenChoiceInput node is of type ANY, meaning it can return any type of value based on the selected choice. The output is the final value determined by the node, which could be a specific sampler, scheduler, or another model-related option. This flexibility allows the node to integrate seamlessly into various parts of your workflow, providing the necessary input for subsequent nodes.
CozyGen Choice Input Usage Tips:
- Ensure that the
choice_typeparameter is set correctly to populate the dropdown with relevant options, as this will directly impact the choices available to you. - Utilize the
default_choiceparameter to set a sensible default that aligns with your typical workflow, reducing the need for manual selection each time.
CozyGen Choice Input Common Errors and Solutions:
KeyError
- Explanation: This error occurs when the specified
choice_typedoes not have a corresponding folder or set of options available. - Solution: Verify that the
choice_typeis correctly specified and corresponds to an existing category or folder. Ensure that the necessary resources are available in the expected locations.
ValueError
- Explanation: This error might occur if the
valueparameter is set to an invalid option that is not present in thedefault_choicelist. - Solution: Check that the
valueparameter is correctly set to one of the available options in the dropdown. If using a custom value, ensure it matches one of the predefined choices.
