Add script to download necessary models

This commit is contained in:
moshferatu 2024-01-25 07:31:54 -08:00
parent 1aec01e987
commit dcd9bc326f
4 changed files with 12 additions and 0 deletions

View File

View File

@ -0,0 +1,11 @@
from huggingface_hub import hf_hub_download
# InstantID documentation:
# https://github.com/InstantID/InstantID/tree/main#download
# For downloading the face encoder model, refer to the following:
# https://github.com/deepinsight/insightface/issues/1896#issuecomment-1023867304
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")

View File

View File

@ -0,0 +1 @@
huggingface_hub