ComfyUI > Nodes > ComfyUI_Lam > 风格选择器

ComfyUI Node: 风格选择器

Class Name

StyleSelecto

Category
lam
Author
Lam Yan (Account age: 3065days)
Extension
ComfyUI_Lam
Latest Updated
2025-03-06
Github Stars
0.02K

How to Install ComfyUI_Lam

Install this extension via the ComfyUI Manager by searching for ComfyUI_Lam
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_Lam in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

风格选择器 Description

Enhance creative workflow by applying predefined styles to prompts for AI artists, leveraging JSON files for dynamic modifications.

风格选择器:

The StyleSelecto node is designed to enhance your creative workflow by allowing you to apply predefined styles to your prompts. This node is particularly useful for AI artists who want to experiment with different artistic styles without manually adjusting each prompt. By leveraging a collection of styles stored in JSON files, StyleSelecto can dynamically modify your input prompts and negative prompts based on the selected style. This functionality not only saves time but also ensures consistency across your artistic projects. The node's primary goal is to streamline the process of style application, making it easier for you to explore various artistic expressions and achieve the desired aesthetic in your AI-generated art.

风格选择器 Input Parameters:

prompt

The prompt parameter is a required input that represents the initial text or idea you want to transform using a specific style. It serves as the foundation for the style application process, and the node will modify this prompt based on the selected style to achieve the desired artistic effect. There are no specific minimum or maximum values, but it is essential to provide a meaningful prompt to get the best results.

style_type

The style_type parameter is a required input that allows you to select from a list of available styles. These styles are defined in JSON files located in the styles directory. By choosing a style type, you instruct the node on how to modify your prompt to reflect the characteristics of the selected style. The available options depend on the styles you have stored in the directory.

negative_prompt

The negative_prompt parameter is an optional input that allows you to specify elements you want to avoid in the generated art. This parameter can be used to refine the output by excluding certain features or styles that may not align with your artistic vision. It is a string input, and while it is optional, providing a negative prompt can enhance the quality of the final output.

i

The i parameter is an optional integer input that specifies the index of the style to be applied from the list of available styles. This parameter is useful when you want to apply a specific style from a list without manually selecting it by name. The default value is not specified, but it should be a valid index within the range of available styles.

styles

The styles parameter is a hidden input that contains a string of style names separated by commas. This parameter is used internally by the node to manage the list of available styles and is not intended for direct user input. It defaults to an empty string.

风格选择器 Output Parameters:

正向提示词

The 正向提示词 (positive prompt) output is a string that represents the modified version of your original prompt after applying the selected style. This output is crucial as it reflects the artistic transformation applied to your initial idea, allowing you to see how the style influences the prompt.

反向

The 反向 (negative prompt) output is a string that includes any modifications made to the negative prompt based on the selected style. This output helps ensure that unwanted elements are effectively excluded from the final artistic output, maintaining the integrity of your creative vision.

styleName

The styleName output is a string that indicates the name of the style applied to the prompt. This output is useful for keeping track of which style was used, especially when experimenting with multiple styles, and can help you replicate or adjust the style application in future projects.

风格选择器 Usage Tips:

  • Ensure that your styles directory contains well-defined JSON files with clear style definitions to maximize the effectiveness of the StyleSelecto node.
  • Experiment with different combinations of positive and negative prompts to achieve unique artistic results that align with your creative goals.
  • Use the i parameter to quickly switch between styles when testing multiple artistic directions, saving time and effort in the creative process.

风格选择器 Common Errors and Solutions:

Style file not found

  • Explanation: This error occurs when the specified style file is missing from the styles directory.
  • Solution: Ensure that the style file exists in the correct directory and is named correctly according to the expected format.

Invalid style index

  • Explanation: This error happens when the i parameter is set to an index that is out of range for the available styles.
  • Solution: Verify that the index is within the valid range of available styles and adjust it accordingly.

JSON decode error

  • Explanation: This error indicates that there is an issue with the format of the JSON style file, preventing it from being read correctly.
  • Solution: Check the JSON file for syntax errors or formatting issues and correct them to ensure proper parsing.

风格选择器 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Lam
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.