Implement VAE for new backend

This commit is contained in:
layerdiffusion
2024-07-29 22:26:32 -06:00
parent e6e18f7edb
commit 9cb69baf9f
5 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{
"_class_name": "AutoencoderKL",
"act_fn": "silu",
"block_out_channels": [
128,
256,
512,
512
],
"down_block_types": [
"DownEncoderBlock2D",
"DownEncoderBlock2D",
"DownEncoderBlock2D",
"DownEncoderBlock2D"
],
"in_channels": 3,
"latent_channels": 4,
"layers_per_block": 2,
"norm_num_groups": 32,
"out_channels": 3,
"sample_size": 512,
"up_block_types": [
"UpDecoderBlock2D",
"UpDecoderBlock2D",
"UpDecoderBlock2D",
"UpDecoderBlock2D"
]
}