Open Jellybit opened 9 months ago
Hi Friend! I has same issue.
First, let me explain why the metadata shown in the Prompt Reader node may not match the current image. When you select an image, the change in the image preview is real-time, but reading metadata can only be triggered by image generation. Therefore, the complete process is as follows:
Select the image → Update the image preview → Press the Queue button → The prompt reader reads the metadata from the image → Outputs the metadata → Updates the text box.
Anytime you see metadata, it is data from the image used by the previous generation. This is a feature of comfyui (python script can only be triggered by image generation), and I currently have no solution to this.
Anytime you see metadata, it is data from the image used by the previous generation. This is a feature of comfyui (python script can only be triggered by image generation), and I currently have no solution to this.
I see. Some nodes have a right click "View Info..." action that lets you view model data when you set a Lora or Checkpoint. Is it maybe possible to right click to populate your node in the same way? Similarly, the latent node has a right click action that swaps the height/width. RGThree has general right click actions on empty space that can convert several nodes in the graph, or can bring you to a place to rate the add-on on Github. Or is there a way to get it to hook into the "Refresh" action, which repopulates all the checkpoints/loras?
Sorry, I'm sure you've thought this through. I just wanted to bring up any possibilities that may have been missed. Generating an image/video/whatever seems a bit wasteful if it can be avoided.
Some nodes have a right click "View Info..." action that lets you view model data when you set a Lora or Checkpoint. Is it maybe possible to right click to populate your node in the same way? Similarly, the latent node has a right click action that swaps the height/width. RGThree has general right click actions on empty space that can convert several nodes in the graph, or can bring you to a place to rate the add-on on Github. Or is there a way to get it to hook into the "Refresh" action, which repopulates all the checkpoints/loras?
This is very useful to me! As far as I know, this can only trigger JS code, not Python code. Anyway, I will go check their source code.
Bad news: my guess was correct, no one can trigger Python code using the right-click menu. That's to say, I can't use right-click to update the text box.
Install https://github.com/rgthree/rgthree-comfy Then you can execute selected nodes.
Install https://github.com/rgthree/rgthree-comfy Then you can execute selected nodes.
Ohhh, I have that. I didn't know it had that feature. SO many features on that one. In case anyone else finds this, it seems to be the "Queue Selected Output Nodes (rgthree)" feature. Thanks!
Description
I feel like the only person running into this, since no one has mentioned it here so far, but whenever I drag an image or manually choose an image for the prompt reader node, the boxes stay blank. It can populate with the wrong information if changing images, causing problems if the user isn't aware that the prompt info doesn't match the current image. I added steps into the Reproduction Steps that you can follow.
Here's what it ends up looking like. It displays information from the wrong image.
Sorry if I'm doing something stupid. I'm on ComfyUI: 1930d1533d.
Reproduction steps
Image file
No response