sdxl-emoji-lora / README.md
Norod78's picture
Update README.md
9f03632 verified
---
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: flat, emoji
widget:
- 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 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 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)