暂无个人介绍
2024年04月
2023年07月
2023年02月
2022年11月
一张训练图片中,非目标区域外的都属于背景,正负target中,负target实际上是远多于正target的。所以添加纯背景图片应该意义不大吧?
您好,卡证检测模型可以参考SCRFD人脸检测模型的ONNX导出方式:https://github.com/modelscope/modelscope/blob/master/tests/export/test_export_face_detection_scrfd.py
你好,前段时间maaslib升级导致报错,目前已修复,抱歉!
你好,是可以的,在代码示例中使用自己的图片,这里内部集成了SCRFD人脸检测 ,所以本地图片直接传原图即可,会比较两张图中的最大脸的相似度。
import cv2
import numpy as np
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from modelscope.outputs import OutputKeys
img1 = 'your/img/1.jpg' # <---这里替换
img2 = 'your/img/2.jpg'
face_recognition = pipeline(Tasks.face_recognition, model='damo/cv_ir101_facerecognition_cfglint')
emb1 = face_recognition(img1)[OutputKeys.IMG_EMBEDDING]
emb2 = face_recognition(img2)[OutputKeys.IMG_EMBEDDING]
sim = np.dot(emb1[0], emb2[0])
print(f'Face cosine similarity={sim:.3f}, img1:{img1} img2:{img2}')
WIDER_FACE数据集,有insightface提供的人脸检测和人脸关键点一起的标注。 https://modelscope.cn/datasets/shaoxuan/WIDER_FACE/summary