Skip to content

ain1084/sd-workbench

Repository files navigation

SD Workbench

SD Workbench is a VS Code extension for managing AUTOMATIC1111 or Forge generation settings as YAML files and executing image generation directly from VS Code.

Consolidate prompts, generation parameters, Dynamic Prompts, and output settings into a single YAML file. Save generation conditions as files and reuse them anytime. Complete the entire workflow—from editing generation settings to running generation—within VS Code.

Screenshot

Quick Start

Requirements

  • VS Code ^1.120.0
  • AUTOMATIC1111 WebUI or Forge WebUI with API enabled
  • sd-dynamic-prompts extension (required only when using prompt: section)

Installation

Install from VS Code Marketplace

  1. Open VS Code
  2. Open the Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "sd-workbench"
  4. Click Install on "SD Workbench"

Or install directly from: VS Code Marketplace - SD Workbench

Configuration

Set these required settings in VS Code:

  • sdWorkbench.sdHost: Your Stable Diffusion WebUI API endpoint
    • Example: http://localhost:7860 (Default)
    • Example: http://host.docker.internal:7860 (Docker)
  • sdWorkbench.wildcardsDirectory: Path to Dynamic Prompts wildcards (only needed if using prompt: section)
    • Example: C:\stable-diffusion-webui\extensions\dynamic_prompts\wildcards

Basic Usage

  1. Create a YAML file with generation settings
  2. Execute SD Workbench: Generate from the command palette
  3. Select a generation to execute
  4. View results in the Webview panel

Simple Example

prompt:
  scene: forest, __lighting__
  
  lighting:
    - sunrise, warm light
    - sunset, golden hour
    - night, moonlight

generations:
  _base:
    steps: 30
    cfg_scale: 7
    seed: -1

  landscape:
    from: _base
    prompt: __scene__
    width: 768
    height: 512
    batch_size: 4

Commands

  • SD Workbench: Generate - Execute a single generation
  • SD Workbench: Generate Multiple - Execute multiple generations in sequence

Configuration

Setting Default Description
sdWorkbench.sdHost http://localhost:7860 Stable Diffusion WebUI API URL
sdWorkbench.wildcardsDirectory "" Dynamic Prompts wildcards directory
sdWorkbench.imageGenerationFolder ${activeYamlFileFolder}/${yamlName}/${generationName} Output folder for generated images

Documentation

For detailed documentation, see the Full Documentation.

Covers:

  • Complete YAML format specification
  • Generation inheritance and metadata
  • Default values and validation constraints
  • All configuration options
  • And more...

License

MIT

About

Stable Diffusion WebUI prompt editor with YAML workflow and Dynamic Prompts support.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors