Coder Social home page Coder Social logo

Comments (2)

poisenbery avatar poisenbery commented on September 26, 2024 2

how do you install this, can you add instructions?

This is a little trick I use whenever there aren't install instructions:

Look at the file/folder structure of the program you're using and compare it to the addon. In this case, the Webui and this repository both have a "Scripts" folder. This would lead me to believe that installing means placing the contents of this repository into the root directory of the webui.

So, first download the repo, then place the contents in the root directory. A more involved method would be copying the contents of the "Scripts" folder from this repo and placing it into the "Scripts" folder of the Webui, then make the "wildcards" folder in the root directory as well. Your scripts folder should have the wildcards.py file inside.

Screenshot (1322)

And the Root Directory should have the 'wildcards' folder
Screenshot (1324)

Next you would want to create the wildcard files themselves. Here is an example one I made for hair length. I have hair lengths on their own lines, and the file is named "hairlength.txt" [I have noticed that spaces in the file name do not work, so I keep the files as 1 word]
Screenshot (1325)

Now, in order to make this work in the Webui, you do a double underscore, then the wildcard file name, then another double underscore. In this case, it would be hairlength
This will cause webui to look at the hairlength.txt file, and pull a random line from that file.

LMK if there is anything else you do not understand.

from stable-diffusion-webui-wildcards.

poisenbery avatar poisenbery commented on September 26, 2024

I think https://github.com/adieyal/sd-dynamic-prompts is the new replacement for this script.

from stable-diffusion-webui-wildcards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.