wanghaofan
commited on
Commit
•
050515e
1
Parent(s):
487ea42
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,9 @@ tags:
|
|
4 |
- stable-diffusion
|
5 |
- lora
|
6 |
- diffusers
|
7 |
-
-
|
|
|
|
|
8 |
widget:
|
9 |
- text: mkym this is made of wool, close up of a gundam robot
|
10 |
output:
|
@@ -20,19 +22,51 @@ instance_prompt: mkym this is made of wool
|
|
20 |
license: other
|
21 |
license_name: flux-1-dev-non-commercial-license
|
22 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
|
|
|
|
|
|
23 |
---
|
24 |
# FLUX.1-dev-LoRA-MiaoKa-Yarn-World
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<Gallery />
|
27 |
|
28 |
|
29 |
## Trigger words
|
30 |
|
31 |
-
You should use `mkym this is made of wool` to trigger the image generation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
|
|
33 |
|
34 |
-
|
35 |
|
36 |
-
Weights for this model are available in Safetensors format.
|
37 |
|
38 |
-
|
|
|
|
4 |
- stable-diffusion
|
5 |
- lora
|
6 |
- diffusers
|
7 |
+
- image-generation
|
8 |
+
- flux
|
9 |
+
- safetensors
|
10 |
widget:
|
11 |
- text: mkym this is made of wool, close up of a gundam robot
|
12 |
output:
|
|
|
22 |
license: other
|
23 |
license_name: flux-1-dev-non-commercial-license
|
24 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
25 |
+
language:
|
26 |
+
- en
|
27 |
+
library_name: diffusers
|
28 |
---
|
29 |
# FLUX.1-dev-LoRA-MiaoKa-Yarn-World
|
30 |
|
31 |
+
This is a LoRA (MiaoKa-Yarn-World) trained on FLUX.1-dev by [MIAOKA](https://www.shakker.ai/userpage/bbe5dd5bb87d4daf9733b9ac27892ee4/publish) for creating wool yarn art. It is capable of producing intricate and realistic woolen textures and patterns while maintaining high performance.
|
32 |
+
|
33 |
+
<div class="container">
|
34 |
+
<img src="./poster.jpg" width="1024"/>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
## Showcases
|
38 |
<Gallery />
|
39 |
|
40 |
|
41 |
## Trigger words
|
42 |
|
43 |
+
You should use `mkym this is made of wool` to trigger the image generation. The recommended scale is `0.8` to `1.0` in diffusers.
|
44 |
+
|
45 |
+
|
46 |
+
## Inference
|
47 |
+
|
48 |
+
```python
|
49 |
+
import torch
|
50 |
+
from diffusers import FluxPipeline
|
51 |
+
|
52 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
53 |
+
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-MiaoKa-Yarn-World", weight_name="FLUX-dev-lora-MiaoKa-Yarn-World.safetensors")
|
54 |
+
pipe.fuse_lora(lora_scale=1.0)
|
55 |
+
pipe.to("cuda")
|
56 |
+
|
57 |
+
prompt = "mkym this is made of wool, sports car"
|
58 |
+
|
59 |
+
image = pipe(prompt,
|
60 |
+
num_inference_steps=24,
|
61 |
+
guidance_scale=3.5,
|
62 |
+
).images[0]
|
63 |
+
image.save(f"example.png")
|
64 |
+
```
|
65 |
|
66 |
+
## Online Inference
|
67 |
|
68 |
+
You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/bde5721eb17a457c85cc2fffefc0a390?from=feed), where we provide an online interface to generate images.
|
69 |
|
|
|
70 |
|
71 |
+
## Acknowledgements
|
72 |
+
This model is trained by our copyrighted users [MIAOKA](https://www.shakker.ai/userpage/bbe5dd5bb87d4daf9733b9ac27892ee4/publish). We release this model under permissions. The model follows [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|