adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.05k stars 266 forks source link

Don'y know how to use .json wildcard #650

Closed Autantpourmoi closed 7 months ago

Autantpourmoi commented 1 year ago

hi, and thanks for this great extension . i'm able to use .txt wildcard quite easely , but i did download some .json wildcard , put them in the wildcard dir inside the extension but nothing happen , can't find them in wilcards manager any help will be greatly appreciated thanks

akx commented 1 year ago

What files did you download in particular?

ema7569 commented 10 months ago

yaml worked for me after I created a file .yaml in wildcards folder, the thing is very exigent with syntax. This is an example what the file must contain. You need to respect the spaces, tab are not authorized. Read the yaml specs.

xBasicColor:
  [
    "black", "brown", "pink", "red", "yellow", 
    "purple", "magenta", "cyan","gray","blue","orange","green"
  ]
xTwoTone:
  [
    "two tones, black and red",
    "two tones, black and yellow",
    "two tones, black and pink",
    "two tones, Black and White",
    "two tones, Black and Blue",
 ]