File size: 4,274 Bytes
f3ad865
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: other
license_name: bespoke-lora-trained-license
license_link: https://multimodal.art/civitai-licenses?allowNoCredit=True&allowCommercialUse=Image&allowDerivatives=True&allowDifferentLicense=False
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- template:sd-lora
- migrated
- emoji
- style
- sdxl style lora

base_model: stabilityai/stable-diffusion-xl-base-1.0
instance_prompt: emoji
widget:
- text: 'The girl with a pearl earring emoji '
  
  output:
    url: >-
      2467682.jpeg
- text: 'The girl with a pearl earring emoji '
  
  output:
    url: >-
      2467684.jpeg
- text: 'The girl with a pearl earring flat '
  
  output:
    url: >-
      2467685.jpeg
- text: 'The girl with a pearl earring flat '
  
  output:
    url: >-
      2467686.jpeg
- text: 'American gothic emoji '
  
  output:
    url: >-
      2467688.jpeg
- text: 'American gothic emoji '
  
  output:
    url: >-
      2467690.jpeg
- text: 'American gothic flat '
  
  output:
    url: >-
      2467697.jpeg
- text: 'American gothic flat '
  
  output:
    url: >-
      2467698.jpeg
- text: 'Gal Gadot as wonderwoman flat '
  
  output:
    url: >-
      2487283.jpeg
- text: 'Gal Gadot as wonderwoman emoji '
  
  output:
    url: >-
      2487284.jpeg
- text: 'Gal Gadot as wonderwoman emoji flat '
  
  output:
    url: >-
      2487282.jpeg
- text: 'Gal Gadot as wonderwoman emoji '
  
  output:
    url: >-
      2487280.jpeg
- text: 'Gal Gadot as wonderwoman emoji '
  
  output:
    url: >-
      2487281.jpeg
- text: 'Gal Gadot as wonderwoman flat '
  
  output:
    url: >-
      2487285.jpeg

---

# SDXL Emoji LoRA 

<Gallery />



([CivitAI](https://civitai.com/models/144245))

## Model description

<p>A small (&lt;30 MB) rank 4 LoRA for SDXL which can help you style your images as Emojis.</p><p>It can make "Regular 3D emojis" or "Flat emojis"</p><h3 id="heading-7"><span style="color:rgb(250, 82, 82)">Please see the LoRA weight scale &lt;-&gt; Trigger word chart below, before using this model</span></h3><p><strong>This model is very sensitive to having the correct LoRA weight scaling per Trigger word (Not to be confused with Guidance scale)</strong></p><p></p><p>I intended for the trigger words "Emoji" and "Flat" to be mutually exclusive. So when "Emoji" is part of your prompt, do not have "Flat" in your prompt and vice versa. When you use "Flat", give a LoRA scale of 0.7-0.8. Alternatively, if you chose "Emoji" to be in your prompt, give a lower LoRA scale of 0.2-0.5.<br /><br /> In the Showcase you can see various prompts examples by pressing the little (i) icon. <br />For example:<br />"Gal Gadot as wonderwoman flat &lt;lora:SDXL-Emoji-Lora-r4:0.7&gt;"<br />Which has "Gal Gadot as wonderwoman" as the prompt "flat" as the trigger word and 0.7 as the LoRA scale</p><p>In the image below, the same seed was used. Also the same basic prompt. What changed is the "Trigger" word and the "LoRA weight scale"</p><p></p><p><img src="https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/4249127a-6674-4d1c-bf87-c2645f81d458/width=525/4249127a-6674-4d1c-bf87-c2645f81d458.jpeg" /></p><p><strong>Note that in order to get a proper result, you need to have a relatively low LoRA weight scale for the "Emoji" style (In the 0.2-0.5 range) and for the "Flat" style you would want a higher weight scale (In the 0.7-0.8 range)</strong></p><p></p>

## Trigger words
You should use `emoji`, `flat` to trigger the image generation.
    

## Download model

Weights for this model are available in Safetensors format.

[Download](/Norod78/sdxl-emoji-lora/tree/main) them in the Files & versions tab.

## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)

```py
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('Norod78/sdxl-emoji-lora', weight_name='SDXL-Emoji-Lora-r4.safetensors')
image = pipeline('Gal Gadot as wonderwoman flat ').images[0]
```

For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)