levihsu commited on
Commit
ebdb128
1 Parent(s): 2fc3b84

Update run/gradio_ootd.py

Browse files
Files changed (1) hide show
  1. run/gradio_ootd.py +4 -1
run/gradio_ootd.py CHANGED
@@ -10,12 +10,15 @@ from utils_ootd import get_mask_location
10
  PROJECT_ROOT = Path(__file__).absolute().parents[1].absolute()
11
  sys.path.insert(0, str(PROJECT_ROOT))
12
 
13
- import time
14
  from preprocess.openpose.run_openpose import OpenPose
15
  from preprocess.humanparsing.run_parsing import Parsing
16
  from ootd.inference_ootd_hd import OOTDiffusionHD
17
  from ootd.inference_ootd_dc import OOTDiffusionDC
18
 
 
 
 
 
19
 
20
  openpose_model_hd = OpenPose(0)
21
  parsing_model_hd = Parsing(0)
 
10
  PROJECT_ROOT = Path(__file__).absolute().parents[1].absolute()
11
  sys.path.insert(0, str(PROJECT_ROOT))
12
 
 
13
  from preprocess.openpose.run_openpose import OpenPose
14
  from preprocess.humanparsing.run_parsing import Parsing
15
  from ootd.inference_ootd_hd import OOTDiffusionHD
16
  from ootd.inference_ootd_dc import OOTDiffusionDC
17
 
18
+ from huggingface_hub import hf_hub_download
19
+
20
+ hf_hub_download(repo_id="levihsu/OOTDiffusion", filename="checkpoints", local_dir="./")
21
+
22
 
23
  openpose_model_hd = OpenPose(0)
24
  parsing_model_hd = Parsing(0)