Welcome to the SD Tools, your all-in-one command line interface for interacting with the [AUTOMATIC1111's Stable Diffusion Web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui). This tool brings a robust queue system and a variety of commands t
Welcome to the SD Tools, your all-in-one command line interface for interacting with the AUTOMATIC1111's Stable Diffusion Web UI. This tool brings a robust queue system and a variety of commands to streamline your workflow with Stable Diffusion.
"May the Force be with you."
$3
Our queue system is as versatile as a Jedi Master. With it, you can:
- Load JSON or JS Files: Queue your prompts with ease.
- Control Image Naming: Take charge of your image names with custom formatting.
- Extension Management: Seamlessly handle extensions like ControlNet, Adetailers, MultiDiffusion, Scheduler Assistant, or Cutoff.
- Basic to Advanced Scripting: Whether it's simple JSON scripting or full-blown prompt generation scripts, we've got you covered.
- Permutations Galore: Generate multiple prompts with a single instruction, multiplying parameters like never before.
- Cascading Prompts Files: Share common bases and build upon them effortlessly.
- Automated Behaviors: Trigger actions like Adetailers, ControlNet Poses, and Cutoff tokens automatically.
- And more!: Maybe I'll document it later.
"I'll be back."
$3
Our tool offers several powerful commands to enhance your workflow:
- Rename: Rename images in bulk using generation parameters and custom rules from JSON.
- Extract: Extract prompts from lists of images into text or JSON formats.
- Upscale: Upscale images from a directory using ControlNet Tiles or MultiDiffusion.
- Redraw: Redraw images from a directory with specific styles using ControlNet ip-adapter or Lineart.
"To infinity and beyond!"
$3
1. Ensure nodejs exists (> 18.x):
``bash
node -v
`
2. Install the dependencies:
NPM: `bash
npm install -g @leomaradan/sd-tools
`
YARN: `bash
yarn global add @leomaradan/sd-tools
`
3. Run AUTOMATIC1111 with --api:
Windows
`bash
cd webui-user.bat --api
`
Unix
`bash
cd ./webui.sh --api
`
4. Run the Tool: `bash
./sd-tools init
`
"Why so serious?"
$3
- Queue Command:
`bash
sd-tools queue your_prompts.json
`
Allowed parameters:
- --silent: Do not display anything in the terminal
- --no-log: Don't log the queries output to a file
- --verbose: Display additional information in the terminal
- --simulate: Run the whole process but don't send the queries to the API
- -v, --validate: Only validate the prompts file
- Rename Command:
`bash
sd-tools rename `
Allowed parameters:
- --silent: Do not display anything in the terminal
- --no-log: Don't log the queries output to a file
- --verbose: Display additional information in the terminal
- -c, --config: Configuration file for renaming images.
- -k, --keys: keys to search for. Allowed formats: "key:value" or "key:value1;value2"
- -p, --pattern: Replace pattern
- -t, --test: Test mode
- Extract Command:
`bash
sd-tools extract `
Allowed parameters:
- --silent: Do not display anything in the terminal
- --no-log: Don't log the queries output to a file
- --verbose: Display additional information in the terminal
- -a, --add-before: Add a string before the extracted text. Use | to add multiple texts and generate multiple outputs
- -o, --output: Optional output file. If not provided, the output will be displayed in the terminal
- -r, --recursive: Recursively extract from from sub-directories