Load Images #22
Replies: 15 comments 5 replies
-
ComfyUI doesn't have the ability to output from nodes to the GUI currently, and doesn't have prompt windows. I've been waiting for these crucial features. And WAS Node Suite isn't meant to modify base ComfyUI |
Beta Was this translation helpful? Give feedback.
-
I don't understand why you write : "That's why they exist in input/output and why my nodes don't show images for anything outside of them." Your load nodes (both image and image bath) work fine with folders outside the server, even in a different hard disk from the server one. In fact, your Load Image Batch node (when used in Now you say:
Point 1: Point 2: This way your logic in the code does not have to be changed. Simply instead of selecting an index with the mouse, I select an image in the combobox and the code translates it into the index. Regarding whether or not you can acquire the list of files from a custom node look at this :
(source code VextraNodes) and with the new Combo widget filter/search is on the way : comfyanonymous/ComfyUI#369 can also be searched by typing |
Beta Was this translation helpful? Give feedback.
-
None of that is what I'm talking about. The node will only show image physically on the node for local images within Comfy. Yes, I know my node can load from anywhere, including URLs from the internet, I programmed it that way. The code you gave has nothing to do with showing images on the node input (and already use similar code), that's down in the |
Beta Was this translation helpful? Give feedback.
-
I don't want to bore you with this, and I have no doubt that you know better than I do knots that you created. ;) Perhaps the misunderstanding comes from this : You talk to me about destination but in this case you need a source, a source folder. Maybe by destination you mean the choice of the image among the many in the list. At the first run you cannot know the user's choice but just make a preset on the first combobox item as you just do it with index 0 in your node batch. By the second run the user has chosen the image and then you know the user desired image selection (destination). The source folder is the one indicated in the field |
Beta Was this translation helpful? Give feedback.
-
(source code VextraNodes) |
Beta Was this translation helpful? Give feedback.
-
as you do an images.append(image) you can also do an append of image names to an array that populates the combobox |
Beta Was this translation helpful? Give feedback.
-
The node is already rendered, it doesn't change state after you run it. It just runs defaults and takes input. Not to mention running means running a prompt, an entire process so that would be extremely counter intuitive and hacky |
Beta Was this translation helpful? Give feedback.
-
the checkpointloader node works as I'm pointing out, I don't see what's counterintuitive about it. I understand your point of view about get hacky, but you will realize that having ComfyUI forcibly copy all source images to the input folder is insane as well, without even being able to subdivide them into subfolders moreover. if you think it is a small thing okay, but you are getting it wrong because it is not at all from a professional graphics point of view, and a graphics node application is of more interest to professionals than the Sunday ai image renderer Guy, who jumps on things more easy like Midjourney :D |
Beta Was this translation helpful? Give feedback.
-
You like to just randomly say "stuff works" without understanding how it works... the checkpoint loader, which was never mentioned here... works how I've already discussed numerous times now. It uses a HARD SET input, to get it's files. This input is already provided to the node before it runs The batch load images hasn't received it's path to show anything in a input. It would require making the node spit out a list, that you feed to another node, tot hen select from a list of filenames, or copy them all to input to visually browse. In fact I think I'll do that. I've already added dictionary output to Load Text File. Edit: That's not even possible because the input also isn't accessible accessible accept from within the node when it's running, which doesn't help updating the node with a list of files. We need a callback when any sort of input is changed that fires another function for a node (not main function, but something designed for a update callback). |
Beta Was this translation helpful? Give feedback.
-
Look... even if it were true that I not understood the node input thing, it just because you repeated it a hundred times now I would know :D I didn't point it out to you for the reason you say, otherwise I would have mentioned it right at the beginning of this conversation. 'In fact I think I'll do that. I've already added dictionary output to Load Text File.' 'We need a callback when any sort of input is changed that fires another function for a node (not main function, but something designed for a update callback' |
Beta Was this translation helpful? Give feedback.
-
I agree that base64 would change the games and compatible markdown is a big thing too! There is good partial news, I was able to eliminate the use of the index and have the combobox populated automatically as far as the default input folder is concerned, which already and for now is not bad I would say. the solution is to create the input_types by splitting them into two stages so we can use rootpath into imagename list combobox widget definition and then assign the dictionary directly in def INPUT_TYPES(cls) works great and now at least for the input folder we can select the image to run from combobox directly. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Now that leaves the point you were saying about how to refresh the combobox when the rootpath changes
because the events are not called You can have the right folder images list updated and also a desired image index by writing:
But that doesn't update the combobox obviously. I'm going to sleep I'm cooked. :D |
Beta Was this translation helpful? Give feedback.
-
I know how to do all this, it's the fact the functionality isn't there from the front end, so I am not interested. |
Beta Was this translation helpful? Give feedback.
-
But how? Compared to the node that I proposed to you instead (as partial solution) I do not understand what there would be frontend if not the fact that not update the populate of the combobox that as I told you remains to be solved and it is possible to add a subfolder target of the input folder as a widget to point to images stored with the order that the user prefers |
Beta Was this translation helpful? Give feedback.
-
It would be great if you added to the nodes :
Load Image and Load Batch Images
the ability to change the folder path through a file dialog in addition to writing directly that there is already.
And in the Load Image node if possible, to have a ComboBox with the list of all the images contained in the chosen path folder, to speed up the change of the selected image.
Beta Was this translation helpful? Give feedback.
All reactions