Commit
·
8e5d7d8
1
Parent(s):
ed99b96
Update README.md
Browse files
README.md
CHANGED
@@ -4,10 +4,29 @@ tags:
|
|
4 |
- text-to-image
|
5 |
- stable-diffusion
|
6 |
---
|
7 |
-
|
8 |
|
|
|
9 |
|
10 |
-
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
|
|
4 |
- text-to-image
|
5 |
- stable-diffusion
|
6 |
---
|
7 |
+
# Olivia-v1.0
|
8 |
|
9 |
+
ยินดีต้อนรับสู่ Olivia-v1.0
|
10 |
|
11 |
+
### Olivia-v1.0 ได้รับการฝึกฝนโดย ShibaDeveloper
|
12 |
|
13 |
+
## 🧨 Diffusers
|
14 |
+
|
15 |
+
โมเดลนี้สามารถใช้งานได้เหมือนกับโมเดล Stable Diffusion อื่นๆ สำหรับข้อมูลเพิ่มเติม,
|
16 |
+
โปรดดูที่นี่ [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
|
17 |
+
|
18 |
+
```python
|
19 |
+
from diffusers import StableDiffusionPipeline
|
20 |
+
import torch
|
21 |
+
|
22 |
+
model_id = "ShibaDeveloper/olivia-v1-0"
|
23 |
+
branch_name= "diffusers"
|
24 |
+
|
25 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, revision=branch_name, torch_dtype=torch.float16)
|
26 |
+
pipe = pipe.to("cuda")
|
27 |
+
|
28 |
+
prompt = "pikachu"
|
29 |
+
image = pipe(prompt).images[0]
|
30 |
+
|
31 |
+
image.save("./pikachu.png")
|
32 |
|