@@ -136,10 +136,10 @@ def get_vae_config(name: str):
136136 elif name in ["dc-ae-f32c32-in-1.0" , "dc-ae-f32c32-mix-1.0" ]:
137137 config = {
138138 "latent_channels" : 32 ,
139- "encoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " ],
139+ "encoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " ],
140140 "block_out_channels" : [128 , 256 , 512 , 512 , 1024 , 1024 ],
141141 "encoder_layers_per_block" : [0 , 4 , 8 , 2 , 2 , 2 ],
142- "decoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " ],
142+ "decoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " ],
143143 "decoder_layers_per_block" : [0 , 5 , 10 , 2 , 2 , 2 ],
144144 "decoder_norm" : ["bn2d" , "bn2d" , "bn2d" , "rms2d" , "rms2d" , "rms2d" ],
145145 "decoder_act" : ["relu" , "relu" , "relu" , "silu" , "silu" , "silu" ],
@@ -151,23 +151,23 @@ def get_vae_config(name: str):
151151 "ResBlock" ,
152152 "ResBlock" ,
153153 "ResBlock" ,
154- "EViT_GLU " ,
155- "EViT_GLU " ,
156- "EViT_GLU " ,
157- "EViT_GLU " ,
158- "EViT_GLU " ,
154+ "EfficientViTBlock " ,
155+ "EfficientViTBlock " ,
156+ "EfficientViTBlock " ,
157+ "EfficientViTBlock " ,
158+ "EfficientViTBlock " ,
159159 ],
160160 "block_out_channels" : [128 , 256 , 512 , 512 , 1024 , 1024 , 2048 , 2048 ],
161161 "encoder_layers_per_block" : [0 , 4 , 8 , 2 , 2 , 2 , 2 , 2 ],
162162 "decoder_block_type" : [
163163 "ResBlock" ,
164164 "ResBlock" ,
165165 "ResBlock" ,
166- "EViT_GLU " ,
167- "EViT_GLU " ,
168- "EViT_GLU " ,
169- "EViT_GLU " ,
170- "EViT_GLU " ,
166+ "EfficientViTBlock " ,
167+ "EfficientViTBlock " ,
168+ "EfficientViTBlock " ,
169+ "EfficientViTBlock " ,
170+ "EfficientViTBlock " ,
171171 ],
172172 "decoder_layers_per_block" : [0 , 5 , 10 , 2 , 2 , 2 , 2 , 2 ],
173173 "decoder_norm" : ["bn2d" , "bn2d" , "bn2d" , "rms2d" , "rms2d" , "rms2d" , "rms2d" , "rms2d" ],
@@ -176,10 +176,10 @@ def get_vae_config(name: str):
176176 elif name in ["dc-ae-f64c128-in-1.0" , "dc-ae-f64c128-mix-1.0" ]:
177177 config = {
178178 "latent_channels" : 128 ,
179- "encoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " ],
179+ "encoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " ],
180180 "block_out_channels" : [128 , 256 , 512 , 512 , 1024 , 1024 , 2048 ],
181181 "encoder_layers_per_block" : [0 , 4 , 8 , 2 , 2 , 2 , 2 ],
182- "decoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " , "EViT_GLU " ],
182+ "decoder_block_type" : ["ResBlock" , "ResBlock" , "ResBlock" , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " , "EfficientViTBlock " ],
183183 "decoder_layers_per_block" : [0 , 5 , 10 , 2 , 2 , 2 , 2 ],
184184 "decoder_norm" : ["bn2d" , "bn2d" , "bn2d" , "rms2d" , "rms2d" , "rms2d" , "rms2d" ],
185185 "decoder_act" : ["relu" , "relu" , "relu" , "silu" , "silu" , "silu" , "silu" ],
0 commit comments