Huang
orgin
6a80886
raw
history blame contribute delete
499 Bytes
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)