Skip to content

Commit

Permalink
ComfyUI Craftsman plug
Browse files Browse the repository at this point in the history
  • Loading branch information
AshMartian committed Feb 18, 2024
1 parent a2dc907 commit db9602d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Utility nodes to get directories right in ComfyUI. Ever want to select a random

![Scoot](docs/GIR_scoot.gif)

To create this custom node pack, I uploaded the sparse ComfyUI documentation and js source code to an OpenAi GPTs [ComfyUI Craftsman](https://chat.openai.com/g/g-pYtHuQdGh-comfyui-craftsman]), this GPTs is good at answering questions and offering guidance based on real ComfyUI implementations.

## Installation

Tkinker is required, launching this custom node will attempt to install automatically. If this fails, the Directory Picker will not work properly. See [TKinker Installation](https://tkdocs.com/tutorial/install.html)
Expand All @@ -28,7 +30,7 @@ Then restart ComfyUI
| :-------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GIR Directory Picker![GIR Directory Picker](docs/DirectoryPicker.png) | **"Select Directory"** opens a GUI file browser using `tkinker`, the selected directory is persistent on disk (server restarts are no problem!), and available via output string. Changing the Selected Directory manually is supported too. |
| GIR Loopy Dir![GIR Loopy Dir](docs/DirectoryLoop.png) | Directory in, automatic loopy-ness out. Auto-increment and auto resetting, when the `loop_index` reaches the end of filtered files in directory, goes back to zero. Filter by extension or regex, manually change `loop_index` to override! |
| GIR Image Nabber ![GIR Image Nabber](docs/ImageNabber.png) | A simple path to image node, for working with results of Loopy Dir without relying on an external node pack that has it's own directory filtering logic *(For videos, use [VHS Load Video (Path)](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/blob/main/videohelpersuite/load_video_nodes.py#L197)*) |
| GIR Image Nabber ![GIR Image Nabber](docs/ImageNabber.png) | A simple path to image node, for working with results of Loopy Dir without relying on an external node pack that has it's own directory filtering logic _(For videos, use [VHS Load Video (Path)](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite/blob/main/videohelpersuite/load_video_nodes.py#L197)_) |
| GIR Happy Dance!\* ![Let's Dance!](docs/GIR_Dance.gif) | These nodes simplify and streamline the process of directory selection and iteration, making complex tasks feel like a breeze. With the ability to effortlessly pick directories and loop through files with smart reset capabilities, GIR is over the moon, knowing users can focus on creativity and productivity, leaving the tedious parts to the automation magic of ComfyUI DirGir. |

## Examples
Expand All @@ -47,9 +49,10 @@ A simple workflow using both nodes
![Loopy Demo](docs/Loopy_Demo.gif)

Regex Usage

- The problem with using `LoadImagesFromPath` is it's own built in directory filtering and index logic. DIR Loopy Dir will output filtered indexes that don't always align (especially with regex).
- Using `GIT Image Nabber` we can reliably load images from a direct path.
![Loopy Regex Demo](docs/Loopy_Regex_Demo.gif)
![Loopy Regex Demo](docs/Loopy_Regex_Demo.gif)

![Muffin](docs/GIR_muffin.webp)

Expand Down

0 comments on commit db9602d

Please sign in to comment.