Inzaniak / comfyui-ranbooru

8 stars 3 forks source link

Ranbooru for ComfyUI

Alt text Ranbooru is an extension for the comfyUI. The purpose of this extension is to add a node that gets a random set of tags from boorus pictures. This is mostly being used to help me test my checkpoints on a large variety of tags. Alt text

Installation

Just clone this repository into the custom_nodes folder of ComfyUI. Restart ComfyUI and the extension should be loaded.

Features

These are the nodes available in the Ranbooru extension:

Ranbooru

This node will get a random set of tags from boorus pictures. Parameters:

Ranbooru URL

This node will get the tags from a specific picture.

Random Picture Path

This node will get a random picture from a specific path.

PromptMix

The PromptMix node is used to mix the words in a given prompt. It supports three types of mixing: 'Shuffle', 'Reverse', and 'Inverse'. The type of mix is determined by the mix_type parameter.

PromptLimit

The PromptLimit node is used to limit the number of words in a given prompt. The number of words is determined by the limit parameter.

PromptRandomWeight

The PromptRandomWeight function is used to randomly select one or more words from a given prompt and give them a random weight based on a user-defined range. The number of words to be selected is determined by the num_words parameter.

PromptBackground

The PromptBackground function is used to add a background context to a given prompt.

PromptRemove

The PromptRemove function is used to remove specified words from a given prompt.

LockSeed

The LockSeed node is used to lock the seed for the random number generator. This is useful when you want to generate the same random numbers across different nodes.

TimestampFileName

The TimestampFileName node is used to generate a timestamp-based file name. The file name is generated based on the current date and time.

Found an issue?

If you found an issue with the extension, please report it in the issues section of this repository.

Check out my other scripts for 1111automatic


Made by Inzaniak

Alt text

If you'd like to support my work feel free to check out my Patreon: https://www.patreon.com/Inzaniak

Also check my other links: