mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 06:48:12 +00:00
761 B
761 B
下载模型
下载预设模型,模型ID可参考 config file.
from diffsynth import download_models
download_models(["FLUX.1-dev", "Kolors"])
下载非预设模型,可以选择 ModelScope 和 HuggingFace 两个下载源中的模型。
from diffsynth.models.downloader import download_from_huggingface, download_from_modelscope
# From Modelscope (recommended)
download_from_modelscope("Kwai-Kolors/Kolors", "vae/diffusion_pytorch_model.fp16.bin", "models/kolors/Kolors/vae")
# From Huggingface
download_from_huggingface("Kwai-Kolors/Kolors", "vae/diffusion_pytorch_model.fp16.safetensors", "models/kolors/Kolors/vae")