Skip to content

alx/api-call-matrix

Repository files navigation

API-Call-Matrix

Test many prompts against many StableDiffusion A1111 server inference params.

docs/screenshot.png

Usage

Install

git clone https://github.com/alx/api-call-matrix.git
cd api-call-matrix

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Static web server

Full workflow

./gen_serve.sh

Open browser: http://127.0.0.1:1313

Step-by-step

python3 ./gen_images.py
python3 ./gen_content.py
hugo server

Flask web server

python3 flask_server.py

Editable runs

config.json

global params

"content_root": "./content/",
"results_root": "./static/img/results/",
"sources_root": "./static/img/sources/",

"api": {
    "host": "127.0.0.1",
    "port": 7860
},
"base64_placeholder": "base64_img_placeholder",

"save_content": true,
"save_json": true,

"runs": [],
"prompts": [],

run params

"slug_id": "3d-model-spiderman",

"enabled": true,

"positive": "spiderman",
"negative": "pig",

prompt params

"slug_id": "sdxl_fast_lcm_canny_openpose_instantID",

"enabled": true,
"forced": false,

"positive": "anime",
"negative": "deformed",

"params": { /sd_ui_api_params/ }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published