Git Product home page Git Product logo

collection_tools's Introduction

collection_tools for InvokeAI (v4.0+)

Discord Link :- collection_tools

A set of InvokeAI nodes to manipulate Collections in Invoke AI workflows.

Note: These are currently very experimental, especially the generic versions.

  • Collection Sort - Generic Collection Sort
  • Collection Index - Generic Item from a collection via index or random
  • Image Collection Index - Image from a collection of Images via index or random
  • String Collection Index - String from a collection of Strings via index or random
  • Integer Collection Index - Integer from a collection of Integers via index or random
  • Float Collection Index - Float from a collection of Floats via index or random
  • Bool Collection Index - Bool from a collection of Bools via index or random

Usage

Install

There are two options to install the nodes:

  1. Recommended: Git clone into the invokeai/nodes directory. This allows updating via git pull.

    • In the InvokeAI nodes folder, run:
    git clone https://github.com/skunkworxdark/collection_tools.git
  2. Manually download collection_tools.py & init.py then place them in a subfolder under invokeai/nodes.

Update

Run a git pull from the collection_tools folder.

Or run update.bat(windows) or update.sh(Linux).

For manual installs, download and replace the files.

Remove

Delete the collection_tools folder. Or rename it to `_collection_tools`` so InvokeAI will ignore it.

Useful Notes

  • In the same way that a collect node cannot connect directly to an iterate node. The same is true for the Collection Sort and Collection Index nodes. I would recommend adding a collection/item primitive type node before/after the generic versions of the nodes if they are going to be used with another node with generic types.

ToDo

  • Add more collection data type
  • Add more ways to manipulate collections
  • Add more example workflows

Example Usage

Here is an example of selecting 3 random images to add to an IP-Adapter. You don't need the Collection Sort node in this for it to work I just added it to show how it could fit in a workflow.

Random Image Workflow Example

collection_tools's People

Contributors

skunkworxdark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.