Update download_models.py
Browse files- download_models.py +24 -11
download_models.py
CHANGED
@@ -1,27 +1,40 @@
|
|
1 |
-
import os
|
|
|
|
|
2 |
|
3 |
-
root =
|
|
|
|
|
4 |
(root / "checkpoints").mkdir(parents=True, exist_ok=True)
|
5 |
(root / "loras").mkdir(parents=True, exist_ok=True)
|
6 |
|
7 |
def wget(url, dest):
|
8 |
if not dest.exists():
|
9 |
-
print("Downloading
|
10 |
urllib.request.urlretrieve(url, dest)
|
11 |
-
|
|
|
|
|
|
|
12 |
wget(
|
13 |
-
"https://huggingface.co/Super-shuhe/InstantID-FaceID-70K/
|
14 |
-
|
15 |
)
|
|
|
|
|
16 |
wget(
|
17 |
-
"https://huggingface.co/Super-shuhe/InstantID-FaceID-6M/
|
18 |
-
|
19 |
)
|
|
|
|
|
20 |
wget(
|
21 |
-
"https://huggingface.co/boopyfloopy/gonzalomoXLFluxPony_v40UnityXLDMD/
|
22 |
root / "checkpoints" / "gonzalomoXLFluxPony_v40UnityXLDMD.safetensors"
|
23 |
)
|
|
|
|
|
24 |
wget(
|
25 |
-
"https://huggingface.co/AiWise/epiCPhoto-XL-LoRA-Derp2/
|
26 |
root / "loras" / "epiCPhotoXL-Derp2.safetensors"
|
27 |
-
)
|
|
|
1 |
+
import os
|
2 |
+
import urllib.request
|
3 |
+
from pathlib import Path
|
4 |
|
5 |
+
root = Path("ComfyUI/models")
|
6 |
+
(root / "instantid").mkdir(parents=True, exist_ok=True)
|
7 |
+
(root / "controlnet").mkdir(parents=True, exist_ok=True)
|
8 |
(root / "checkpoints").mkdir(parents=True, exist_ok=True)
|
9 |
(root / "loras").mkdir(parents=True, exist_ok=True)
|
10 |
|
11 |
def wget(url, dest):
|
12 |
if not dest.exists():
|
13 |
+
print(f"Downloading {url}")
|
14 |
urllib.request.urlretrieve(url, dest)
|
15 |
+
else:
|
16 |
+
print(f"Already exists: {dest}")
|
17 |
+
|
18 |
+
# --- InstantID ---
|
19 |
wget(
|
20 |
+
"https://huggingface.co/Super-shuhe/InstantID-FaceID-70K/resolve/main/pytorch_model.bin",
|
21 |
+
root / "instantid" / "Super-shuheInstantID-FaceID-6M.bin"
|
22 |
)
|
23 |
+
|
24 |
+
# --- ControlNet ---
|
25 |
wget(
|
26 |
+
"https://huggingface.co/Super-shuhe/InstantID-FaceID-6M/resolve/main/controlnet/diffusion_pytorch_model.safetensors",
|
27 |
+
root / "controlnet" / "Super-shuheInstantID-FaceID-6M Controlnet.safetensors"
|
28 |
)
|
29 |
+
|
30 |
+
# --- Checkpoint ---
|
31 |
wget(
|
32 |
+
"https://huggingface.co/boopyfloopy/gonzalomoXLFluxPony_v40UnityXLDMD/resolve/main/gonzalomoXLFluxPony_v40UnityXLDMD.safetensors",
|
33 |
root / "checkpoints" / "gonzalomoXLFluxPony_v40UnityXLDMD.safetensors"
|
34 |
)
|
35 |
+
|
36 |
+
# --- LoRA ---
|
37 |
wget(
|
38 |
+
"https://huggingface.co/AiWise/epiCPhoto-XL-LoRA-Derp2/resolve/main/epiCPhotoXL-LoRA-Derp2.safetensors",
|
39 |
root / "loras" / "epiCPhotoXL-Derp2.safetensors"
|
40 |
+
)
|