How to create your own sticker pack using the Stable Diffusion neural network
![](https://habrastorage.org/getpro/habr/upload_files/e9b/6c6/f25/e9b6c6f255861de9abcf7c83d51bd923.png)
Did you know that you don't have to be a designer to create your own beautiful sticker pack?
Today I will tell the story of the creation of mine sticker pack from 20+ stickers With mine character named Evelynn using neural networks. You don't need a powerful video card or even Photoshop(In most cases): I'll show you how to do all this directly in the browser. This is a simple, accessible and free way to create unique stickers, even a kettle can handle it, I hope it's already boiled, let's get started!
![My Evelynn Sticker Pack My Evelynn Sticker Pack](https://habrastorage.org/getpro/habr/upload_files/e2c/06c/fbc/e2c06cfbcf5ad4ce2470ae2d62f33bf9.png)
Making stickers is a creative endeavor, and methods, which I will show, Can easily combineto speed up and simplify processes.
I'll start by telling you about all the necessary tools, and then I'll move on to the process of creating stickers, showing each step with examples. You'll see how easy it is to bring your ideas to life using the Stable Diffusion neural network and available online services.
Why not Midjourney? Because in Stable Diffusion you can more flexible control the final result of generation, on the go correct the shortcomingssuch as fingers or any details. But recently it has been possible right there get rid of backgroundwithout leaving the interface. If you are afraid of SD, then it is in vain, because it is not complicated at all.
ArtGeneration
![Artgeneration.me interface Artgeneration.me interface](https://habrastorage.org/getpro/habr/upload_files/949/302/107/9493021073979982aadd2d036fe0de65.png)
If I didn't have a video card and needed a cool online image generation service, then this would definitely be artgeneration.me.
Just recently they implemented the ability to add LoRA (these are small models for specific tasks) and brought in my favorite XL model – animapencil XL.
The service is free, but there is a daily limit on generations. But I made it for you referral linkaccording to which you will receive week of PRO accountalthough even after a week the functionality is sufficient for us.
RunDiffusion
![RunDiffusion Service RunDiffusion Service](https://habrastorage.org/getpro/habr/upload_files/de0/366/bca/de0366bca2d2b3abf91333da18894e32.png)
Generative AI in the cloud. The service is paid, from 50 rubles per hour. Personally, I have not had time to use it yet, but there is a choice: Automatic1111 or Fooocus. If you are not familiar with the Automatic1111 interface or have never encountered image generation before, then I recommend you choose Fooocus if you decide to go with this service. There is no difference between them, except for the interface, and Fooocus has a much clearer one.
![](https://habrastorage.org/getpro/habr/upload_files/813/d15/f77/813d15f77bc3107a5926f5ffdec3adf8.png)
Fooocus locally
![Fooocus Interface Fooocus Interface](https://habrastorage.org/getpro/habr/upload_files/7bf/9a6/988/7bf9a6988b9e18031a47d66049871841.png)
If you are a lucky owner of an NVIDIA video card with more than 8 GB of video memory, then congratulations, you can install the Fooocus interface locally!
To install the original Fooocus, go to link on GitHub and click on >>> Click here to download <<<.
Unpack the archive into any convenient folder without Cyrillic in the name.
![](https://habrastorage.org/getpro/habr/upload_files/bef/935/afd/bef935afd70990c8df2ecb4cf8b2fbff.png)
Next we see the following picture:
![](https://habrastorage.org/getpro/habr/upload_files/117/0ba/826/1170ba826b17532c8f37000670d3c555.png)
Don't go into details, just run run.bat. The necessary files will be downloaded and Fooocus will be ready to work.
Forge Interface
![](https://habrastorage.org/getpro/habr/upload_files/32e/48a/e25/32e48ae257a8a43d151cf0884e9a7c80.png)
If you are an experienced user, you can use Forge, especially since now it is possible to generate images on a transparent background. I have not tried it with stickers, but if you are interested, I recommend you take a look Forge video from my friend Nerual Dreming. I will tell and show everything on the Fooocus interface, and if you are well versed in Forge, you can easily adapt my advice for it.
Everything I will tell you further can be applied to each of the services.
Preparing for work
![](https://habrastorage.org/getpro/habr/upload_files/c28/903/d28/c28903d282e6935692f5dcd7db0c27d8.png)
At this stage we make blanks for future stickers. I use the model animagineXLbut later tried on animapencilXL and I like both of them very much. Well, from LoRA we will only need Redmond Stickers.
Oh yeah, I forgot to tell you what's what!
If you already know the Fooocus interface, then proceed to step 1.
Models or checkpoints – trained neural network models. The models have an understanding of the appearance of a wide range of objects, such as people, fauna, buildings, and more.
I divide models into realistic, cartoon, anime models and everything else.
LoRA – these are small models. If large checkpoints are needed to draw a wide range of objects, then LoRA is needed for specific objects, styles, characters, etc.
That's very briefly. Just repeat after me and over time you'll understand what is responsible for what.
Above I have listed the models that we will use. CivitAI you will be able to find all sorts of models for every taste and color. I know that you will want to experiment and use something different, so pay attention to the Base Model item. You need models with SDXL 1.0 architecture.
![](https://habrastorage.org/getpro/habr/upload_files/68e/495/e27/68e495e2724463cc77bcb676fdc9965c.png)
We download models and LoRA and send them to the root folder Fooocus>models>checkpoints or loras.
![](https://habrastorage.org/getpro/habr/upload_files/429/295/8a5/4292958a50306e3f847dda7670281daf.png)
That's it! Let's restart the interface via run.bat.
The following window will open in your browser:
![](https://habrastorage.org/getpro/habr/upload_files/b6e/d1a/300/b6ed1a3004f24b16f03357a14308b548.png)
We press Advanced and a menu appears on the right. This is what we need.
On the left bottom we see the Prompt window and the gray Generate button. In the window we enter the request, i.e. what we want to see on the image.
A quick tour of the interface:
![](https://habrastorage.org/getpro/habr/upload_files/3e4/f6d/b64/3e4f6db643fc96c15610a49408955ea3.png)
All we need from the first tab at first is:
Resolution – as the name suggests, the resolution of your image. I recommend setting it to 1024×1024 and not worrying about it.
Image Number – the number of output images. Optimally 4.
Negative Prompt – what should not be in the image is entered into this window.
![](https://habrastorage.org/getpro/habr/upload_files/585/3a4/762/5853a4762b727323174f2abd995edc12.png)
Styles. For stickers, uncheck all the boxes, they will only get in the way.
![](https://habrastorage.org/getpro/habr/upload_files/d94/bc5/5e1/d94bc55e1771c594df9b2df4e7384677.png)
The models and LoRA that we already know. We select what we downloaded and set it up as in the screenshot (you can move it around and set it up to your taste, but these are the best parameters that I have deduced).
![](https://habrastorage.org/getpro/habr/upload_files/4e9/e98/37d/4e9e9837d63a83930ca2cb66f90ba3c4.png)
In the Advanced tab, set the following parameters. The rest is not needed.
We've briefly gone over the interface, but if you give it a lot of pluses, I'll tell you more about the interface, and which parameter is responsible for what. Within the framework of this guide, it will all take a very long time.
Step 1. Generate stickers
![](https://habrastorage.org/getpro/habr/upload_files/0fe/420/c26/0fe420c26d1f6e53723249c9fcf92d8a.png)
Stickers should have a simple prompt (text request). But you should put the most important features of the character and his appearance in it. Here's what I used:
sticker, simple background, pretty beautiful 1girl with short white hair, hair buns, white t-shirt, freckles, blue eyes, __Emotion, pose__
At the end, I always included a description of the emotion or pose, which is the most important thing in the sticker. Below I have collected what I used, I had to sort through, some poses or emotions in English are called differently than I expected:
Emotions:
light smile / light smirk – smiling / with a smirk
Smirk – an evil grin
angry, irritated, – angry, irritated
surprised expression, amazed, open mouth – surprised
one eye closed, winking, – winking
serious – serious
crying, sad – sad, with tears
embarassed, confused, – embarrassed
focused on – focused on an object
Gestures:
thumb up – “like” gesture
showing thumb with his hand – points a finger at the viewer
waving her/his palm – waving her hand, greeting
heart shaped hands (you will need AwyHandHeartXL, weight 0.8) – heart shaped hands
saluting – saluting
hands on head – holds head
shrugging – to shrug one's shoulders
I often had to google sites with the names of anime emotions:
![](https://habrastorage.org/getpro/habr/upload_files/0ad/fe5/5eb/0adfe55eb9d06b0ef393dffc841d512b.png)
The point is that you shouldn't always trust the translator, I often additionally google the translation of a word or expression into English. Well, I use DeepL as a translator.
Let's start.
sticker, simple background, pretty beautiful 1girl with short white hair, hair buns, white t-shirt, freckles, blue eyes, waving her palm
The negative query I used was:
bad quality, bad anatomy, worst quality, poor quality, monochrome, low quality, low resolution, blurry, blur, watermark, lowres ugly, disfigured, duplicate, mutated, bad art, blur, blurry, dof
The resolution I mostly used was either 1024×1024 or 768×1280.
LoRA weight – 1.4.
![](https://habrastorage.org/getpro/habr/upload_files/2a8/024/5fd/2a80245fd41eb933f3e445a55548124d.png)
The most successful is the fourth picture. It does not need to be expanded, the background turned out white, as I intended. We will use the fourth, sometimes the background may not turn out as in the first options, in this case just increase the weight of the white background (select the white background in the prompt and press ctrl + up arrow).
![](https://habrastorage.org/getpro/habr/upload_files/23d/c66/e60/23dc66e60cbcdc62cf1a4074d8a7eb24.png)
Next, I improve the eyes and face, removing artifacts using the Inpainting tool.
![](https://habrastorage.org/getpro/habr/upload_files/2b2/35d/444/2b235d444a831b2e6413011a86d679f1.png)
I drag the image into the window and draw a mask, first selecting the eyes.
Inpainting has three modes:
Inpaint – standard mode. Most often I use it to correct hands/remove artifacts, etc.
Improve – a mode for increasing the detail of individual parts of the image (face, eyes, hands, clothes, etc.)
Modify – used to add objects, change background, etc.
This is in general terms, in fact, each uses a different denoising strength and inpaint model. But in this article we will not go into too much detail.
![](https://habrastorage.org/getpro/habr/upload_files/b83/4a3/926/b834a392662862cf1b74e4a831919f7e.png)
I select the eyes. I recommend using hotkeys in the Inpainting window:
![](https://habrastorage.org/getpro/habr/upload_files/0a2/0f9/429/0a20f94299c9192015b008456b5a1f14.png)
![](https://habrastorage.org/getpro/habr/upload_files/34f/0ba/e11/34f0bae1171c07f73f98980aafee457a.png)
Most often I use ready-made template hints below.
We generate.
![](https://habrastorage.org/getpro/habr/upload_files/466/305/761/46630576164fb5bec3417f8129bdf49c.png)
Left – eyes after Improve Inpainting – more details and saturation.
Now let's remove all unnecessary things and artifacts, switch to the classic Inpaint mode.
![](https://habrastorage.org/getpro/habr/upload_files/35d/b3c/df3/35db3cdf3f69158645402b5cbb4b07fe.png)
Here's what we get in the end: I don't do Upscale, because Telegram itself has a limitation on uploading stickers of 512×512 pixels. Instead, I do Improve Inpaint on the eyes, face, and clothes one by one. Later in the article, I'll show how I added a print of my logo to a T-shirt.
Let's give a couple more examples and move on to the next step.
![](https://habrastorage.org/getpro/habr/upload_files/862/e34/a0c/862e34a0c609323d088e8730578f81d2.png)
sticker, simple background, pretty beautiful 1girl with short white hair, saluting, one eye closed, hair buns, white t-shirt, freckles, blue eyes
The first option is the best one. Let's work on it.
First, let's use Outpaint – expand the image to the right. To do this, switch to Inpaint and select the classic Inpaint or Outtaint Method. And select the expansion to the left.
![](https://habrastorage.org/getpro/habr/upload_files/fb9/9fe/ef6/fb99feef6dd17c58a04745b4adfce57b.png)
Great, now the left hand is completely visible. We do the same: clean the artifacts and then Improve Inpaint.
Lifehack: if a print from a T-shirt or something else just won't go away, try leaving the Prompt field empty, in this case it helped
![](https://habrastorage.org/getpro/habr/upload_files/b86/506/d23/b86506d2322965bc6b365f5d04aab039.png)
Here I tried the following query using the “shy fingers” construct:
sticker, white background, pretty beautiful 1girl with short white hair, shy fingers, confused, hair buns, white t-shirt, freckles, blue eyes
![](https://habrastorage.org/getpro/habr/upload_files/49a/c2d/b9f/49ac2db9f802c4898c826bf0c8c9fa73.png)
![](https://habrastorage.org/getpro/habr/upload_files/c38/112/b9d/c38112b9ddab6ecb6a70eb13b92a023a.png)
Or let's make a sad emotion:
![](https://habrastorage.org/getpro/habr/upload_files/a41/90c/6a0/a4190c6a08128547ef04e7dbd5499ab4.png)
I think the approach is clear. The main thing is a bright emotion that we achieve through a request.
Let's move on to the next step.
Step 2. Finalizing the sticker
First, you need to remove the background. This can be done in two ways.
Method 1. For the lazy.
We just use online services, here are the ones I used:
![](https://habrastorage.org/getpro/habr/upload_files/fce/2ef/f5f/fce2eff5fe7d7c8d73572750706e52e1.png)
I'll say right away that the edges aren't always smooth, and the hair on female characters isn't always cut out correctly. But often everything is clear, and after outlining it won't be particularly noticeable.
But, for nerds like me, there is a second way. And it flows smoothly into the next micro-stage.
Load our future sticker into Photoshop. Double-click to remove the lock in the layers.
![](https://habrastorage.org/getpro/habr/upload_files/0cb/7cc/bb4/0cb7ccbb455c12f2a44029e6aa560d9e.png)
Next, take the mouse and select the “Pen” tool.
![](https://habrastorage.org/getpro/habr/upload_files/69b/1ab/9ec/69b1ab9ecaedb1eb82d92d7174bd6de8.png)
And we start to outline our tian. It is “a little” longer than removing the background through an online service, but it is a classic and reliable method.
![](https://habrastorage.org/getpro/habr/upload_files/702/429/f1d/702429f1d673ac6a3676c72082a64fd0.png)
Also, in the latest versions of Photoshop there is a function “Remove background”, I noticed it only now, it works quite well, all that remains is to clean up the artifacts:
![](https://habrastorage.org/getpro/habr/upload_files/407/40a/f01/40740af01623b2d5f66d5ed6b1d414b2.png)
![](https://habrastorage.org/getpro/habr/upload_files/00d/920/21f/00d92021fa742da38d7c95537192b985.png)
But I will show you what to do if you have an older version.
After you have selected the outline, click on the selection. Don't worry if you have small “white” areas left, they can be cleaned up in the same way.
![](https://habrastorage.org/getpro/habr/upload_files/fa5/761/ff1/fa5761ff1163b03e6372245b10c1ba0f.png)
![](https://habrastorage.org/getpro/habr/upload_files/83a/7af/496/83a7af496d5a1875e9ba967f74618d46.png)
I usually set the blending to 3-4, but you can also adjust it by eye using “Refine Edge”.
![](https://habrastorage.org/getpro/habr/upload_files/20c/719/ebb/20c719ebb975b13d6722e32877c9e5ac.png)
And there will be a panel on the right. We configure everything to taste.
Next, simply return to the image and press Ctrl + X to cut out the tangle.
![](https://habrastorage.org/getpro/habr/upload_files/f71/33d/b27/f7133db2757d91b7dfa69a8beb1c6fc1.png)
In the “Layers” window, add a new one and move the character onto it. Done, you've gotten rid of the background!
We cut out the remaining pieces using the pen and selection in the same way.
The next step is adding a stroke. It can also be done online using various services, but I will continue working in Photoshop.
![](https://habrastorage.org/getpro/habr/upload_files/fa1/962/7b7/fa19627b7ce53108f6abde55db50c614.png)
Right-click on the image layer – blending options
![](https://habrastorage.org/getpro/habr/upload_files/004/6e1/2bb/0046e12bb4268d74522f3de6c3251ffd.png)
![](https://habrastorage.org/getpro/habr/upload_files/922/5a5/ee8/9225a5ee83e5ebf45e0be32ae3b78d70.png)
We need a stroke and a shadow.
We make a white outline on the outside, I advise you to make the same outline size on all stickers, just remember the number.
![](https://habrastorage.org/getpro/habr/upload_files/9be/d12/986/9bed1298666b0dfc868ef95da60fd291.png)
It is not necessary to make a very noticeable shadow, this one is quite enough
![](https://habrastorage.org/getpro/habr/upload_files/797/4ab/9ce/7974ab9ceb30c6598daadca2f7293f74.png)
The text remains. It depends on the situation. If it is needed in the sticker, add it. I used this this one a selection of popular meme fonts. You can use any to your taste or not use it.
I also add a small shadow and a black outline to the text for readability.
Next, we need to adjust the resolution so that Telegram accepts the sticker.
The resolution is 512×512 and the maximum size is 512 KB.
In Photoshop, click Image – Image Size. Set to 512×512.
![](https://habrastorage.org/getpro/habr/upload_files/e20/207/3d4/e202073d4852091e86e257f164bacb31.png)
He promised to show how to place a print on a T-shirt.
1. Using a pen, outline the item (in this case, a T-shirt). Not the entire thing, but the area where the print will be.
2. Select the area.
3. Next, use “Refine Edge” and sliders to taste.
![](https://habrastorage.org/getpro/habr/upload_files/d7b/171/e26/d7b171e26663264fd8b25dc6ffbee3d0.png)
4. Copy the selected item to a new layer and remove the stroke and shadow effects (click on the eye):
![](https://habrastorage.org/getpro/habr/upload_files/e69/167/319/e691673193cee50708691bd35c04db3c.png)
5. CTRL + J. Duplicate the layer with the T-shirt.
6. CTRL + G. Create a group from the copied layer (click on it first):
![](https://habrastorage.org/getpro/habr/upload_files/235/371/d65/235371d65cbb20ed5018fb4a19d46085.png)
7. Click on the layer in the group and create a “Levels” adjustment layer:
![](https://habrastorage.org/getpro/habr/upload_files/213/866/fb4/213866fb4aca7b2ebbf8aee3a3bdb1f1.png)
![](https://habrastorage.org/getpro/habr/upload_files/db9/84c/f83/db984cf83e0fe445552a21c1145b2b2f.png)
8. Click the bottom button, which I highlighted with an oval, and adjust the top sliders, increasing the contrast. Make it so that the maximum number of folds are visible.
![](https://habrastorage.org/getpro/habr/upload_files/89a/be3/186/89abe31867b95f8119858b3fb0d68658.png)
9. Switch to the bottom layer with the T-shirt and transfer the logo. Right mouse button – create a clipping mask
![](https://habrastorage.org/getpro/habr/upload_files/f95/106/f8d/f95106f8dbe5b045835ecaf6b5dd6d7a.png)
10. Switch to the group and select the blending mode “Screen” or “multiply”, whichever is better.
![](https://habrastorage.org/getpro/habr/upload_files/aa0/3fe/0b2/aa03fe0b2f867ae26ba61cc55e7f6c42.png)
We get the following result. Now Evelynn has the average salary in Russia. The logo looks more natural, highlights are visible, it is better than just transferring the image and leaving it as is.
![](https://habrastorage.org/getpro/habr/upload_files/07c/332/e4a/07c332e4a1dca09f7de57fdac9e4a7b7.png)
You can also play with perspective, etc.
Let's get back to the stickers. After adjusting the file size and weight, save it in PNG format:
![](https://habrastorage.org/getpro/habr/upload_files/339/7ed/d0b/3397edd0bcd15a3cfcadd03a61a4ed10.png)
And we upload it to the Telegram bot Stickers. This is the official Telegram bot.
![](https://habrastorage.org/getpro/habr/upload_files/119/872/c34/119872c34ff6cd25558dfc96759109c9.png)
Select the /newpack command to create a new sticker pack.
Next, we enter the name of the sticker pack and upload our first sticker.
![](https://habrastorage.org/getpro/habr/upload_files/0dd/5dd/deb/0dd5dddeb0dd1f3c253bc48e3b6d6fbb.png)
![](https://habrastorage.org/getpro/habr/upload_files/eb8/ed8/c31/eb8ed8c31d363d3deadd96d298a70465.png)
Don't forget to uncheck “Compress image”
![](https://habrastorage.org/getpro/habr/upload_files/042/1c9/d5b/0421c9d5ba37caeb76b18cdfd9ee2cca.png)
Next, send 1 to 3 smileys that match the sticker.
![](https://habrastorage.org/getpro/habr/upload_files/894/4f4/cc1/8944f4cc1f627eb2b88ffa034a3f70a2.png)
Done. Sticker added! Repeat the process until you get bored 🙂
As you can see, it is not difficult at all to create your own sticker set from scratch, thanks to this article, you now know how!
Use mine sticker set with Evelynnfollow me on Telegram and add folder with our channels on neural networks, good luck with your generations!