https://github.com/abra5umente/thinkinrock
A playful Python script to automate your Stable Diffusion (auto1111) workflow, waking up the 'thinkin' rock' to generate images for you.
https://github.com/abra5umente/thinkinrock
automatic1111 automation cli-tool generative-ai image-generation python stable-diffusion
Last synced: 19 days ago
JSON representation
A playful Python script to automate your Stable Diffusion (auto1111) workflow, waking up the 'thinkin' rock' to generate images for you.
- Host: GitHub
- URL: https://github.com/abra5umente/thinkinrock
- Owner: abra5umente
- License: mit
- Created: 2025-07-05T08:32:18.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-05T10:32:00.000Z (11 months ago)
- Last Synced: 2025-07-05T10:32:03.627Z (11 months ago)
- Topics: automatic1111, automation, cli-tool, generative-ai, image-generation, python, stable-diffusion
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ThinkinRock
**A Python script to wake up the thinkin' rock (Stable Diffusion via auto1111) and conjure images for you, automatically managing batch launch and close, prompt input, and image saving.**
---
## 🚀 What it does
- Starts auto1111 via .bat if not already running.
- Prompts you for what you want the "rock" to imagine.
- Calls the `txt2img` API on your local auto1111 instance.
- Saves the generated image to your specified folder or the current directory with a timestamped filename.
- Shuts down auto1111 if it wasn't running before.
---
## 🛠 Requirements
- Python 3.11+
- `requests` and `python-dotenv` installed (`pip install -r requirements.txt`)
- A working [Automatic1111 (Stable Diffusion WebUI)](https://github.com/AUTOMATIC1111/stable-diffusion-webui) instance accessible locally.
- A `.env` (example included) file containing optional config overrides:
```env
SAMPLER_NAME="DPM++ 2M SDE"
SCHEDULER_NAME="Karras"
IMAGE_HEIGHT=1024
IMAGE_WIDTH=1024
CFG_SCALE=4.5
AUTO1111_BAT="path\to\your\auto1111\bat\file"
ENVIRONMENT_BAT="path\to\your\auto1111\environment\bat\file"
```
---
## ⚡️ Usage
1️⃣ Clone the repository:
```bash
git clone https://github.com/abra5umente/thinkinrock.git
cd thinkinrock
```
2️⃣ Install dependencies:
```bash
pip install -r requirements.txt
```
3️⃣ Ensure your `.env` file is set up if you want custom values.
4️⃣ Run the conjurer:
```bash
python thinkinrock.py
```
5️⃣ Enter your prompt and watch the rock think.
---
## 🧩 Features to add
- Ability to auto-generate prompts using OpenAI, Gemini, etc
Contributions are welcome via issues and pull requests!
If you found this useful, or cool, or whatever, chuck me a star!
---
## 📜 License
MIT
---