Laufzeitprofil
Quellenbeschreibung
Check earlier versions for more examples!
Development Status: I am using this daily and taking notes for future improvements. Next version will come in the form of a custom node for comfyui.
This will improve computation speed by probably 1000% 😁
I want to add many more options, including Natural language based instead of just tags.
Like my stuff? Want to use a powerful GPU? You can send me some love by signing up to RunPod using my referral link: https://runpod.io?ref=slmzn8qv
WHY a Random Prompt Generator? So the other day I was thinking of a way to automate my prompts so that I could go somewhere come back and have a load of images to choose from. I've seen quite a few implementations using different approaches but none where very pleasing as they where simply loading pre made prompts and this would lead to repetition.
KI-generierter Kommentar
KI-generierte Erklärung auf Grundlage von Quellen- und Konfigurationsdetails. Vorschläge sind klar gekennzeichnet.
MPI Random Prompt Gen is a ComfyUI workflow for generating varied image prompts from editable lists. Enter Pre text for model identity details and Post text for style or camera terms; it combines these inputs with random list selections and provides a prompt output plus a - ve ?
The subgraph randomly selects entries for character, clothing, makeup, expression, location, color, pattern, lighting, effects, and ambience.
Optional General and Character list nodes separate environment and character choices; when they are not connected, the workflow uses its contained lists.
Use Pre for model identity details such as trigger words or hair color, and Post for style, composition, or camera terms.
The prompt output can connect to a positive text encoder, and the workflow also includes a negative post-prompt output.
A Save Image node is included so prompts can be saved.
Copy and paste the node into an existing ComfyUI workflow, then connect its prompt output to a positive text encoder.
Open the subgraph or use its top-right icon to edit the lists.
Node packs include ComfyMath, comfyui_stringessentials, comfyui_ultimatesdupscale, comfyui-art-venture, comfyui-custom-scripts, comfyui-easy-use, comfyui-impact-pack, and comfyui-impact-subpack.
Other named node packs are ComfyUI-Jjk-Nodes, comfyui-kjnodes, comfyui-logic, controlaltai-nodes, kaytool, rgthree-comfy, and was-ns.
Named model files include 4x_NMKD-Siax_200k.pth, bbox/face_yolov8m.pt, bbox/hand_yolov8s.pt, lustifySDXLNSFW_oltONELASTTIME.safetensors, sam_vit_b_01ec64.pth, and sd_xl_base_1.0.safetensors.
Probability sliders use 0 for off and 100 for always on; separate seeds control character and environment variation independently.
SFW and NSFW controls use probability sliders to affect action lists and clothing logic.
Before using the workflow, verify that the listed node packs and model files are available in your ComfyUI setup.
Vorschlag · nicht geprüft
Muss das bearbeitet werden?
Melden Sie sich an, um eine Änderungsanfrage zu senden.
Quellen
1 QuelleQuellenauszüge
1 AuszugSource context: 820 downloads · Type Workflows · Base model Other
So I though what if I just give it a list of locations, leg wear, top wear, colours, texture patterns, light types and effects, ambient?
And so here it is the solution .
TIP: Set your KSampler seed to random , click the arrow next to RUN and select " instant ", press RUN and go for a walk or to work. Come back to hundreds of images to chose from 😉
Using the new ComfyUI Subgraph feature I built a system where it will randomly pick clothes, makeup, expression, etc from a list.
The above image is the provided workflow.
1 - I added a Save Image Node so that you can save your prompts as well as all is randomly generated you wont get the same prompt when you reload a image into comfy.
2 - The tool was built with the intention of generating pictures for a model , so in the top text box where it says Pre, that's where you would write your model's identity, like trigger word, hair colour, etc. For the images I am sharing here, I simply used "1 woman".
3 - The buttons will turn on/off generation for what they mean. SFW and NSFW will will trigger different lists of actions and also be used for logic of what to wear in different settings.
4 - The box at the end where it says Post is whatever you want to go after the generation. Typically this is where you can write the style of the composition, like anime, realistic, and cameras, Cannon, phone, etc
5 - To use simple copy and paste the node into an existing workflow and connect the prompt output to a text encoder positive.
Enter the subgraph to edit the lists.
You can edit this lists by entering the Subgraph clicking twice on it or by clicking on the top right icon.
Once inside the subgraph look for the section depicted in the image above .
Its all the lists you can alter.
If you feel adventurous check the code and change that to your will 😉
All the images I am showing here where done with all the buttons ON and "1 Woman" in the pre prompt, for some models I turned off SFW and clothes to be able to generate NSFW content, Krea wasn't having it though 🤣🤣
Send me some love and I'll release other versions, hope you like and use it and ask/suggest away, I'll answer when I can.
V1.0 added seed control for recall!
V1.1 bug fix: solved issue of regenerating even when the seed was the same!
V1.2
I noticed that for V1.1 the colour variation has stopped, this is due to the seed being locked and the same for all nodes, in version 1.2 I added colour and pattern variation sliders.
V2.0
Added Hair styles and 2 separate ( Optional ) nodes that separate the lists from the main subgraph and are broken up into 2 main categories, General and Character .
These 2 nodes where created so you can change characters and environment by simply plugin them into the main subgraph. Each character may have different styles of clothes, hair, colours, etc so I though it could be handy to have the system broken up.
Although these nodes are optional, if not plugged in, it will default to the lists it contains.
Here are a few examples on how you could use them, but these are just copies of the other 2.
Simple copy/paste or Alt+Drag a lists node, enter the subgraph and change it to your needs.
As keep using it on a daily basis I will probably release more versions but for now I think we good 😉
V2.1
Bug fix: Fixed a node that was giving error in the console.
Removed the lists from the main subgraph, the subgraph is now dependant of them.
Created a node with the combined lists for easy access.
V3.0
About this version
Changed the colour of the groups to no colour so it wouldn't interfere with workflows that have groups bypasser/muter based on colours
Added Bra types (And a node to show how to update your existing lists)
Changed SFW and NSFW to a probability slider
Changed most buttons to a slider that controls probability (0 = off, 100 = always on)
Added my SDXL tests workflow so you can see it in action
Added a negative post prompt and its output
The tests workflow has a detailer, high-res fix, face detailer and hand detailer, so you can use it for generations, maybe add an upscale at the end.
V3.1
Fixed clothed <> Lingerie Slider has it was inverted
Fixed Bra input
Added separate seeds for character and environment to be able to change one or the other
Geschätzter VRAM Bedarf
Schätzung nicht verfügbar
63,9 MB über 1 von 7 Modell-Dateien. Gesamtmodell-Dateien + 25% Ladeaufwand + 2 GB Ausführungs-Puffer, aufgerundet.
Anforderungen
21 AnforderungenUpscaler · 63.9 MB · PT · Unknown
Object Detector · Hugging Face · bbox/face_yolov8m.pt
Object Detector · Hugging Face · bbox/hand_yolov8s.pt
Upscaler · Registry · ComfyUI_UltimateSDUpscale
lustifySDXLNSFW_oltONELASTTIME.safetensors
Nicht aufgelöstCheckpoint · Unknown
sam_vit_b_01ec64.pth
KonfliktSegmentation · Unknown
Checkpoint · Hugging Face · stabilityai/stable-diffusion-xl-base-1.0
Mögliche Quellen
ComfyMath
MöglichKnotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
Knotenpaket · Registry
was-ns
Nicht aufgelöstKnotenpaket · Registry