levihsu commited on
Commit
1be901d
1 Parent(s): b2a05b4

Update preprocess/humanparsing/run_parsing.py

Browse files
preprocess/humanparsing/run_parsing.py CHANGED
@@ -8,6 +8,9 @@ sys.path.insert(0, str(PROJECT_ROOT))
8
  from parsing_api import onnx_inference
9
  import torch
10
 
 
 
 
11
 
12
  class Parsing:
13
  def __init__(self, gpu_id: int):
 
8
  from parsing_api import onnx_inference
9
  import torch
10
 
11
+ from huggingface_hub import hf_hub_download
12
+ hf_hub_download(repo_id="levihsu/OOTDiffusion", filename="checkpoints/humanparsing/parsing_atr.onnx", local_dir="./checkpoints/humanparsing")
13
+ hf_hub_download(repo_id="levihsu/OOTDiffusion", filename="checkpoints/humanparsing/parsing_lip.onnx", local_dir="./checkpoints/humanparsing")
14
 
15
  class Parsing:
16
  def __init__(self, gpu_id: int):