Spaces:
Running
Running
Download annotator/denthPose/__init__.py from Superlang/ImageProcessor: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/Superlang/ImageProcessor/resolve/main/annotator/denthPose/__init__.py
- Command line
-
hf download hf://spaces/Superlang/ImageProcessor/annotator/denthPose/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Superlang/ImageProcessor/resolve/main/annotator/denthPose/__init__.py
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) | |