Instructions to use Midu/chinese-style-stable-diffusion-2-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Midu/chinese-style-stable-diffusion-2-v0.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Midu/chinese-style-stable-diffusion-2-v0.1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload README.md
Browse files
README.md
CHANGED
|
@@ -41,9 +41,9 @@ Training on 5M chinese style filtered data for 150k steps. Exponential moving av
|
|
| 41 |
|
| 42 |
## <u>Usage</u>
|
| 43 |
|
| 44 |
-
因为使用了
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
```py
|
| 49 |
import torch
|
|
|
|
| 41 |
|
| 42 |
## <u>Usage</u>
|
| 43 |
|
| 44 |
+
因为使用了customized tokenizer, 所以需要优先加载一下tokenizer, 并传入trust_remote_code=True
|
| 45 |
|
| 46 |
+
Customized Tokenizer should be loaded first with 'trust_remote_code=True'.
|
| 47 |
|
| 48 |
```py
|
| 49 |
import torch
|