File size: 1,162 Bytes
64c3a60
 
c88cfa1
 
 
 
 
 
 
 
64c3a60
c88cfa1
 
 
 
 
 
 
 
 
 
 
 
 
28c6b99
 
c88cfa1
 
 
 
5a98f33
c88cfa1
 
 
5a98f33
c88cfa1
 
b3c82f4
5a98f33
b3c82f4
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
license: apache-2.0
datasets:
- svjack/pokemon-blip-captions-en-zh
language:
- zh
library_name: diffusers
tags:
- stable-diffusion
- lora
---
# Model Card for souljoy/sd-pokemon-model-lora-zh

## Installation 
```bash
pip install -U diffusers
pip install transformers
```

## Usage 
```python
from diffusers import StableDiffusionPipeline
import torch

pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Anime-Chinese-v0.1", torch_dtype=torch.float16)
model_path = "souljoy/sd-pokemon-model-lora-zh"

pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")

prompt = "粉色的蝴蝶"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image

prompt = "可爱的狗"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image

prompt = "漂亮的猫"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
```
![](https://huggingface.co/souljoy/sd-pokemon-model-lora-zh/resolve/main/sd1.png)
![](https://huggingface.co/souljoy/sd-pokemon-model-lora-zh/resolve/main/sd2.png)
![](https://huggingface.co/souljoy/sd-pokemon-model-lora-zh/resolve/main/sd3.png)