Update README.md
Browse files
README.md
CHANGED
@@ -45,6 +45,23 @@ tags:
|
|
45 |
|
46 |
3. 打开 ComfyUI,在 负面提示词框内 填入 “embedding:badhandv4” 以触发效果。
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
# Introduction (英文版本)
|
50 |
|
@@ -74,3 +91,19 @@ For ComfyUI User
|
|
74 |
|
75 |
3. Lanuch ComfyUI. Enter "embedding:badhandv4" into the negative prompt box to trigger its effect.
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
3. 打开 ComfyUI,在 负面提示词框内 填入 “embedding:badhandv4” 以触发效果。
|
47 |
|
48 |
+
## Diffusers 管线
|
49 |
+
|
50 |
+
对于 Diffusers 库,您可以通过以下方式加载 Badhandv4:
|
51 |
+
|
52 |
+
```python
|
53 |
+
import torch
|
54 |
+
from diffusers import StableDiffusionPipeline
|
55 |
+
|
56 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
57 |
+
"admruul/anything-v3.0",
|
58 |
+
torch_dtype=torch.float16,
|
59 |
+
).to("cuda")
|
60 |
+
pipe.load_textual_inversion("Eugeoter/badhandv4")
|
61 |
+
image = pipe('best quality, masterpiece, 1girl, open hand, upper body, smile', negative_prompt='<badhandv4>, worst quality, low quality, bad anatomy').images[0]
|
62 |
+
image.show()
|
63 |
+
```
|
64 |
+
|
65 |
|
66 |
# Introduction (英文版本)
|
67 |
|
|
|
91 |
|
92 |
3. Lanuch ComfyUI. Enter "embedding:badhandv4" into the negative prompt box to trigger its effect.
|
93 |
|
94 |
+
## Diffusers Pipeline
|
95 |
+
|
96 |
+
For Diffusers library, you can load Badhandv4 through the following python code:
|
97 |
+
|
98 |
+
```python
|
99 |
+
import torch
|
100 |
+
from diffusers import StableDiffusionPipeline
|
101 |
+
|
102 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
103 |
+
"admruul/anything-v3.0",
|
104 |
+
torch_dtype=torch.float16,
|
105 |
+
).to("cuda")
|
106 |
+
pipe.load_textual_inversion("Eugeoter/badhandv4")
|
107 |
+
image = pipe('best quality, masterpiece, 1girl, open hand, upper body, smile', negative_prompt='<badhandv4>, worst quality, low quality, bad anatomy').images[0]
|
108 |
+
image.show()
|
109 |
+
```
|