1lint
commited on
Commit
·
514dba3
1
Parent(s):
38f12b5
initial commit
Browse files- README.md +24 -0
- config.json +31 -0
- diffusion_pytorch_model.safetensors +3 -0
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
---
|
2 |
license: openrail
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: openrail
|
3 |
---
|
4 |
+
|
5 |
+
VAE for anime style checkpoints
|
6 |
+
|
7 |
+
Converted pastel-waifu-diffusion.vae.pt in https://huggingface.co/andite/pastel-mix to diffusers format.
|
8 |
+
|
9 |
+
Example usage
|
10 |
+
```
|
11 |
+
from diffusers import AutoencoderKL, StableDiffusionPipeline
|
12 |
+
import torch
|
13 |
+
|
14 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
15 |
+
pretrained_model_name_or_path='andite/anything-v4.0',
|
16 |
+
vae = AutoencoderKL.from_pretrained('lint/anime_vae')
|
17 |
+
)
|
18 |
+
|
19 |
+
for component in pipe.components.values():
|
20 |
+
if hasattr(component, 'device'):
|
21 |
+
component.to('cuda', torch.float16)
|
22 |
+
|
23 |
+
out = pipe('1girl, blue eyes')
|
24 |
+
out.images[0]
|
25 |
+
|
26 |
+
```
|
27 |
+
|
config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_diffusers_version": "0.14.0.dev0",
|
4 |
+
"_name_or_path": "anime_vae",
|
5 |
+
"act_fn": "silu",
|
6 |
+
"block_out_channels": [
|
7 |
+
128,
|
8 |
+
256,
|
9 |
+
512,
|
10 |
+
512
|
11 |
+
],
|
12 |
+
"down_block_types": [
|
13 |
+
"DownEncoderBlock2D",
|
14 |
+
"DownEncoderBlock2D",
|
15 |
+
"DownEncoderBlock2D",
|
16 |
+
"DownEncoderBlock2D"
|
17 |
+
],
|
18 |
+
"in_channels": 3,
|
19 |
+
"latent_channels": 4,
|
20 |
+
"layers_per_block": 2,
|
21 |
+
"norm_num_groups": 32,
|
22 |
+
"out_channels": 3,
|
23 |
+
"sample_size": 256,
|
24 |
+
"scaling_factor": 0.18215,
|
25 |
+
"up_block_types": [
|
26 |
+
"UpDecoderBlock2D",
|
27 |
+
"UpDecoderBlock2D",
|
28 |
+
"UpDecoderBlock2D",
|
29 |
+
"UpDecoderBlock2D"
|
30 |
+
]
|
31 |
+
}
|
diffusion_pytorch_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d55443a2d9d4d9decdbe669c51cc6d91eb6a2297477624e2e16a3054f30c2f5a
|
3 |
+
size 334643276
|