Nishitbaria
commited on
Commit
•
793baed
1
Parent(s):
593fcfd
Update README.md
Browse files
README.md
CHANGED
@@ -1,46 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
-
license: other
|
3 |
-
license_name: flux-1-dev-non-commercial-license
|
4 |
-
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
5 |
-
language:
|
6 |
-
- en
|
7 |
-
tags:
|
8 |
-
- flux
|
9 |
-
- diffusers
|
10 |
-
- lora
|
11 |
-
- replicate
|
12 |
-
base_model: "black-forest-labs/FLUX.1-dev"
|
13 |
-
pipeline_tag: text-to-image
|
14 |
-
# widget:
|
15 |
-
# - text: >-
|
16 |
-
# prompt
|
17 |
-
# output:
|
18 |
-
# url: https://...
|
19 |
-
instance_prompt: animexl
|
20 |
-
---
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
|
|
|
|
|
25 |
|
26 |
-
|
|
|
|
|
27 |
|
28 |
-
|
29 |
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
You should use `animexl` to trigger the image generation.
|
33 |
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
from diffusers import AutoPipelineForText2Image
|
39 |
-
import torch
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
```
|
45 |
|
46 |
-
|
|
|
1 |
+
# AnimeXL - Fine-Tuned Model on Anime Style Images
|
2 |
+
|
3 |
+
This LoRA (Low-Rank Adaptation) is fine-tuned using **200+ anime-style images** and trained over **2500 steps** to produce high-quality anime-style image generations. Use the trigger word **`animexl`** in your prompts for optimal results.
|
4 |
+
|
5 |
+
## Features
|
6 |
+
- **Specialized for Anime Style:** Generates images with vibrant and detailed anime-style aesthetics.
|
7 |
+
- **Fine-tuned with 200+ Images:** Offers exceptional performance for anime-themed prompts.
|
8 |
+
- **Efficient and Flexible:** Works seamlessly with the 🧨 `diffusers` library.
|
9 |
+
|
10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
+
## How to Use
|
13 |
+
This LoRA is designed to be used with the **🧨 `diffusers` library** in Python. Below is an example to help you get started:
|
14 |
+
|
15 |
+
### Code Example
|
16 |
+
```python
|
17 |
+
from diffusers import AutoPipelineForText2Image
|
18 |
+
import torch
|
19 |
+
|
20 |
+
# Load the base model
|
21 |
+
pipeline = AutoPipelineForText2Image.from_pretrained(
|
22 |
+
'black-forest-labs/FLUX.1-dev',
|
23 |
+
torch_dtype=torch.float16
|
24 |
+
).to('cuda')
|
25 |
+
|
26 |
+
# Load the LoRA weights
|
27 |
+
pipeline.load_lora_weights('Nishit2411/AnimeXL', weight_name='lora.safetensors')
|
28 |
|
29 |
+
# Generate an image
|
30 |
+
prompt = "animexl a warrior in a futuristic city"
|
31 |
+
image = pipeline(prompt).images[0]
|
32 |
|
33 |
+
# Save or display the image
|
34 |
+
image.save("output.png")
|
35 |
+
```
|
36 |
|
37 |
+
---
|
38 |
|
39 |
+
## Trigger Words
|
40 |
+
To achieve the best results, include **`animexl`** in your prompts. For example:
|
41 |
+
- `"animexl a magical girl in a serene forest"`
|
42 |
+
- `"animexl a futuristic city with anime characters"`
|
43 |
|
44 |
+
---
|
|
|
45 |
|
46 |
+
## Advanced Usage
|
47 |
+
For additional techniques like:
|
48 |
+
- **Weighting prompts**
|
49 |
+
- **Merging and fusing multiple LoRAs**
|
50 |
|
51 |
+
Refer to the official [diffusers documentation on loading LoRAs](https://huggingface.co/docs/diffusers/using-diffusers/lora).
|
52 |
|
53 |
+
---
|
|
|
|
|
54 |
|
55 |
+
## About AnimeXL
|
56 |
+
AnimeXL is a finely-tuned model created to enhance creativity and cater to anime-style generation enthusiasts. Developed using **Replicate's LoRA Trainer** at:
|
57 |
+
[LoRA Trainer](https://replicate.com/ostris/flux-dev-lora-trainer/train).
|
|
|
58 |
|
59 |
+
Let your imagination flow with AnimeXL! 🎨
|