ComfyUI-RandomSize

ComfyUI-RandomSize
★ 8

尺寸随机化可复现(seed)生成控制器yaml配置/预设
从配置文件的尺寸列表中随机选择宽高对,支持通过seed固定结果或用Control Before/After Generate(increment/decrement/random)在生成间改变,兼容预设(默认SD 1.5)并读取yaml配置。
💡 在批量生成或调参时随机/固定分辨率以测试多样性或复现结果。
🍴 4 Forks💻 JavaScript🔄 2024-08-25
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/6862a2001521
📄 README

ComfyUI-RandomSize

A ComfyUI custom node that randomly selects a height and width pair from a list in a config file.

The core use is to provide variety in generations of large numbers of images at once.

Presets included:

  • 9 SD 1.5-friendly resolutions.
  • 9 SDXL-friendly resulotions
  • 9 Resolutions centered around 512×512
  • 9 around 640×640
  • 13 around 768×768
  • 15 around 896×896
  • 17 around 1024×1024
  • Install

    cd [path to ComfyUI]/custom_nodes
    git clone https://github.com/JerryOrbachJr/ComfyUI-RandomSize.git

    Usage

  • Select a seed. The seed is the index of a size in the yaml file, startting with 0. The same seed will always give the same output. Set control after generate to fix to fix the output.
  • Control After(/Before) Generate: set to increment, decrement, or random to get a random size from the preset each generation.
  • Select a preset. The default preset is SD 1.5 if none is chosen.
  • Run your queue.
  • Adding Presets

  • Add a text file with name of your choosing and extension “.yaml” in [path to ComfyUI]/custom_nodes/ComfyUI-RandomSize/sizes/custom
  • The first line of your file needs to be “sizes:
  • Every successive line should be a size in the format “- WIDTHxHEIGHT` replacing WIDTH and HEIGHT with pixel numbers e.g. `- 768x512
  • Restart Comfy to see your Preset in the list