adieyal / comfyui-dynamicprompts

ComfyUI custom nodes for Dynamic Prompts
MIT License
187 stars 20 forks source link

YAML not working? #25

Open gobshyte opened 9 months ago

gobshyte commented 9 months ago

I'm trying to get YAML files working, and it seems to kind of work, but in a lot of cases I am not getting any randomisation at all, it will consistently pick exactly the same prompt from some of the nesting. Has anyone else got YAML working properly?

As an example, I'm trying to use the Billions of Scifi Characters presets from CivitAi, with this prompt

BoCharsScifi/female/classic

Which changes (within the YAML) to:

BoCharsScifi/female/classic, scifi/lighting, scenes-scifi/*

Running it three times, I got these three prompts:

female AI rights advocate, Aliens- Extraterrestrial creatures with unique physiologies, varying from humanoid to bizarre forms., Adolescence, Agile, African, Amber eyes, Asymmetrical Ears, Angular Nose, Cleft Chin, Angular Jaw, Angular Cheeks, Angular Forehead, Diamond face shape, Articulate Fingers, Birthmarks, Ash Blonde Asymmetrical haircut hair, Admiration, Asserting control over a fascinating and unfamiliar alien life form., Bio-Mechanical Wings- Graceful wings with metallic feathers, fusing technology and biology in perfect harmony. wearing Aqua AR Capris, Aqua AR Blazer, AR Ankle Boots, AR Baseball Cap, AR Watch , Asserting control over a fascinating and unfamiliar alien life form., AI-controlled cities- Dynamic lights responding to AI algorithms and needs., AI-generated art and literature indistinguishable from human works

female AI rights advocate, Aliens- Extraterrestrial creatures with unique physiologies, varying from humanoid to bizarre forms., Adolescence, Agile, African, Amber eyes, Asymmetrical Ears, Angular Nose, Cleft Chin, Angular Jaw, Angular Cheeks, Angular Forehead, Diamond face shape, Articulate Fingers, Birthmarks, Ash Blonde Asymmetrical haircut hair, Admiration, Asserting control over a fascinating and unfamiliar alien life form., Bio-Mechanical Wings- Graceful wings with metallic feathers, fusing technology and biology in perfect harmony. wearing Aqua AR Capris, Aqua AR Blazer, AR Ankle Boots, AR Baseball Cap, AR Watch , Asserting control over a fascinating and unfamiliar alien life form., AI-controlled cities- Dynamic lights responding to AI algorithms and needs., AI-guided mechs and autonomous defense systems

female AI rights advocate, Aliens- Extraterrestrial creatures with unique physiologies, varying from humanoid to bizarre forms., Adolescence, Agile, African, Amber eyes, Asymmetrical Ears, Angular Nose, Cleft Chin, Angular Jaw, Angular Cheeks, Angular Forehead, Diamond face shape, Articulate Fingers, Birthmarks, Ash Blonde Asymmetrical haircut hair, Admiration, Asserting control over a fascinating and unfamiliar alien life form., Bio-Mechanical Wings- Graceful wings with metallic feathers, fusing technology and biology in perfect harmony. wearing Aqua AR Capris, Aqua AR Blazer, AR Ankle Boots, AR Baseball Cap, AR Watch , Asserting control over a fascinating and unfamiliar alien life form.

The ONLY difference between these, is the first two prompts had the following appended to them, otherwise they are identical and no randomization has happened:

, AI-controlled cities- Dynamic lights responding to AI algorithms and needs., AI-generated art and literature indistinguishable from human works

, AI-controlled cities- Dynamic lights responding to AI algorithms and needs., AI-guided mechs and autonomous defense systems

Seed was set to increment, if it even matters as there is no seed input?

gobshyte commented 9 months ago

(note there were correct __ in the prompts, markup here has removed them)

gobshyte commented 9 months ago

I just tried exactly the same prompt with exactly the same files in the A1111 extension and it works fine in there.

925-Studio commented 8 months ago

I'm facing the same problem. I have a simple yaml file called animial.yaml, it includes only 3 animals which are 'cat', 'dog', 'monkey'. Everytime I tried to run a batch of generations (let's say 4), the results stick with only one animal. A1111 picks the animal randomly but ComfyUI won't.

By the way, can you please tell me how did you extract the png info in ComfyUI? I'm still green with this. Thank you.

adieyal commented 7 months ago

@gobshyte @925-Studio Could you send me example yaml files so that I can test them?

925-Studio commented 7 months ago

@gobshyte @925-Studio Could you send me example yaml files so that I can test them?

wildcards.zip Here you go. Thank you for your efforts.

gobshyte commented 7 months ago

@925-Studio see here re: image save https://www.reddit.com/r/StableDiffusion/comments/159pwg1/how_to_save_comfyui_workflow_as_an_image/ exiftools is also handy for some things

925-Studio commented 7 months ago

@925-Studio see here re: image save https://www.reddit.com/r/StableDiffusion/comments/159pwg1/how_to_save_comfyui_workflow_as_an_image/ exiftools is also handy for some things

This is helpful, thanks a lot!