Open stephantual opened 10 months ago
Technically I did have a example workflow in the README ;)
But honestly the feature set for the "Cloud" node is kinda poor right now with only a couple of basic prompt manipulation functionality and currently mainly deal with raw text/prompt. It basically a personal node that made public since I don't like typing. Conveniently it support other stuff like randomize/sequencing words and merging other cloud nodes.
So here's some very bare bone docs 😅
In the workflow you can pick a "cloud object" by clicking on it then hold Shift to drag it to desired location.
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/7badb3df-7f45-4191-9a32-9525db388715
Clicking in a cloud object will reveal related widgets which can be changed OR convert to a input just a typical comfy widget.
Hold left click to empty space of the main widget then drag mouse over will reveal the group id that are associated with each "cloud object".
All cloud nodes should be paired with "0246.Stringify" to convert then to the final prompt.
Right clicking on the node itself will reveal more stuff:
🗑️ Picked Clouds
: delete all picked "cloud".
✔️ All Clouds
: pick all "cloud".
🗑️ Unpick All Clouds
.
✔️ first_group_id ➡️ Picked Clouds
: assign group from first_group_id
to all picked clouds.
🗑️ second_group_id ➡️ Picked Clouds
: unassign group from second_group_id
to all picked clouds.
✔️ first_group_id ➡️ second_group_id
: assign all nodes (with group second_group_id
) with first_group_id
.
🗑️ first_group_id ➡️ second_group_id
: unassign first_group_id
with all nodes that have group second_group_id
).
✔️ Cloud ➡️ 🗑️ Preview
: Supposed to convert all "cloud objects" to text format but feels like it useless since 0246.Beautify
already showing the final prompt so not implemented yet.
✔️ Preview ➡️ 🗑️ All Clouds
: Convert the entire text within preview
to multiple "cloud object". Optionally can be specified on how to read the prompt using regex but for now that pop-up regex doesn't do anything.
masterpiece, (beautiful: 1.25)
and very dependent on how comfy.sd1_clip.parse_parentheses
parsing the prompt.✔️ Preview ➡️ Cloud
: Supposed to convert the entire text within preview
to a single "cloud object" (not implemented yet).
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/5620a011-2187-4dc1-831e-514702283744
So there's current 5 different type of "cloud object":
text
weight
✔️ first_group_id ➡️ Picked Clouds
and verifying that the text object and weight object have same group id).rand
seed
count
order
false
to ignore order, true
will attempt to keep original relative order.mode
seed
fix
rand
add
, sub
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/260ffa44-89d1-4b9d-8a80-7fda3db449b7
Notice that a cloud object can have multiple group id and make things like only apply weight to exact text object like dfg
and therefore cloud object order is important (since it is topologically sorted).
cycle
offset
step
offset + step
for each prompt queue execution.space
count >= 2
. Basically offset + step + (space * count)
.count
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/5e44b63b-dfc0-4300-ae97-f63e93c4eaa1
Even better cycle
and rand
can be associated with weight
or merge
for that "nested" effect.
merge
pin
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/99a9dfff-9e96-4739-bd66-c3f2fa8d82a4
Bonus stuff that related to widget inputs. Currently the type must be converted to *
. Did not test how CastReroute
would handle this by picking *
so there's that.
https://github.com/Trung0246/ComfyUI-0246/assets/11626920/72e6e50d-be96-40a6-a133-b9d5bb1f6339
Since this node technically still in beta I may change the cloud object names to something else and could cause breakage but I could theoretically migrate automatically with JS stuff.
With the future topological execution pull, rand
and cycle
could execute multiple times within a single loop with a single prompt queue.
Planned features:
style.csv
or style.json
and allowing to pick specific stuff from there.Thank you so much, this is great!
With all the good will in the word (and you know I love your work) - i can' wrap my head around 'hub' and now the new 'cloud' node. ANY tutorial, even a video on YT without sound with a simple worfklow woud be useful at this point.
Thank you for your undertanding!