How I Automated Social Media Sticker Creation: Locally Training a Style LoRA for SD 1.5 on 30 Images
Stability AI
Google/DeepMind
OpenAI
Salesforce
An enthusiast built a controlled pipeline to train a style LoRA on Stable Diffusion 1.5 using 30 hand-picked VK stickers, aiming to create consistent sticker pack preparations. They used a custom trigger token 'vkstckrs' and automated background replacement and captioning with AI-generated Python scripts from Gemini 3.1 Pro and ChatGPT 5.6.
The author faced the problem that generating consistent illustrations for sticker packs with prompt engineering is difficult, so they decided to train a style LoRA on Stable Diffusion 1.5. SD 1.5 was chosen for its low hardware requirements and extensive ecosystem, despite its limitations in understanding complex descriptions. The dataset consisted of 30 stickers manually selected from stickersvk.com, with one sticker per pack to avoid the model memorizing specific characters or authors; images with text, complex poses, or deviating styles were excluded. They used a trigger token 'vkstckrs' to activate learned features during generation. Gemini 3.1 Pro wrote a Python script to replace transparent backgrounds with white and save as JPG, while ChatGPT 5.6 generated captions using BLIP, a pre-trained image captioning model. The author emphasized that the model was trained only for educational purposes, images were deleted after training, and no commercial use is intended.
- Сокращения
- LoRA = Low-Rank Adaptation — низкоранговая адаптация
- SD = Stable Diffusion — стабильная диффузия
- JPG = Joint Photographic Experts Group — формат сжатия изображений
- PNG = Portable Network Graphics — формат графики
- RGBA = Red Green Blue Alpha — красный, зелёный, синий, альфа
- RGB = Red Green Blue — красный, зелёный, синий
- CUDA = Compute Unified Device Architecture — архитектура параллельных вычислений NVIDIA
- MPS = Metal Performance Shaders — графический API Apple
- CPU = Central Processing Unit — центральный процессор
- FP16 = Floating Point 16-bit — полуточное число с плавающей точкой
- FP32 = Floating Point 32-bit — число с плавающей точкой одинарной точности
Source: Habr — хаб ИИ —
original
