root commited on
Commit
42adb07
·
1 Parent(s): fdfc7e7
__pycache__/handler.cpython-310.pyc CHANGED
Binary files a/__pycache__/handler.cpython-310.pyc and b/__pycache__/handler.cpython-310.pyc differ
 
extract_dwpose_from_vid.py CHANGED
@@ -6,7 +6,6 @@ from pathlib import Path
6
  import numpy as np
7
  import sys
8
 
9
- sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
10
 
11
  from src.dwpose import DWposeDetector
12
  from src.utils.util import get_fps, read_frames, save_videos_from_pil
 
6
  import numpy as np
7
  import sys
8
 
 
9
 
10
  from src.dwpose import DWposeDetector
11
  from src.utils.util import get_fps, read_frames, save_videos_from_pil
src/dwpose/__pycache__/wholebody.cpython-310.pyc CHANGED
Binary files a/src/dwpose/__pycache__/wholebody.cpython-310.pyc and b/src/dwpose/__pycache__/wholebody.cpython-310.pyc differ
 
src/dwpose/wholebody.py CHANGED
@@ -5,11 +5,16 @@ import cv2
5
  import numpy as np
6
  import onnxruntime as ort
7
 
8
- from .onnxdet import inference_detector
9
- from .onnxpose import inference_pose
10
 
11
- ModelDataPathPrefix = Path("./pretrained_weights")
 
 
 
 
12
 
 
13
 
14
  class Wholebody:
15
  def __init__(self, device="cuda:0"):
 
5
  import numpy as np
6
  import onnxruntime as ort
7
 
8
+ import os
9
+ import sys
10
 
11
+ file_dir = os.path.dirname(__file__)
12
+ sys.path.append(file_dir)
13
+
14
+ from onnxdet import inference_detector
15
+ from onnxpose import inference_pose
16
 
17
+ ModelDataPathPrefix = Path("./pretrained_weights")
18
 
19
  class Wholebody:
20
  def __init__(self, device="cuda:0"):