-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load image batches #707
Load image batches #707
Conversation
I think there should be an OK button beside the clear button in the "Pick Images" UI. With this I can no longer queue prompts if there is an extra SaveImage in the workflow not connected to anything for example. |
8a1b704
to
c195bc7
Compare
Added
Isn't that how it's always been? The executor always tries to verify starting from output nodes even if they're not attached to the "main" graph right? (It still works if the detached node isn't an output node) |
3fc7875
to
75dcbce
Compare
I have 30000 images in my output folder so this is a bit slow, it also doesn't allow you to filter the list like the current LoadImage node The pick images should default to the Input folder and there should be a "Replace" and an "Add" instead of just an "Add" because I assume most people just want to pick a single image. |
bf32916
to
d4e7387
Compare
- Uses filter list behavior for LiteGraph context menu - "Replace" button - Can select from combo widget on node directly
Okay I made it use the list filtering behavior for normal combo boxes like with current LoadImage, so it shouldn't be any slower than that. I also made the widget display on the node back into an interactable combo box like current LoadImage does. The only thing I couldn't preserve was the behavior when clicking the arrow buttons on the combo box which unfortunately needs litegraph changes to work Also added the Replace button and it defaults to the input folder |
Looks clunky and unrefined, but functionality is great. |
Is it normal that the arrow buttons for the file combo are broken? |
How is this working? I see no mode? This should output
That way it can be used with all methods of image handling and diffusion. |
With this implementation yes. The list of paths is sent back as an array (which other widgets/types haven't done before) but litegraph assumes that when picking an item with the left/right combo buttons the index of the selected value can be found in the choices array. Since the value is an array instead of a string, and list of choices are strings, it won't report the correct value It needs a way to ignore the index if it isn't found, or better yet a way for widgets to override their behavior if a button is pressed, but both of those are litegraph patches
I could add this but I can foresee it needing changes to the executor, currently I don't think you can configure a node to be different modes of |
This is why, like I have mentioned a few times, all execution should double check the class. 1 get defaults We're using classes and can use them much more powerfully. When we envoke the class to run the function we have an opportunity to check the class attributes again for dynamic changes. |
I think Lines 87 to 98 in 7ddfed0
Whereas the INPUT_IS_LIST applies to all inputs. While less dynamic, it should be doable with an output for each "mode" |
Can it be dynamically set or is it static? I've tried changing like return types and stuff and didn't take. |
where can i find this node? |
This is pretty old code and not sure it's compatible anymore. The fork its in is pretty ancient |
Closes #628, closes #23