Instructions to use alfredplpl/sd-0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alfredplpl/sd-0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alfredplpl/sd-0", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ license: openrail++
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# はじめに
|
| 6 |
-
このモデルは
|
| 7 |
|
| 8 |
sdxl_0.safetensorsはU-Netを0に置き換えています。プログラムは次のとおりです。
|
| 9 |
|
|
@@ -21,3 +21,5 @@ with safe_open("/path/to/sd_xl_base_1.0.safetensors", framework="pt", device=0)
|
|
| 21 |
|
| 22 |
save_file(tensors, "/path/to/sdxl_0.safetensors")
|
| 23 |
```
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# はじめに
|
| 6 |
+
このモデルはStable Diffusionを0から作りたい人のモデルです。どこから作るかは個々人にお任せします。
|
| 7 |
|
| 8 |
sdxl_0.safetensorsはU-Netを0に置き換えています。プログラムは次のとおりです。
|
| 9 |
|
|
|
|
| 21 |
|
| 22 |
save_file(tensors, "/path/to/sdxl_0.safetensors")
|
| 23 |
```
|
| 24 |
+
|
| 25 |
+
このファイルを[sd-scripts](https://github.com/kohya-ss/sd-scripts)でファインチューンをしてください。学習率は2e-5がおすすめです。
|