Skip to content

RamonGuthrie/ComfyUI-RBG-SmartSeedVariance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ComfyUI-RBG-SmartSeedVariance 🌱

ComfyUI Compatible1 Nodes1 Category

Advanced Seed Diversity Enhancement for ComfyUI ✨

Some generative models (like Krea 2, Z-Image Turbo and Qwen-Image) suffer from limited seed variance & diversity bias, changing the seed (especially in single-step or Turbo workflows) often produces nearly identical compositions or subtle variations. Conversely, highly sensitive multi-encoder models (like Flux or Wan 2.2) can easily collapse or lose prompt alignment when raw noise is injected. The RBG Smart Seed Variance node solves this by injecting targeted, mathematically structured noise directly into text embeddings during early generation steps. It creates meaningful diversity, styling variation, and composition shifting while preserving your core prompt intention.


Screenshot 2025-12-09 140138

Feature List πŸš€

  • 7 Intelligent Presets: Pre-configured variance levels from Subtle to Wild:

    • 🌱 Subtle - Gentle diversity for fine-tuning
    • 🌿 Balanced - Sweet spot for most use cases
    • πŸͺ΄ Creative - Unlock more artistic variations
    • 🌳 Bold - Significant structural changes
    • 🌴 Wild - Maximum diversity for exploration (Note this might break your prompt, use with caution!)
    • βš™οΈ Custom - Fine-tune with percentage slider (0-100%)
  • Model-Specific Optimization: Automatic adjustment for your architecture:

    • Krea 2, Z-Image Turbo, Ernie-Image, Qwen-Image, Flux (Dev/Schnell), Wan, Chroma HD, SDXL and more!
  • 25 Direction Shift Patterns: Apply structured artistic biases instead of pure random noise.

  • 7 Spatial Fade Curves: Control how noise fades across the embedding space.

  • Flexible Noise Injection Timing: Control when variance is applied.

  • Prompt Token Protection: Preserve specific parts of your prompt from noise.


Screenshot 2025-12-09 143429 Screenshot 2025-12-09 151729

πŸ“₯ Installation

  1. Clone this repository into your ComfyUI/custom_nodes directory:
    git clone https://github.com/RamonGuthrie/ComfyUI-RBG-SmartSeedVariance.git
  2. Install the required dependencies:
    pip install -r requirements.txt
  3. Restart ComfyUI.

The node will appear under the RBG Suite/Advanced category.


πŸ’‘ Pro Tips

  • Start conservative: Begin with "Balanced" preset and adjust up/down based on results
  • Experiment with directions: Each artistic direction creates unique aesthetic shifts - try them all!
  • Protect your keywords: Use "First Half" protection if important prompt concepts are being overridden
  • Track your seed: Use consistent seeds to compare variance effects side-by-side
  • Model matters: Always select the correct model type for optimal results and to avoid over-correction
  • Combine strategies: Mix direction shifts with fade curves and noise injection timing for sophisticated effects
  • Use custom mode: Fine-tune with the slider when presets don't match your needs exactly
  • Chain more than one: For advanced effects, you can chain multiple Smart Seed Variance nodes.
  • Share settings with the Community: If you find a killer setting combination Export them and share with the open-source community.

Watch the Demo video πŸ“Ί

Untitled.video.-.Made.with.Clipchamp.1._1.mp4

πŸ› Troubleshooting

Output looks exactly the same?

  • Increase preset to "Bold" or "Creative"
  • Check that the node is connected to your conditioning
  • Verify model type is correct for your actual model
  • Try a different seed value

Quality degraded or image broken?

  • Reduce preset to "Subtle"
  • Enable prompt protection ("First Half" or "First Quarter")
  • Switch direction shift to "🚫 None" to use pure random
  • Try "Ending Steps" to limit variance timing to fine details only

Getting strange/unexpected outputs?

  • Reduce shift_strength to 50-70%
  • Try a different direction shift pattern
  • Verify ComfyUI version compatibility

Usage πŸš€

To use the RBG Smart Seed Variance node, connect it between your KSampler and the Conditioning input. This allows the node to modify the conditioning based on your chosen variance settings.

Contributing ❀️

Contributions are always welcome! If you have any suggestions, improvements, or new ideas, please feel free to submit a pull request or open an issue.


License πŸ“œ

This project is licensed under the GNU General Public License v3.0 (GPL-3.0) β€” see the LICENSE file for the full text.

What this means in practice:

  • βœ… You can use, study, modify, and redistribute this code β€” including for commercial ComfyUI workflows.
  • βœ… You can fork it and build on it.
  • ⚠️ If you distribute a modified version, you must release your changes under GPL-3.0 too, and make the source available to whoever you distribute it to.
  • ⚠️ You must keep the copyright notice and this license intact, and clearly mark what you changed.
  • ❌ You cannot fold this code into a closed-source or proprietary node pack. This matches the license of ComfyUI itself, so it stays fully compatible with the ecosystem this suite is built for.

Prior to [12/11/2025], this repository was released under the MIT License. Code distributed under the old MIT license terms before that date remains available under MIT for anyone who already forked/cloned it then; all new releases and changes are GPL-3.0.

This project is licensed under the MIT License.