ShibaDeveloper commited on
Commit
33f0666
·
1 Parent(s): e39cbbf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -12,4 +12,24 @@ widget:
12
  example_title: example 1girl
13
  ---
14
 
15
- # Olivia V1.0 Beta
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  example_title: example 1girl
13
  ---
14
 
15
+ # Olivia V1.0
16
+
17
+ ยินดีต้อนรับสู่ Olivia V1.0 โมเดลนี้เป็นเพียงแค่การสาธิต และอยู่ในช่วงระหว่างการทดสอบเท่านั้น!
18
+
19
+ ## 🧨 Diffusers
20
+
21
+ โมเดลนี้สามารถใช้งานได้เหมือนกับโมเดล Stable Diffusion อื่นๆ [คลิกเพื่ออ่านเพิ่มเติม](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion)
22
+
23
+ ```python
24
+ from diffusers import StableDiffusionPipeline
25
+ import torch
26
+
27
+ model_id = "ShibaDeveloper/olivia-v1.0"
28
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
29
+ pipe = pipe.to("cuda")
30
+
31
+ prompt = "1girl, beautiful girl, face, yellow eyes, blue hair"
32
+ image = pipe(prompt).images[0]
33
+
34
+ image.save("./olivia_img.png")
35
+ ```