Artiprocher
commited on
Commit
•
80bf808
1
Parent(s):
06ab8ca
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,101 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- pytorch
|
5 |
+
- diffusers
|
6 |
+
- text-to-image
|
7 |
---
|
8 |
+
|
9 |
+
# LoRA of Chinese Diffusion Model (2.5D)
|
10 |
+
|
11 |
+
## 简介 Brief Introduction
|
12 |
+
|
13 |
+
我们开源了适配中文 Diffusion 模型 `alibaba-pai/pai-diffusion-artist-large-zh` 的 LoRA,这个 LoRA 可以将模型生成的图像转换成 2.5D 风格。
|
14 |
+
|
15 |
+
We release a LoRA for our Chinese diffusion model `alibaba-pai/pai-diffusion-artist-large-zh`. This LoRA can synthesize images in 2.5D style.
|
16 |
+
|
17 |
+
* Github: [EasyNLP](https://github.com/alibaba/EasyNLP)
|
18 |
+
|
19 |
+
## 使用 Usage
|
20 |
+
|
21 |
+
```python
|
22 |
+
from diffusers import StableDiffusionPipeline
|
23 |
+
|
24 |
+
model_id = "alibaba-pai/pai-diffusion-artist-large-zh"
|
25 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
26 |
+
pipe.unet.load_attn_procs("alibaba-pai/pai-diffusion-artist-large-zh-lora-25D")
|
27 |
+
pipe = pipe.to("cuda")
|
28 |
+
|
29 |
+
prompt = "蓝天,白云,大草原"
|
30 |
+
image = pipe(prompt, cross_attention_kwargs={"scale": 0.4}).images[0]
|
31 |
+
image.save("result.png")
|
32 |
+
```
|
33 |
+
|
34 |
+
## 作品展示 Gallery
|
35 |
+
|
36 |
+
### 样例1 Example1
|
37 |
+
|
38 |
+
日系风景风格 -> 2.5D 风格
|
39 |
+
|
40 |
+
Japanese landscape style -> 2.5D style
|
41 |
+
|
42 |
+
prompt: 蓝天,白云,大草原
|
43 |
+
|
44 |
+
| scale: 0.0 | scale: 0.4 |
|
45 |
+
| - | - |
|
46 |
+
| ![](example1.png) | ![](example1_lora.png) |
|
47 |
+
|
48 |
+
### 样例2 Example2
|
49 |
+
|
50 |
+
写实人像风格 -> 2.5D 风格
|
51 |
+
|
52 |
+
Realistic portrait style -> 2.5D style
|
53 |
+
|
54 |
+
prompt: 抱着猫的少女
|
55 |
+
|
56 |
+
| scale: 0.0 | scale: 0.4 |
|
57 |
+
| - | - |
|
58 |
+
| ![](example2.png) | ![](example2_lora.png) |
|
59 |
+
|
60 |
+
### 样例3 Example3
|
61 |
+
|
62 |
+
写实动物风格 -> 2.5D 风格
|
63 |
+
|
64 |
+
Realistic animal style -> 2.5D style
|
65 |
+
|
66 |
+
prompt: 柴犬,狗
|
67 |
+
|
68 |
+
| scale: 0.0 | scale: 0.4 |
|
69 |
+
| - | - |
|
70 |
+
| ![](example3.png) | ![](example3_lora.png) |
|
71 |
+
|
72 |
+
### 样例4 Example4
|
73 |
+
|
74 |
+
漫画风格 -> 2.5D 风格
|
75 |
+
|
76 |
+
Comic style -> 2.5D style
|
77 |
+
|
78 |
+
prompt: 赛博朋克,霓虹灯,兜帽,黑衣人
|
79 |
+
|
80 |
+
| scale: 0.0 | scale: 0.4 |
|
81 |
+
| - | - |
|
82 |
+
| ![](example4.png) | ![](example4_lora.png) |
|
83 |
+
|
84 |
+
### 样例5 Example5
|
85 |
+
|
86 |
+
中国画风格 -> 2.5D 风格
|
87 |
+
|
88 |
+
Chinese painting style -> 2.5D style
|
89 |
+
|
90 |
+
prompt: 山川,河海,大雁
|
91 |
+
|
92 |
+
| scale: 0.0 | scale: 0.4 |
|
93 |
+
| - | - |
|
94 |
+
| ![](example5.png) | ![](example5_lora.png) |
|
95 |
+
|
96 |
+
## 使用须知 Notice for Use
|
97 |
+
|
98 |
+
使用上述模型需遵守[AIGC模型开源特别条款](https://terms.alicdn.com/legal-agreement/terms/common_platform_service/20230505180457947/20230505180457947.html)。
|
99 |
+
|
100 |
+
If you want to use this model, please read this [document](https://terms.alicdn.com/legal-agreement/terms/common_platform_service/20230505180457947/20230505180457947.html) carefully and abide by the terms.
|
101 |
+
|