Skip to content
Node packVerifiedExternal
Open source

wlsh_nodes

WLSH ComfyUI Nodes

Maintainer@wallish77Cgrade

Package profile

Status
Verified
Publisher
@wallish77
Source
GitHub
Stars
146

README

WLSH ComfyUI Nodes

A set of custom nodes for ComfyUI created for personal use to solve minor annoyances or implement various features. Includes nodes to read or write metadata to saved images in a similar way to Automatic1111 and nodes to quickly generate latent images at resolutions by pixel count and aspect ratio.

Node descriptions

Loaders

Node NameDescription
Checkpoint Loader with NameThe regular checkpoint loader with an output that provides the name of the loaded model as a string for use in saving filenames

Samplers

Node NameDescription
KSamplerAdvanced (WLSH)Modified version of the advanced KSampler to return the denoising option for experimentation. Also provides the INFO output that provides sampler settings for use in other nodes.

Conditioning

Node NameDescription
CLIP Positive-NegativeSimple CLIP box containing positive and negative prompt boxes. Mostly a space saver. Also available as an SDXL version.
CLIP Postive-Negative w/TextSame as the above, but with two output ndoes to provide the positive and negative inputs to other nodes. Also available as an SDXL version
CLIP +/- w/Text Unified (WLSH)Combined prompt/conditioning that lets you toggle between SD1.5 and SDXL (just make sure to change your inputs). Sacrifices some features of SDXL, namely by assuming POS_G and POS_L are the same (as well as the negative), assuming zero crop, and assuming target size is 2x input size. Width and height inputs are option, will assume 1024x1024.

Latent

Node NameDescription
Empty Latent by PixelsQuickly generate an empty latent by selecting an aspect ratio, an orientation (landscape or portrait) and the number of megapixels (1MP = 1024 * 1024 in this case). Also provides the height and width as integers for plugging in elsewhere.
Empty Latent by RatioQuickly generate an empty latent by selecting an aspect ratio, an orientation (landscape or portrait) and the length of the 'shorter' side. Also provides the height and width as integers for plugging in elsewhere.
Empty Latent by SizeNearly identical to the default empty latent node, but also provides the width and height as integer outputs for plugging in elsewhere.
SDXL Quick Empty LatentQuickly generate an empty latent of a size from a list of ideal SDXL image sizes. Also provides the height and width as integers for plugging in elsewhere.

Image

Node NameDescription
Image Load with MetadataExtract image metadata from Auto1111-sourced images or from images saved with the nodes in this pack. Can then connect these outputs to other nodes. Requires comfyUI commit d7b3b0f8c11c6261d0d8b859ea98f2d818b7e67d or newer to show preview of selected image
Grayscale ImageTakes an input image and returns the image in grayscale. Useful for some controlnet actions

Inpainting

Node NameDescription
Generate Border MaskUsed to generate a 'stripe' of mask with blurred edges that overlaps an original iamge with the outpainted new space. Use on a second pass of an image to 'redo' the masked stripe region and help smooth out the edges of an outpainted image. Pass output to a Convert Image to Mask node using the green channel.
Outpaint to ImageExtends an image in a selected direction by a number of pixels and outputs the expanded image and a mask of the outpainted region with some blurred border padding.
VAE Encode for Inpaint PaddingA combined node that takes an image and mask and encodes for the sampler. Can apply some padding/blur to improve inpainting behavior.

Upscaling

Node NameDescription
Image Scale by FactorScale an image by a predefined factor without a model
Image Scale by ShortsideScale an image by specifying what the shorter side

Nodes in this pack

40 nodes
  • Alternating KSampler (WLSH)
  • Build Filename String (WLSH)
  • Checkpoint Loader w/Name (WLSH)
  • CLIP +/- w/Text Unified (WLSH)
  • CLIP Positive-Negative (WLSH)
  • CLIP Positive-Negative w/Text (WLSH)
  • CLIP Positive-Negative XL (WLSH)
  • CLIP Positive-Negative XL w/Text (WLSH)
  • Empty Latent by Pixels (WLSH)
  • Empty Latent by Ratio (WLSH)
  • Empty Latent by Size (WLSH)
  • Generate Border Mask (WLSH)
  • Grayscale Image (WLSH)
  • Image Load with Metadata (WLSH)
  • Image Save with Prompt (WLSH)
  • Image Save with Prompt File (WLSH)
  • Image Save with Prompt/Info (WLSH)
  • Image Save with Prompt/Info File (WLSH)
  • Image Scale By Factor (WLSH)
  • Image Scale by Shortside (WLSH)
  • KSamplerAdvanced (WLSH)
  • Multiply Integer (WLSH)
  • Outpaint to Image (WLSH)
  • Prompt Weight (WLSH)
  • Quick Resolution Multiply (WLSH)
  • Resolutions by Ratio (WLSH)
  • Save Positive Prompt(WLSH)
  • Save Prompt (WLSH)
  • Save Prompt/Info (WLSH)
  • SDXL Quick Empty Latent (WLSH)
  • SDXL Quick Image Scale (WLSH)
  • SDXL Resolutions (WLSH)
  • SDXL Steps (WLSH)
  • Seed and Int (WLSH)
  • Seed to Number (WLSH)
  • Simple Pattern Replace (WLSH)
  • Simple String Combine (WLSH)
  • Time String (WLSH)
  • Upscale by Factor with Model (WLSH)
  • VAE Encode for Inpaint w/Padding (WLSH)

Related resources

5 connections

Sources

3 sources
GitHubPrimary
github.com/wallish77/wlsh_nodes

Verified Oct 17

GitHubSourceVersion 97807467bf7ff4ea01d529fcd6e666758f34e3c1
github.com/wallish77/wlsh_nodes

Verified Oct 21

Source excerpts

1 excerpt

Source context: Repo wallish77/wlsh_nodes