comfyui_wildcards

comfyui_wildcards
★ 17

提示词变体占位符替换批量生成随机化
在 ComfyUI 中复现 Automatic1111 的 wildcards 功能;从项目根的 wildcards 文件夹读取 .txt 占位词文件,在提示中使用 __name__ 自动替换并支持随机或顺序展开,便于批量和多样化提示词生成。
💡 在提示中使用 __name__ 自动替换占位词,实现批量或随机的提示词生成。
🍴 6 Forks💻 Python🔄 2024-06-20
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/f414772aa5c3
📄 README

comfyui_wildcards

This is an attempt to recreate the wildcards plugin for Automatic1111 but for ComfyUI.

Installation Instructions

  • Clone this repository into your custom_nodes directory (eg. /path/to/ComfyUI/custom_nodes)
  • Create a directory in the root of your ComfyUI install called “wildcards” (eg. /path/to/ComfyUI/wildcards)
  • Add .txt files with the various wildcards (check here for examples) todo add link
  • Restart your ComfyUI application
  • You should see that the custom node has been loaded successfully
  • Usage Instructions

  • In ComfyUI add the new wildcards node by doing one of the following:
  • right click > Add Node > conditioning > CLIPTextEncodeWithWildcards
  • double click > add search text for “wildcards” > CLIPTextEncodeWithWildcards
  • Activate wildcards by adding the filename surrounded by double underscores to the prompt (eg. \_\_eyecolor__)
  • You can use multiple wildcards if you choose (eg. \_\_eyecolor__, \_\_smile__)
  • Wire the node up
  • Optional Instructions

    The wildcard node can generate its own seed. This is useful if you want to recreate something over and over again with the same seed and the same wildcard options. If you wish to use this seed with the rest of your prompts/samplers you can redirect its INT output into the seed input

    Instalation Screenshots

    Usage Screenshots

    Known Issues

  • unlike the A1111 version, the wildcard that was picked does not get replaced in the png info