Upload download_models.py with huggingface_hub
Browse files- 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(
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
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
|