This Python script is insane for AI characters
I don’t know about you, but I’ve spent way too many hours manually generating AI character sets. Switching LoRAs, tweaking prompts, creating folders, separating SFW from NSFW… it’s a total grind.
Well, a fellow builder just dropped a Python script that completely automates this entire workflow using the AUTOMATIC1111 WebUI API. It’s an absolute game-changer for anyone creating consistent characters.
✨ Here’s the magic:
🤖 Automatically handles LoRA switching and applies the right weights.
📂 Creates a clean folder structure for each character, with SFW and NSFW content neatly separated.
📜 Saves all your prompts and character metadata into a handy .json file.
🖼️ Lets you toggle face restoration and HiRes fixes for your batches.
🔒 Runs totally offline with your local Stable Diffusion WebUI setup.
This thing takes all the tedious, repetitive work out of the equation so you can focus on the fun part. It’s perfect for building out influencer-style AI models, testing LoRAs efficiently, or just mass-producing super organized content sets.
The creator made it available in two versions: a script-only option if you’re already set up, and a full portable version that includes everything you need to run it out of the box.
This is a supercharged productivity hack. For the full breakdown, links to the script, and a preview of the output, you’ve got to check out the original post!
I built a python script to auto-generate full AI character sets (SFW/NSFW) with LoRA, WebUI API, metadata + folder structure
byu/Appropriate-Sand-934 in