---
title: autoencoder_kl_ema
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/autoencoder_kl_ema"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/autoencoder_kl_ema.md"
repository: AI-ModelScope/autoencoder_kl_ema
last_updated: 2024-02-19
license: "Apache License 2.0"
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
library_name:
  - pytorch
frameworks:
  - Pytorch
downloads: 55
stars: 0
---

# autoencoder_kl_ema

> autoencoder_kl_ema - AI-ModelScope 在 ModelScope 开源的模型。模型文件和权重，请浏览“模型文件”页面获取。 您可以通过如下git clone命令，或者ModelScope SDK来下载模型。 Clone with HTTP

AI-ModelScope/autoencoder_kl_ema 是 ModelScope 魔搭社区上的text-to-image-synthesis模型，采用 Apache License 2.0 许可。

- **Repository**: AI-ModelScope/autoencoder_kl_ema
- **License**: Apache License 2.0
- **Tasks**: text-to-image-synthesis
- **Downloads**: 55
- **Stars**: 0
- **Last updated**: 2024-02-19

Source: https://www.modelscope.cn/models/AI-ModelScope/autoencoder_kl_ema

---

###### 模型文件和权重，请浏览“模型文件”页面获取。
###### 您可以通过如下git clone命令，或者ModelScope SDK来下载模型。
###### Clone with HTTP
```
git clone https://www.modelscope.cn/AI-ModelScope/autoencoder_kl_ema.git
```
###### download with modelscope api
```python
from modelscope import snapshot_download
snapshot_download(AI-ModelScope/autoencoder_kl_ema)
```
###### download file
```
from modelscope.hub.file_download import model_file_download
model_file_download(model_id='AI-ModelScope/autoencoder_kl_ema',file_path='autoencoder_kl_ema.pth', cache_dir='/mnt/workspace')
```


#### Autoencoder
Download `stable-diffusion` directory from this [link](https://drive.google.com/drive/folders/1yo-XhqbPue3rp5P57j6QbA5QZx6KybvP?usp=sharing) (which contains image autoencoders converted from [Stable Diffusion](https://github.com/CompVis/stable-diffusion)). 
Put the downloaded directory as `assets/stable-diffusion` in this codebase.
The autoencoders are used in latent diffusion models.
