Defter77 commited on
Commit
656c239
·
verified ·
1 Parent(s): 5ba860e

Upload download_models.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. download_models.py +19 -9
download_models.py CHANGED
@@ -360,15 +360,25 @@ try:
360
  # Register additional model folders in ComfyUI
361
  folder_paths_file = "/app/ComfyUI/extra_model_paths.yaml"
362
  with open(folder_paths_file, "w") as f:
363
- f.write(f"""
364
- evaclip: {MODELS_DIR}/evaclip
365
- insightface: {MODELS_DIR}/insightface
366
- pulid: {MODELS_DIR}/pulid
367
- checkpoints: {MODELS_DIR}/checkpoints
368
- controlnet: {MODELS_DIR}/controlnet
369
- ipadapter: {MODELS_DIR}/ipadapter
370
- clip_vision: {MODELS_DIR}/clip_vision
371
- """)
 
 
 
 
 
 
 
 
 
 
372
  print(f"Created extra_model_paths.yaml at {folder_paths_file}")
373
 
374
  # Link from ComfyUI's default directories to our writable directory
 
360
  # Register additional model folders in ComfyUI
361
  folder_paths_file = "/app/ComfyUI/extra_model_paths.yaml"
362
  with open(folder_paths_file, "w") as f:
363
+ f.write("""# Extra model paths for ComfyUI
364
+ checkpoints:
365
+ - {}/checkpoints
366
+ controlnet:
367
+ - {}/controlnet
368
+ clip_vision:
369
+ - {}/clip_vision
370
+ ipadapter:
371
+ - {}/ipadapter
372
+ pulid:
373
+ - {}/pulid
374
+ evaclip:
375
+ - {}/evaclip
376
+ insightface:
377
+ - {}/insightface
378
+ """.format(
379
+ MODELS_DIR, MODELS_DIR, MODELS_DIR,
380
+ MODELS_DIR, MODELS_DIR, MODELS_DIR, MODELS_DIR
381
+ ))
382
  print(f"Created extra_model_paths.yaml at {folder_paths_file}")
383
 
384
  # Link from ComfyUI's default directories to our writable directory