Guohua-Diffusion / README.md
wangyulong's picture
Update README.md
9851729
|
raw
history blame
1.87 kB
---
license: creativeml-openrail-m
tags:
- stable-diffusion
- text-to-image
---
# Guohua Diffusion
This is the fine-tuned Stable Diffusion model trained on traditional Chinese paintings.
Use **guohua style** in your prompts for the effect.
## Sample Image
#### Movie Poster
![example1](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00153-3658571220-The%20Godfather.png)
![example2](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00154-4015390414-The%20Good%2C%20the.png)
![example3](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00155-1867813294-The%20Dark%20Knig.png)
![example4](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00156-1959061564-The%20Matrix%2C%20m.png)
#### Others
![example5](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00150-3324682214-Eiffel%20Tower_.png)
![example6](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00151-2218634510-Parthenon%20in_.png)
![example7](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00152-3141223696-Moai%20in%20guohu.png)
![example8](https://huggingface.co/Langboat/Guohua-Diffusion/resolve/main/00157-4056777947-Luxor%20Temple_.png)
## How to use
#### WebUI
Download the `guohua.ckpt` in model files.
#### Diffusers
This model can be used just like any other Stable Diffusion model. For more information,
please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
```python
#!pip install diffusers transformers scipy torch
from diffusers import StableDiffusionPipeline
import torch
model_id = "Langboat/Guohua-Diffusion"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "The Godfather poster in guohua style"
image = pipe(prompt).images[0]
image.save("./the_god_father.png")
```