Skip to content

Commit 2c4db6a

Browse files
authored
Update setup_models.py
1 parent 585a16f commit 2c4db6a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/setup_models.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ def main():
1010
ckpt_dir = os.path.join(args.comfy_dir, "models", "checkpoints")
1111
os.makedirs(ckpt_dir, exist_ok=True)
1212

13-
# SDXL base 1.0(需要你 HF 账号已同意模型协议;用 Actions Secret: HF_TOKEN
14-
repo_id = "stabilityai/stable-diffusion-xl-base-1.0"
15-
filename = "sd_xl_base_1.0.safetensors"
13+
# 改用 SD 1.5(4GB 模型,比 SDXL 快 5-8 倍
14+
repo_id = "runwayml/stable-diffusion-v1-5"
15+
filename = "v1-5-pruned-emaonly.safetensors"
1616

17+
print(f"Downloading {repo_id}/{filename}...")
1718
path = hf_hub_download(
1819
repo_id=repo_id,
1920
filename=filename,
2021
local_dir=ckpt_dir,
2122
local_dir_use_symlinks=False
2223
)
2324

24-
print(f"Downloaded: {path}")
25+
print(f"Downloaded to: {path}")
2526

2627
if __name__ == "__main__":
2728
main()

0 commit comments

Comments
 (0)