DMD2_InstantID_Faceswap / download_models.py
Inspecta's picture
Update download_models.py
1b9f714 verified
raw
history blame
686 Bytes
import os, urllib.request, pathlib
root = pathlib.Path("models")
(root / "checkpoints").mkdir(parents=True, exist_ok=True)
(root / "loras").mkdir(parents=True, exist_ok=True)
def wget(url, dest):
if not dest.exists():
print("Downloading", url)
urllib.request.urlretrieve(url, dest)
wget(
"https://huggingface.co/boopyfloopy/gonzalomoXLFluxPony_v40UnityXLDMD/blob/main/gonzalomoXLFluxPony_v40UnityXLDMD.safetensors",
root / "checkpoints" / "gonzalomoXLFluxPony_v40UnityXLDMD.safetensors"
)
wget(
"https://huggingface.co/AiWise/epiCPhoto-XL-LoRA-Derp2/blob/main/epiCPhotoXL-LoRA-Derp2.safetensors",
root / "loras" / "epiCPhotoXL-Derp2.safetensors"
)