File size: 5,657 Bytes
582199e c4e7f37 efa4c08 c4e7f37 efa4c08 c4e7f37 c4da60a 3f20f0d c4da60a 3f20f0d c4da60a 3f20f0d c4da60a 3f20f0d c4da60a efa4c08 91ba384 efa4c08 5e549d5 efa4c08 5e549d5 efa4c08 5e549d5 efa4c08 5e549d5 efa4c08 5e549d5 efa4c08 91ba384 efa4c08 7bd5a32 050f146 7bd5a32 efa4c08 7bd5a32 efa4c08 7bd5a32 efa4c08 c4da60a 7bd5a32 efa4c08 c4e7f37 efa4c08 c4da60a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
---
license: openrail
---
# 2d pixel art (beta) embedding for SD 2.0 768px
Hi - I am a big fan of retro/nostalgia things.
This is the reason why I made this embedding.
I have trained it on 70 images, the version I will be targeting in upcoming weeks will be based on 128 or 256 well-selected and filtered images, and processed
through pixelate tool to keep the same pixel size on each of the input data. This should improve the embedding dramatically.
**Images:**
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/lVqWhmx.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/eMZvUTY.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/fyGB10h.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/SJGs2nD.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/R7t1zrG.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/rLyeX7J.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/9eOUMiD.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/bfknB8t.png">
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/3bXwXMh.png">
</div>
### Installation:
Just drop the embedding files (.pt extension) to your SD embeddings folder (`your-folder/embeddings`).
Restart the app if running. Use the keyword as a filename ("pixelart" for example). You can rename them as you wish.
Before we start: cool tool to enhance your results even further: [link](https://giventofly.github.io/pixelit/#tryit)
**Version of Stable Diffusion:** `2.0 - 768`
**Supported diffusers:**
- Euler a (Preffered)
- DDIM
- other (partially)
### Embeddings
**pixelart:**
The most generic one. Usually gives decent pixels, reads quite well prompts, is not to "old-school".
Used for "pixelating process" in img2img.
**pixelart-soft:**
The softer version of an embedding. One of the most generic ones.Usually good for characters.
**pixelart-hard:**
More pixelated version of embedding. Vintage/old-school. Depends on the topic - can be colorful or very vintage/dull.
**pixelart-1 & pixelart-2:**
less generic ones. These sometimes give even better results than original (depends on topic, tags and diffuser)
**pixelizer:**
Fun but chaotic one. Good for some experiments but usually gives colorful 8-bit like pixelated platformers/game screens stuff.
I have left that one for experiments or as a factor for combination with other ones.
### Usage
I highly recommend use these embeddings with `Euler a` diffuser. It will give usually best results. In some cases it would be
good to use negative prompts. Sometimes for testing if you caught good composition/colors - you might add or remove them
to impact the image.
**negative prompt**:
Recommend this negative to test stuff when you get bad results:
"3d, 3d render, disfigured, kitsch, ugly, oversaturated, grain, low-res, Deformed, blurry, bad anatomy,
disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry,
floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, disgusting,
poorly drawn, childish, mutilated, mangled, old, surreal"
If you have too much pixelated/chaotic output - add (all or some):
"grid, Tetris, tetris blocks, mosaic, mosaic, pixelated, pixel art"
### Img2img
The embeddings give you a great opportunity to change some of your works into pixel ones.
The best way to do it is to follow this process:
First get your subject. If this is a simple image as:
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/ks4bpSV.png">
</div>
Here it needed just one step!
What I did here was to use:
**Positive prompt:** "game icon, raven, by pixelart, pixelated" (very important to add pixelated)
**Negative prompt:** none (recommended, but you can of course experiment, especially if subject needs that)
**Sampler:** Euler a (needed for any pixelation)
**steps:** 20,
**CFG:** 7,
**Denoising:** 0.58.
**Resolution:** 768x768.
The result:
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/wErverC.png">
</div>
Of course, the result can be better - you can re-roll to infinity or choose better settings or different embedding than recommended pixelart (in some cases you can try others)
Pixelating photos/more complex images:
This is more tricky - but doable. As a baseline use the above settings,
you can experiment with higher/lower CFG or denoising. To keep likeness I don't recommend you to go over 0.6 denoising.
Replace the first part of the prompt with a simple description, at the end should be part: "by/in style pixelart, pixelated"
Probably this will take up to 2-3 rounds. When I like the output - I set it as a base for next iteration. Then I reduce denoising by 0.4 each
extra round.
Of course this is rough process - might be different based on images.
Here are some examples:
Input:
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/l2dGhgH.png">
</div>
Resuts:
<div style="display: flex; flex-direction: row; flex-wrap: wrap">
<img src="https://i.imgur.com/zsrd92w.png">
</div>
I still investigating how to improve on the process. |