TinyTerra / ComfyUI_tinyterraNodes

A selection of nodes for Stable Diffusion ComfyUI
GNU General Public License v3.0
421 stars 45 forks source link

Feature request: More output options as part of XY Plot #143

Open EnragedAntelope opened 3 months ago

EnragedAntelope commented 3 months ago

Hi, I am looking for a way to use information from updated fields during the XY plot run. In the example pic below, I'm able to cycle through styles (from a prompt styler node) successfully. However I also want to A) Capture the name of the style as text/string so I can make each filename named after the style. B) Output the final prompt to a text file, also named after the style name

I don't see a way to capture the final prompt, and when I try to reference the style, I only receive a static output (it doesn't dynamically update).

So maybe from the tinyKSampler, can we get a "positive" and "negative" text output? As well as any individualized text output from the advanced XY plot node maybe? Not sure of the best way to approach.

image

Thank you!

TinyTerra commented 3 months ago

I don't see a way to capture the final prompt, and when I try to reference the style, I only receive a static output (it doesn't dynamically update).

~Although it doesn't update the front-end nodes visually - the same 'workflow' is being executed within the xy ksampling - so the fields technically update in the context of the image that is being produced, just not in the UI.~

nevermind - in testing this doesn't currently work since the xy backend 'workflow' only uses specifically dependent nodes... I'll have a think on this and see if i can come up with a proper solution (xy might change once the execution order PR goes through sometimes this week)

A) Capture the name of the style as text/string so I can make each filename named after the style.

For this you can use the already existing filename parsing in ttN (although you will need to use the image save within the ttN KSampler). There is an example of this in the readme.

Set 'save_individuals' to true in the advanced xyPlot node, then in the KSampler you can change image_output to 'Save' then update save_prefix to be: %model>positive>milehigh% (you can change it back to being preview after updating that field)

B) Output the final prompt to a text file, also named after the style name

I have added a textOuput node that utilizes the same filename parsing. However this currently has the same issue within the context of xy as the very first point. I'll see what i can do

DrJKL commented 1 month ago

I'd love the ability to also add the time taken to generate as a secondary label or maybe as metadata.