souljoy commited on
Commit
c88cfa1
1 Parent(s): 64c3a60

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md CHANGED
@@ -1,3 +1,40 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - svjack/pokemon-blip-captions-en-zh
5
+ language:
6
+ - zh
7
+ library_name: diffusers
8
+ tags:
9
+ - stable-diffusion
10
+ - lora
11
  ---
12
+ # Model Card for souljoy/sd-pokemon-model-lora-zh
13
+
14
+ ## Installation
15
+ ```bash
16
+ pip install -U diffusers
17
+ pip install transformers
18
+ ```
19
+
20
+ ## Usage
21
+ ```python
22
+ from diffusers import StableDiffusionPipeline
23
+ import torch
24
+
25
+ pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1", torch_dtype=torch.float16)
26
+ model_path = "svjack/pokemon-sd-lora-zh"
27
+
28
+ pipe.unet.load_attn_procs(model_path)
29
+ pipe.to("cuda")
30
+ pipe.safety_checker = lambda images, clip_input: (images, False)
31
+ print("have_load")
32
+
33
+ prompt = "粉色的蝴蝶。"
34
+ image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
35
+ image
36
+
37
+ prompt = "黄色的巨石机器人"
38
+ image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
39
+ image
40
+ ```