File size: 499 Bytes
6a80886
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os


def install_package():
    print(os.system("pip install git+https://github.com/facebookresearch/detectron2.git"))
    print(os.system("pip install git+https://github.com/facebookresearch/detectron2@main#subdirectory=projects/DensePose"))


install_package()

print("finished")


class DenthPoseProcessor:
    def __init__(self):
        from .depth_pose import DenthPoseProcess
        self.processor = DenthPoseProcess()

    def __call__(self, img):
        return self.processor(img)