Spaces:
Running
Running
| 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) | |