bot.py | ||
LICENSE | ||
photo_2023-06-22_15-29-24.jpg | ||
photo_2023-06-22_15-29-27.jpg | ||
README.md |
sd_telegram
telegram bot on aiogram python 3.10.6 to generate images in automatic1111 locally
create bot from BotFather and use token in API_TOKEN
the bot is installed in automatic1111 via extensions or use git clone into C:\stable-diffusion-webui\extensions\sd_telegram
pip install aiogram
pip install webuiapi
pip install transformers
cd C:\stable-diffusion-webui\extensions\sd_telegram\
python bot.py
Commands
start
_SD
__❌ = off, ✅ = on Stable Diffusion
_opt
__sttngs
___change_param
change JSON parameters
img_thumb/img_tg/img_real - little/original from tg/real size from doc
___reset_param
reset to default
__scrpts
___get_lora
get list LORA`s from stable-diffusion-webui/models/Lora
___rnd_mdl
script for generating images for all models in random order, taking into account JSON settings
___rnd_smp
script for generating images for one models with all samplers
__mdl
change model from list
__smplr
change sampler from list
__hr
change hr_upscale from list
__prompt
___random_prompt
get random prompt from GPT2Tokenizer FredZhang7 distilgpt2
___lxc_prompt
get random prompt from lexica.art
_gen
generate images
_skip
skip one or all generations
_help
help
TODO
- use share link (not yet possible, because the API is running in the background)
- uploading Lora from TG
- uploading models from TG (~4gb)
- Logging
- show error in tg
- translate
- Get all files/pictures from the computer for today (preview and seeds)
- Several prompts in one via ;
- Ability to send everything with one command with settings
- Preloading photos when waiting for a long time so that you can skip
- Uploading random.json from export TG channel
TNX
AUTOMATIC1111
API
aiogram
And respect for Santa 🎅
Donations are not needed. Who wants to subscribe to my generations
© Mishgen