jhj0517
commited on
Commit
•
ccfe1b7
1
Parent(s):
46fa2af
Update animal model name
Browse files
modules/live_portrait/model_downloader.py
CHANGED
@@ -20,11 +20,11 @@ MODELS_ANIMAL_URL = {
|
|
20 |
"warping_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/warping_module.safetensors",
|
21 |
"spade_generator": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/spade_generator.safetensors",
|
22 |
"stitching_retargeting_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/stitching_retargeting_module.safetensors",
|
23 |
-
|
|
|
24 |
}
|
25 |
|
26 |
|
27 |
-
|
28 |
def download_model(
|
29 |
file_path: str,
|
30 |
url: str,
|
|
|
20 |
"warping_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/warping_module.safetensors",
|
21 |
"spade_generator": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/spade_generator.safetensors",
|
22 |
"stitching_retargeting_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/animal/stitching_retargeting_module.safetensors",
|
23 |
+
# Just animal detection model not the face, needs better model
|
24 |
+
"yolo_v5s_animal_det": "https://huggingface.co/degirum/yolo_v5s_animal_det_512x512_quant_n2x_cpu_1/resolve/main/yolo_v5s_animal_det_512x512_quant_n2x_cpu_1.n2x"
|
25 |
}
|
26 |
|
27 |
|
|
|
28 |
def download_model(
|
29 |
file_path: str,
|
30 |
url: str,
|
modules/utils/paths.py
CHANGED
@@ -23,7 +23,8 @@ MODEL_ANIMAL_PATHS = {
|
|
23 |
"warping_module": os.path.join(MODELS_ANIMAL_DIR, "warping_module.safetensors"),
|
24 |
"spade_generator": os.path.join(MODELS_ANIMAL_DIR, "spade_generator.safetensors"),
|
25 |
"stitching_retargeting_module": os.path.join(MODELS_ANIMAL_DIR, "stitching_retargeting_module.safetensors"),
|
26 |
-
|
|
|
27 |
}
|
28 |
MASK_TEMPLATES = os.path.join(PROJECT_ROOT_DIR, "modules", "utils", "resources", "mask_template.png")
|
29 |
I18N_YAML_PATH = os.path.join(PROJECT_ROOT_DIR, "i18n", "translation.yaml")
|
|
|
23 |
"warping_module": os.path.join(MODELS_ANIMAL_DIR, "warping_module.safetensors"),
|
24 |
"spade_generator": os.path.join(MODELS_ANIMAL_DIR, "spade_generator.safetensors"),
|
25 |
"stitching_retargeting_module": os.path.join(MODELS_ANIMAL_DIR, "stitching_retargeting_module.safetensors"),
|
26 |
+
# Just animal detection model not the face, needs better model
|
27 |
+
"yolo_v5s_animal_det": os.path.join(MODELS_ANIMAL_DIR, "yolo_v5s_animal_det.n2x")
|
28 |
}
|
29 |
MASK_TEMPLATES = os.path.join(PROJECT_ROOT_DIR, "modules", "utils", "resources", "mask_template.png")
|
30 |
I18N_YAML_PATH = os.path.join(PROJECT_ROOT_DIR, "i18n", "translation.yaml")
|