ComfyUI-TTools

ComfyUI-TTools
★ 1

文本随机化字符串格式化JSON提取与处理SD3分辨率求解
提供文本随机化与格式化、字符串中JSON提取与处理,以及SD3分辨率求解器,方便生成近1百万像素的最佳图像分辨率。
💡 快速随机化提示文本并计算合适的SD3输出分辨率
🍴 3 Forks💻 Python🔄 2024-07-04
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/f414772aa5c3
📦 requirements.txt
spacy
spacy-lang-en
re
random
itertools
emoji
logging
json
📄 README

TTools for ComfyUI

Simple nodes for my various use cases.

Features

  • Text Randomization and Formatting: Simplifies string manipulation by altering and randomizing the sequence.
  • JSON Extraction and Processing: Allows for robust extraction and manipulation of JSON embedded within strings.
  • SD3 Resolution Solver: Computes optimal image resolutions to achieve near 1 megapixel clarity under set constraints.
  • Installation Steps

  • Navigate to your /ComfyUI/custom_nodes/ directory.
  • Clone the repository:
  • “`bash

    git clone https://github.com/toxicwind/ComfyUI-TTools.git

    “`

  • Change to the cloned directory:
  • “`bash

    cd TTools

    “`

  • Depending on your setup, install dependencies:
  • Portable/Venv:
  • “`bash

    path/to/ComfyUI/python_embedded/python.exe -s -m pip install -r requirements.txt

    “`

  • System Python:
  • “`bash

    pip install -r requirements.txt

    “`

    Contributing

    Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.

    License

    This project is licensed under the MIT License. See the LICENSE file for more details.