RollingArtist is a ComfyUI node designed to generate artist prompt texts with random weights, suitable for text-to-image generation models. The node reads an artist list from a CSV file and generates combined prompts based on the parameters.
RollingArtist 是一个 ComfyUI 节点,用于生成包含随机权重的艺术家提示文本。通过动态调整 Top 艺术家比例,实现可控的随机组合。
custom_nodes
目录:
git clone https://github.com/StarAsh042/ComfyUI_RollingArtist.git
RollingArtist.py
(主节点文件)danbooru_art_001.csv
(艺术家数据源)modify_danbooru_csv.py
(可选预处理工具)| 参数名称 | 类型 | 范围 | 说明 | |--------------------|---------|--------------|-------------------------------| | artist_count | INT | 1-10 | 选择生成的艺术家人数 | | artist_top_count | INT | 1-10 | 输出中包含的Top艺术家数量 | | artist_top_ratio | FLOAT | 0.1-1.0 | 提取CSV中Top艺术家占前百分比 | | artists_prefix | BOOLEAN | - | 添加"artist:"前缀 | | weight_min | FLOAT | 0.1-1.0 | 单个艺术家最小权重 | | weight_max | FLOAT | 0.5-2.0 | 单个艺术家最大权重 | | weight_total | FLOAT | 1.0-20.0 | 所有权重总和 | | seed | INT | 0-4294967295 | 控制随机性的种子值 |
典型工作流配置:
(artist:John_Doe:0.5),(artist:Jane_Smith:1.2),...
当 CSV 文件出现格式问题时,运行:
python modify_danbooru_csv.py