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 SortCollection Index
- Generic Item from a collection via index or randomImage Collection Index
- Image from a collection of Images via index or randomString Collection Index
- String from a collection of Strings via index or randomInteger Collection Index
- Integer from a collection of Integers via index or randomFloat Collection Index
- Float from a collection of Floats via index or randomBool Collection Index
- Bool from a collection of Bools via index or random
There are two options to install the nodes:
-
Recommended: Git clone into the
invokeai/nodes
directory. This allows updating viagit pull
.- In the InvokeAI nodes folder, run:
git clone https://github.com/skunkworxdark/collection_tools.git
-
Manually download collection_tools.py & init.py then place them in a subfolder under
invokeai/nodes
.
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.
Delete the collection_tools
folder. Or rename it to `_collection_tools`` so InvokeAI will ignore it.
- In the same way that a
collect
node cannot connect directly to aniterate
node. The same is true for theCollection Sort
andCollection 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.
- Add more collection data type
- Add more ways to manipulate collections
- Add more example workflows
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.