模型文件和权重,请浏览“模型文件”页面获取。
您可以通过如下git clone命令,或者ModelScope SDK来下载模型。
Clone with HTTP
git clone https://www.modelscope.cn/AI-ModelScope/autoencoder_kl_ema.git
download with modelscope api
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 (which contains image autoencoders converted from Stable Diffusion).
Put the downloaded directory as assets/stable-diffusion
in this codebase.
The autoencoders are used in latent diffusion models.
评论