File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
2627if __name__ == "__main__" :
2728 main ()
You can’t perform that action at this time.
0 commit comments