đ Berenices-Mini-Emoji
This project is a LoRA model for generating emoji images, which can be used in conjunction with the base model to achieve high - quality image generation.
đ Quick Start
Prerequisites
To use this model, you need to set up the environment and load the model correctly. Here is the sample code for setting up the environment:
pipe = StableDiffusionXLPipeline.from_pretrained(
"-------------xxxxxxxxx----------",
torch_dtype=torch.float16,
use_safetensors=True,
)
(or)
-----------------------------------------------------------
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.load_lora_weights("prithivMLmods/Berenices-Mini-Emoji-LoRA", weight_name="emojies.safetensors", adapter_name="emoji")
pipe.set_adapters("emoji")
pipe.to("cuda")
Trigger Prompts
You can use the following trigger prompts to generate different emoji images:
- Smile emoji, 4k
- Cry emoji, 4k
- Love emoji, 4k
Trigger Words
You should use emoji
to trigger the image generation.
⨠Features
- Text - to - Image Generation: Generate high - quality emoji images based on text prompts.
- LoRA Integration: Can be used in conjunction with the base model
stabilityai/stable-diffusion-xl-base-1.0
to improve generation efficiency and quality.
đĻ Installation
No specific installation steps are provided in the original document.
đģ Usage Examples
Basic Usage
Use the trigger prompts mentioned above to generate images. For example, if you want to generate a 4K smile emoji image, you can use the prompt "Smile emoji, 4k".
Advanced Usage
You can adjust the image processing parameters according to your needs to get better results. The following are the image processing parameters used in this project:
Parameter |
Value |
Parameter |
Value |
LR Scheduler |
constant |
Noise Offset |
0.03 |
Optimizer |
AdamW |
Multires Noise Discount |
0.1 |
Network Dim |
64 |
Multires Noise Iterations |
10 |
Network Alpha |
32 |
Repeat |
27 |
Epoch |
15 |
Save Every N Epochs |
1 |
đ Documentation
Image Generation Parameters
Parameter |
Value |
Prompt |
Smile emoji, 4k |
Sampler |
euler |
đ License
This model is licensed under creativeml-openrail-m
.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.