Spaces:
Runtime error
Runtime error
Commit ·
5f7ee3e
1
Parent(s): 32a888f
Update annotator/openpose/__init__.py
Browse files6 unmodified lines789101011121312131415166 unmodified linesfrom .body import Bodyfrom .hand import Hand
from huggingface_hub import hf_hub_url, hf_hub_downloadfrom huggingface_hub import hf_hub_url, cached_downloadREPO_ID = "lllyasviel/ControlNet"body_estimation = Body(hf_hub_download(hf_hub_url(REPO_ID, '/annotator/ckpts/body_pose_model.pth')))hand_estimation = Hand(hf_hub_download(hf_hub_url(REPO_ID,'/annotator/ckpts/hand_pose_model.pth')))body_estimation = Body(cached_download(hf_hub_url(REPO_ID, 'annotator/ckpts/body_pose_model.pth')))hand_estimation = Hand(cached_download(hf_hub_url(REPO_ID,'annotator/ckpts/hand_pose_model.pth')))
def apply_openpose(oriImg, hand=False):annotator/openpose/__init__.py+3-3