Upload README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,64 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- text-to-image
|
4 |
+
- lora
|
5 |
+
- diffusers
|
6 |
+
- flux
|
7 |
+
base_model: black-forest-labs/FLUX.1-dev
|
8 |
+
license: creativeml-openrail-m
|
9 |
+
library_name: diffusers
|
10 |
+
---
|
11 |
+
|
12 |
+
# Flux.1-Dev LoRA Adapter Trained on Me
|
13 |
+
|
14 |
+
LoRA Adapter for [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) trained on 22 pictures of ABAII Logo with [ai-toolkit](https://github.com/ostris/ai-toolkit/tree/main)
|
15 |
+
|
16 |
+
# Model Details
|
17 |
+
|
18 |
+
**Some Examples**
|
19 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/MUG%20(1).png" width=512>
|
20 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/MUG%20(2).png" width=512>
|
21 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/MUG%20(3).png" width=512>
|
22 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/MUG%20(4).png" width=512>
|
23 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(1).png" width=512>
|
24 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(2).png" width=512>
|
25 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(3).png" width=512>
|
26 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(4).png" width=512>
|
27 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(5).png" width=512>
|
28 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Man%20(6).png" width=512>
|
29 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Woman%20(1).png" width=512>
|
30 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Woman%20(2).png" width=512>
|
31 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Woman%20(3).png" width=512>
|
32 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/Woman%20(4).png" width=512>
|
33 |
+
<img src="https://huggingface.co/dtthanh/abaii_logo/resolve/main/bag%20(2).png" width=512>
|
34 |
+
|
35 |
+
LoRA was trained with the trigger phrase `with the ABAII logo. The logo features a stylized arrow design in shades of green and blue, with a pixelated effect on the green side. Below the logo, the text reads "ABAII" in bold black letters, followed by "Academy of Blockchain and AI Innovation" in smaller font.`
|
36 |
+
|
37 |
+
# Usage
|
38 |
+
|
39 |
+
With diffusers package
|
40 |
+
*Note: FLUX uses ~70GBvram when loaded directly with diffusers*
|
41 |
+
*Note: Recommended to load at ~70% scale for best results*
|
42 |
+
|
43 |
+
```python
|
44 |
+
from diffusers import DiffusionPipeline
|
45 |
+
|
46 |
+
pipeline = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev")
|
47 |
+
pipeline.load_lora_weights("dtthanh/abaii_v1", weight_name="abaii_v1.safetensors")
|
48 |
+
pipeline.to("cuda")
|
49 |
+
|
50 |
+
prompt = "A photo of a lady wearing a suit and inside a T-shirt with the small ABAII logo at her chest. The small logo features a stylized arrow design in shades of green and blue, with a pixelated effect on the green side. Below the logo, the text reads "ABAII" in bold black letters. The person is sitting at a wooden table, working on a laptop, with books and a notebook nearby. The background includes a bookshelf filled with CDs and a decorative wall."
|
51 |
+
|
52 |
+
out = pipeline(
|
53 |
+
prompt=prompt,
|
54 |
+
guidance_scale=3.5,
|
55 |
+
num_inference_steps=20,
|
56 |
+
cross_attention_kwargs={"scale": 0.7}
|
57 |
+
).images[0]
|
58 |
+
|
59 |
+
out.save("abaiilogo.png")
|
60 |
+
```
|
61 |
+
|
62 |
+
# Additional Details
|
63 |
+
|
64 |
+
Please see base model page [black-forest-labs/FLUX.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev) for all details on appropriate usage, licensing, and more.
|