ComfyUI  >  Nodes  >  ComfyUI-JNodes >  Checkpoint Selector + String

ComfyUI Node: Checkpoint Selector + String

Class Name

JNodes_CheckpointSelectorWithString

Category
None
Author
JaredTherriault (Account age: 3626 days)
Extension
ComfyUI-JNodes
Latest Updated
8/11/2024
Github Stars
0.0K

How to Install ComfyUI-JNodes

Install this extension via the ComfyUI Manager by searching for  ComfyUI-JNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JNodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Checkpoint Selector + String Description

Select specific AI model checkpoint from list with flexibility for artists to switch between models easily.

Checkpoint Selector + String:

The JNodes_CheckpointSelectorWithString node is designed to help you select a specific checkpoint (model) from a list of available checkpoints in your system. This node is particularly useful for AI artists who need to switch between different models for various tasks, such as generating different styles or types of images. The node provides a flexible way to choose a checkpoint either by directly selecting it, using a seed value to randomly pick one, or specifying an index. This versatility ensures that you can easily manage and utilize multiple models without manually searching through your files each time.

Checkpoint Selector + String Input Parameters:

ckpt_name

This parameter represents the name of the checkpoint (model) you wish to select. It is a required parameter and must be chosen from the list of available checkpoints in your system. The list is dynamically generated based on the files present in the designated checkpoints directory.

mode

The mode parameter determines how the checkpoint is selected. It offers three options: "select", "seed", and "index". The "select" mode allows you to directly choose a checkpoint by name. The "seed" mode uses a seed value to randomly select a checkpoint, providing a way to introduce variability in your model selection. The "index" mode lets you specify an index to pick a checkpoint from the list, which can be useful for automated or sequential selection processes.

seed

The seed parameter is used when the mode is set to "seed". It is an integer value that influences the random selection of a checkpoint. The default value is 0, and it can range up to 0xffffffffffffffff. This parameter is ignored if the mode is set to "select" or "index".

Checkpoint Selector + String Output Parameters:

ckpt_name

This output parameter returns the name of the selected checkpoint. It is a string that corresponds to the checkpoint chosen based on the input parameters. This output is essential for subsequent nodes that require the checkpoint name to load and use the model.

STRING

This output is a string representation of the selected checkpoint name. It serves as a convenient way to pass the checkpoint name as a string to other nodes or processes that may require it.

Checkpoint Selector + String Usage Tips:

  • Use the "select" mode when you need to consistently use a specific checkpoint for your tasks.
  • Utilize the "seed" mode to introduce randomness in your model selection, which can be useful for generating diverse outputs.
  • The "index" mode is handy for automated workflows where you need to cycle through a list of checkpoints systematically.

Checkpoint Selector + String Common Errors and Solutions:

"Index out of range"

  • Explanation: This error occurs when the specified index is outside the range of available checkpoints.
  • Solution: Ensure that the index value is within the valid range of the checkpoint list.

"Checkpoint not found"

  • Explanation: This error happens when the specified checkpoint name does not exist in the checkpoints directory.
  • Solution: Verify that the checkpoint name is correct and that the file exists in the designated directory.

"Invalid seed value"

  • Explanation: This error arises when the seed value is not a valid integer or is outside the acceptable range.
  • Solution: Check that the seed value is a valid integer within the range of 0 to 0xffffffffffffffff.

Checkpoint Selector + String Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JNodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.