ComfyUI > Nodes > simple wildcard for ComfyUI

ComfyUI Extension: simple wildcard for ComfyUI

Repo Name

ComfyUI_node_Lilly

Author
lilly1987 (Account age: 2964 days)
Nodes
View all nodes(1)
Latest Updated
2024-05-22
Github Stars
0.05K

How to Install simple wildcard for ComfyUI

Install this extension via the ComfyUI Manager by searching for simple wildcard for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter simple wildcard for ComfyUI 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

simple wildcard for ComfyUI Description

The simple wildcard for ComfyUI extension allows users to insert arbitrary inputs into prompts using wildcards, enhancing workflow efficiency. It includes features like VAELoaderDecoder and SimplerSample to streamline processes.

simple wildcard for ComfyUI Introduction

ComfyUI_node_Lilly is an extension designed to enhance the capabilities of AI artists by providing advanced wildcard functionalities. This extension allows you to create more dynamic and varied text prompts, which can be particularly useful in generating diverse and creative AI art. By using wildcards, you can introduce randomness and variability into your prompts, making your AI-generated art more unique and interesting.

How simple wildcard for ComfyUI Works

At its core, ComfyUI_node_Lilly uses wildcards to replace parts of your text prompts with random or predefined values. Think of wildcards as placeholders that can be filled with different options each time you run your prompt. This can help you generate a wide range of outputs from a single prompt template.

For example, if you have a prompt like a{__b__|{c|}|{__d__|e|}|f|}g____ __my__, the extension will replace the placeholders (__b__, __d__, __my__, etc.) with different values based on the rules you define. This can result in various combinations, making your AI art more diverse.

simple wildcard for ComfyUI Features

Wildcards

Wildcards are the main feature of this extension. They allow you to define parts of your prompt that can be replaced with different values. Here are some examples:

  • {1|2|3}: This will randomly choose between 1, 2, or 3.
  • {2$$a|b|c}: This will choose two of the options (a, b, c) in any combination.
  • {1-2$$a|b|c}: This will choose between one and two of the options.
  • {*}: This matches any value.

Wildcard Text File Use

You can also use text files to define your wildcards. For example, if you have a file ~/a/b.txt with the content 1, and another file ~/b.txt with the content 2, you can use these files in your wildcards:

  • __b__ will be replaced with 1 or 2.
  • __/b will be replaced with 2.
  • __/a/b will be replaced with 1.

Filename Pattern Matching

The extension supports filename pattern matching using special characters:

  • * matches everything.
  • ? matches any single character.
  • [seq] matches any character in the sequence.
  • [!seq] matches any character not in the sequence. For more details, you can refer to the Python fnmatch documentation.

CLIPTextEncodeWildcards

This feature allows you to encode text prompts with wildcards, either with or without a seed. This can help you generate consistent results if you use the same seed, or more varied results if you don't.

SimpleSampler+modelVAE

This feature includes wildcards and allows you to sample from a model with a variational autoencoder (VAE). This can help you generate more diverse and high-quality images.

VAELoaderText, LoraLoaderText, CheckpointLoaderSimpleText

These loaders support filename wildcards, allowing you to dynamically load different models or checkpoints based on your wildcard patterns.

Troubleshooting simple wildcard for ComfyUI

Here are some common issues you might encounter and how to solve them:

Issue: Wildcards Not Replacing Correctly

  • Solution: Ensure that your wildcard syntax is correct. Refer to the examples provided in the features section.

Issue: Text Files Not Loading

  • Solution: Make sure the file paths are correct and the files are accessible. Check the file permissions if necessary.

Issue: Pattern Matching Not Working

Learn More about simple wildcard for ComfyUI

To learn more about how to use ComfyUI_node_Lilly, you can refer to the following resources:

simple wildcard for ComfyUI Related Nodes

RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.