mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 06:48:12 +00:00
810 B
810 B
Download Models
Download the pre-set models. Model IDs can be found in config file.
from diffsynth import download_models
download_models(["FLUX.1-dev", "Kolors"])
To download non-pre-set models, you can choose models from either the ModelScope or HuggingFace sources.
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")