Add script to download necessary models
This commit is contained in:
parent
1aec01e987
commit
dcd9bc326f
0
instant-id/checkpoints/DOWNLOAD_MODELS
Normal file
0
instant-id/checkpoints/DOWNLOAD_MODELS
Normal file
11
instant-id/download_models.py
Normal file
11
instant-id/download_models.py
Normal 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")
|
0
instant-id/models/DOWNLOAD_MODELS
Normal file
0
instant-id/models/DOWNLOAD_MODELS
Normal file
1
instant-id/requirements.txt
Normal file
1
instant-id/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
huggingface_hub
|
Loading…
Reference in New Issue
Block a user