Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
huolongshe 4caa8160f2 | 2 months ago | |
---|---|---|
app | 11 months ago | |
demo_data | 1 year ago | |
docs | 1 year ago | |
webapp | 11 months ago | |
.gitignore | 2 years ago | |
Dockerfile | 1 year ago | |
LICENSE | 2 years ago | |
README.md | 2 months ago | |
application.yml | 11 months ago | |
build-docker.sh | 1 year ago | |
pack_model.py | 1 year ago | |
pip-install-reqs.sh | 1 year ago | |
requirements.txt | 9 months ago | |
run_model_server.py | 1 year ago |
利用paddlehub中预训练模型deeplabv3p_xception65_humanseg(https://www.paddlepaddle.org.cn/hubdetail?name=deeplabv3p_xception65_humanseg&en_category=ImageSegmentation)和pyramidbox_face_detection(https://www.paddlepaddle.org.cn/hubdetail?name=pyramidbox_face_detection&en_category=FaceDetection)进行人像抠图和裁切。
DeepLabv3+ 是Google DeepLab语义分割系列网络的最新作,其前作有 DeepLabv1, DeepLabv2, DeepLabv3。在最新作中,作者通过encoder-decoder进行多尺度信息的融合,同时保留了原来的空洞卷积和ASSP层, 其骨干网络使用了Xception模型,提高了语义分割的健壮性和运行速率,在 PASCAL VOC 2012 dataset取得新的state-of-art performance。该PaddleHub Module使用百度自建数据集进行训练,可用于人像分割,支持任意大小的图片输入。
PyramidBox是一种基于SSD的单阶段人脸检测器,它利用上下文信息解决困难人脸的检测问题。PyramidBox在六个尺度的特征图上进行不同层级的预测。该工作主要包括以下模块:LFPN、PyramidAnchors、CPM、Data-anchor-sampling。该PaddleHub Module的预训练数据集为WIDER FACE数据集,可支持预测。
本模型基于 ServiceBoot微服务引擎 进行服务化封装,参见: 《CubeAI模型开发指南》
$ sh pip-install-reqs.sh
$ serviceboot start
或
$ python3 run_model_server.py
一键式本地容器化部署和运行,参见: 《CubeAI模型独立部署指南》 或 CubeAI Docker Builder
本模型服务可一键发布至 CubeAI智立方平台 进行共享和部署,参见: 《CubeAI模型发布指南》
本模型提供了1个API接口:
API接口1:
API端点: /api/data
HTTP方法: POST
HTTP请求体:
{
"action": "predict",
"args": {
"img": <压缩图像的base64编码字符串(或其Data URL表示)>,
"red": <背景红色值(0~255)>,
"green": <背景绿色值(0~255)>,
"blue": <背景蓝色值(0~255)>,
}
}
HTTP响应体:
{
"status": "ok"|"err",
"value": <裁切后照片的base64编码压缩图像URL>
}
Paddle证件照生成
TypeScript Python HTML Shell Dockerfile other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》