sn0w-scripts

A collection of nodes and improvements created mainly for testing loras and general ease

Get Started

Install

  1. Install ComfyUi.
  2. Clone this repo into custom_nodes:
    cd ComfyUI/custom_nodes
    git clone https://github.com/sn0w12/ComfyUI-Sn0w-Scripts
    
  3. Start up ComfyUI.

Nodes

Find Resolution

An easy way to select a width and height.

ℹ️ See More Information
  • Enable flip if you want to swap the resolutions

Find Resolution

Lora Selector

Automatically selects X amount of loras between two numbers.

ℹ️ See More Information
  • Loras have to be formatted like the default kohya_ss outputs. (lora_name-000001)
  • Select the first lora.
  • Select the number of the highest lora you want to test.
  • Select the amount of loras you want to test.
  • Outputs list of loras like this: <lora:name:strength>
  • Add default generation adds an extra "nothing" at the end of the list, used in Lora Tester to generate an image without the lora.

Lora Selector

Lora Tester (XL)

Automatically generates X amount of images with provided loras.

ℹ️ See More Information
  • I recommend making lora_info and add_default_generation inputs and using the outputs from the Lora Selector.
  • Takes normal KSampler input but takes positive and negative inputs as text.
  • Outputs a batch of images.

Lora Tester

Character Selector

Outputs a character name and prompt.

ℹ️ See More Information
  • Loads characters.json and outputs prompt based on it.
  • Note: Currently very small list, feel free to add your own to the json file.

Character Selector

Prompt Combine

Combines 4 string to a single string.

ℹ️ See More Information
  • Combines 4 strings into one with a seperator, but only adds the seperator of there isnt one already at the end of the string.

Prompt Combine

Lora Stacker

Outputs a list of loras for Lora Tester.

ℹ️ See More Information
  • Basically Lora Selector but manual.

Lora Stacker

Load Lora XL/1.5

Normal load lora but from another folder.

ℹ️ See More Information
  • Add these to your extra_model_paths.yaml (for example):
  • loras_xl: C:/path/XL
  • loras_15: C:/path/1.5
  • Only has one strength because i always have them at the same number anyways. Load Lora Example

Split String

Splits a string into 4 parts.

ℹ️ See More Information
  • Splits a string into 4 parts, not very useful.

Split String

Example Workflows

S
Description
No description provided
Readme MIT
20 MiB
Languages
Python 68.6%
HTML 17.5%
JavaScript 13.9%