jhj0517 commited on
Commit
222faf4
·
1 Parent(s): c7ac038
modules/live_portrait/model_downloader.py CHANGED
@@ -10,7 +10,7 @@ MODELS_URL = {
10
  "motion_extractor": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/motion_extractor.safetensors",
11
  "warping_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/warping_module.safetensors",
12
  "spade_generator": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/spade_generator.safetensors",
13
- "stitching_retargeting_module ": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/stitching_retargeting_module.safetensors",
14
  "face_yolov8n": "https://huggingface.co/Bingsu/adetailer/resolve/main/face_yolov8n.pt"
15
  }
16
 
@@ -22,7 +22,7 @@ def download_model(
22
  if os.path.exists(file_path):
23
  return None
24
  try:
25
- print(f'{file_path} is not detected. Downloading model...')
26
  download_url_to_file(url, file_path, progress=True)
27
 
28
  except requests.exceptions.RequestException as e:
 
10
  "motion_extractor": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/motion_extractor.safetensors",
11
  "warping_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/warping_module.safetensors",
12
  "spade_generator": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/spade_generator.safetensors",
13
+ "stitching_retargeting_module": "https://huggingface.co/Kijai/LivePortrait_safetensors/resolve/main/stitching_retargeting_module.safetensors",
14
  "face_yolov8n": "https://huggingface.co/Bingsu/adetailer/resolve/main/face_yolov8n.pt"
15
  }
16
 
 
22
  if os.path.exists(file_path):
23
  return None
24
  try:
25
+ print(f'{os.path.normpath(file_path)} is not detected. Downloading model...')
26
  download_url_to_file(url, file_path, progress=True)
27
 
28
  except requests.exceptions.RequestException as e: