alfredplpl
commited on
Commit
•
679f9d3
1
Parent(s):
01d30f9
Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,10 @@ language:
|
|
6 |
- en
|
7 |
tags:
|
8 |
- art
|
|
|
|
|
9 |
base_model: black-forest-labs/FLUX.1-dev
|
|
|
10 |
---
|
11 |
|
12 |
# Modern Anime LoRA Adapter for FLUX.1 dev
|
@@ -15,14 +18,13 @@ base_model: black-forest-labs/FLUX.1-dev
|
|
15 |
|
16 |
## Usage
|
17 |
- diffusers
|
18 |
-
1.
|
19 |
-
2. Run the script:
|
20 |
```python
|
21 |
import torch
|
22 |
from diffusers import FluxPipeline, FluxTransformer2DModel
|
23 |
|
24 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
25 |
-
|
26 |
pipe=pipe.to("cuda")
|
27 |
|
28 |
prompt = "modern anime style, An anime girl holding a sword. She is wearing school uniform. She is saying \"Hello World\" with the speech bubble."
|
@@ -39,7 +41,7 @@ image = pipe(
|
|
39 |
).images[0]
|
40 |
image.save("flux-dev.png")
|
41 |
```
|
42 |
-
|
43 |
![flux-dev](flux-dev.jpg)
|
44 |
|
45 |
- ComfyUI
|
@@ -91,4 +93,4 @@ batch_size = 4
|
|
91 |
[[datasets.subsets]]
|
92 |
image_dir = '/mnt/NVM/flux_lora'
|
93 |
metadata_file = 'flux_lora.json'
|
94 |
-
```
|
|
|
6 |
- en
|
7 |
tags:
|
8 |
- art
|
9 |
+
- lora
|
10 |
+
- diffusers
|
11 |
base_model: black-forest-labs/FLUX.1-dev
|
12 |
+
library_name: diffusers
|
13 |
---
|
14 |
|
15 |
# Modern Anime LoRA Adapter for FLUX.1 dev
|
|
|
18 |
|
19 |
## Usage
|
20 |
- diffusers
|
21 |
+
1. Run the script:
|
|
|
22 |
```python
|
23 |
import torch
|
24 |
from diffusers import FluxPipeline, FluxTransformer2DModel
|
25 |
|
26 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
27 |
+
pipeline.load_lora_weights('alfredplpl/flux.1-dev-modern-anime-lora', weight_name="modern-anime-lora_diffusers.safetensors")
|
28 |
pipe=pipe.to("cuda")
|
29 |
|
30 |
prompt = "modern anime style, An anime girl holding a sword. She is wearing school uniform. She is saying \"Hello World\" with the speech bubble."
|
|
|
41 |
).images[0]
|
42 |
image.save("flux-dev.png")
|
43 |
```
|
44 |
+
2. Get the following image:
|
45 |
![flux-dev](flux-dev.jpg)
|
46 |
|
47 |
- ComfyUI
|
|
|
93 |
[[datasets.subsets]]
|
94 |
image_dir = '/mnt/NVM/flux_lora'
|
95 |
metadata_file = 'flux_lora.json'
|
96 |
+
```
|