
# Model Card for svjack/concept-caption-3m-sd-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-Chinese-v0.1", torch_dtype=torch.float16)
model_path = "svjack/concept-caption-3m-sd-lora-zh"

pipe.unet.load_attn_procs(model_path)
pipe.to("cuda")
pipe.safety_checker = lambda images, clip_input: (images, False)
print("have_load")

prompt = "一只快乐的狗。"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image
```

![0](https://raw.githubusercontent.com/svjack/ControlLoRA-Chinese/main/imgs/zh_huppy_dog.png)
{"language": ["zh"], "library_name": "diffusers", "tags": ["stable-diffusion", "lora"]}
diffusers stable-diffusion lora zh region:us
TAGS
#diffusers #stable-diffusion #lora #zh #region-us 


# Model Card for svjack/concept-caption-3m-sd-lora-zh

## Installation 


## Usage 


!0
# Model Card for svjack/concept-caption-3m-sd-lora-zh ## Installation ## Usage 


!0
TAGS
#diffusers #stable-diffusion #lora #zh #region-us 
 # Model Card for svjack/concept-caption-3m-sd-lora-zh ## Installation ## Usage 


!0
TAGS
#diffusers #stable-diffusion #lora #zh #region-us 
# Model Card for svjack/concept-caption-3m-sd-lora-zh## Installation## Usage 


!0