The app generates random images using AI Stable Diffusion and posts them in Telegram https://t.me/ai_art_random and Twitter https://twitter.com/ai_art_random
Environment variables:
COMMAND_ONLY_MODE
- bot command mode onlyFACE_ENHANCER_ARCH
- face enhancer architectureFACE_ENHANCER_MODEL_PATH
- face enhancer model path for GFPGANFP16
- Use half-precision modelHUGGING_FACE_HUB_TOKEN
- token for Hugging Face for downloading modelsLOW_VRAM
- low video RAM modePREMODERATION
- premoderation mode (post only in turbo chat)PROMPT_MODEL_ID
- Hugging Face model id for promptPROMPT_MODEL_TOKENIZER
- Hugging Face model tokenizer for promptRANDOM_PROMPT_PROBABILITY
- probability of generate full random prompt without ideas (default0.5
)REALESRGAN_MODEL_PATH
- model path for RealESRGANRESOLUTION
- image resolution (default512x512
)SD_MODEL_ID
- Hugging Face model id for Stable DiffusionSD_MODEL_VAE_ID
- Hugging Face model id for Stable Diffusion VAESD_REFINER_ID
- Hugging Face model id for Stable Diffusion XL RefinerSLEEP_TIME
- how many seconds to sleep between generations (default 600s)TELEGRAM_TOKEN
- Telegram bot tokenTELEGRAM_ADMIN_ID
- user ID to manage the botTELEGRAM_CHAT_ID
- chat where images will be sentTELEGRAM_TURBO_CHAT_ID
- chat where images will be sent in turbo modeTURBO_SLEEP_TIME
- how many seconds to sleep between generations in turbo mode (default 60s)TWITTER_CONSUMER_KEY
- Twitter consumer keyTWITTER_CONSUMER_SECRET
- Twitter consumer secretTWITTER_ACCESS_TOKEN
- Twitter access tokenTWITTER_ACCESS_TOKEN_SECRET
- Twitter access token secretUPSCALING
- up to 4x image resolution with Real-ESRGAN (defaulttrue
)
Build and running in docker:
docker build -t ai-art-bot .
docker volume create ai-art-bot_huggingface
docker run --name ai-art-bot -d --env-file .env -v ai-art-bot_huggingface:/root/.cache/huggingface --gpus=all ai-art-bot
Running with docker-compose:
docker-compose up -d