| from huggingface_hub import hf_hub_download |
| import gdown |
| import os |
|
|
| |
| hf_hub_download( |
| repo_id="InstantX/InstantID", |
| filename="ControlNetModel/config.json", |
| local_dir="./checkpoints", |
| ) |
| hf_hub_download( |
| repo_id="InstantX/InstantID", |
| filename="ControlNetModel/diffusion_pytorch_model.safetensors", |
| local_dir="./checkpoints", |
| ) |
| hf_hub_download( |
| repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints" |
| ) |
| hf_hub_download( |
| repo_id="latent-consistency/lcm-lora-sdxl", |
| filename="pytorch_lora_weights.safetensors", |
| local_dir="./checkpoints", |
| ) |
| |
| gdown.download(url="https://drive.google.com/file/d/18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8/view?usp=sharing", output="./models/", quiet=False, fuzzy=True) |
| |
| os.system("unzip ./models/antelopev2.zip -d ./models/") |