Robert001 commited on
Commit
17f246f
1 Parent(s): 2c98956

first commit

Browse files
Files changed (2) hide show
  1. annotator/openpose/__init__.py +1 -1
  2. app.py +0 -1
annotator/openpose/__init__.py CHANGED
@@ -33,7 +33,7 @@ class OpenposeDetector:
33
  body_modelpath = os.path.join(annotator_ckpts_path, "body_pose_model.pth")
34
  # hand_modelpath = os.path.join(annotator_ckpts_path, "hand_pose_model.pth")
35
 
36
- if not os.path.exists(hand_modelpath):
37
  from basicsr.utils.download_util import load_file_from_url
38
  load_file_from_url(body_model_path, model_dir=annotator_ckpts_path)
39
  # load_file_from_url(hand_model_path, model_dir=annotator_ckpts_path)
 
33
  body_modelpath = os.path.join(annotator_ckpts_path, "body_pose_model.pth")
34
  # hand_modelpath = os.path.join(annotator_ckpts_path, "hand_pose_model.pth")
35
 
36
+ if not os.path.exists(body_modelpath):
37
  from basicsr.utils.download_util import load_file_from_url
38
  load_file_from_url(body_model_path, model_dir=annotator_ckpts_path)
39
  # load_file_from_url(hand_model_path, model_dir=annotator_ckpts_path)
app.py CHANGED
@@ -7,7 +7,6 @@
7
  * Modified from ControlNet repo: https://github.com/lllyasviel/ControlNet
8
  * Copyright (c) 2023 Lvmin Zhang and Maneesh Agrawala
9
  '''
10
- import sys
11
 
12
  import config
13
 
 
7
  * Modified from ControlNet repo: https://github.com/lllyasviel/ControlNet
8
  * Copyright (c) 2023 Lvmin Zhang and Maneesh Agrawala
9
  '''
 
10
 
11
  import config
12