YOLOX-PAI手部检测模型
YOLOX-PAI手部检测模型
# numpy >= 1.20
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasksmodel_id = 'iic/cv_yolox-pai_hand-detection'
hand_detection = pipeline(Tasks.domain_specific_object_detection, model=model_id)
output = hand_detection('https://modelscope.oss-cn-beijing.aliyuncs.com/test/images/hand_detection.jpg')# the output contains boxes, scores and labels
print(output)
CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', 'wheel', '-vvv', '--no-deps', '--no-cache-dir', '--disable-pip-version-check', '--progress-bar=off', 'pai-easycv']' returned non-zero exit status 1.
其中有一个问题需要换掉pip源才能解决 不知道为啥阿里源不行,搞了好久