Spaces:
Runtime error
Runtime error
first commit
Browse files- annotator/openpose/__init__.py +1 -1
- 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(
|
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 |
|