Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
huolongshe 3d559acb2c | 2 months ago | |
---|---|---|
app | 6 months ago | |
demo_data | 10 months ago | |
docs | 6 months ago | |
.gitignore | 10 months ago | |
Dockerfile | 10 months ago | |
LICENSE | 10 months ago | |
README.md | 2 months ago | |
application.yml | 10 months ago | |
build-docker.sh | 10 months ago | |
pack_model.py | 10 months ago | |
pip-install-reqs.sh | 10 months ago | |
requirements.txt | 9 months ago | |
run_model_server.py | 10 months ago |
换天算法是计算机视觉的经典任务之一,也是image sky matting的应用之一。输入一张原图A以及一张参考图B,换天算法会得到两张图片对应的天空区域的alpha图(alpha属于软分割,与硬分割mask不同,mask将视频分为前景与背景,取值为0或1,而alpha的取值范围是0到1之间,数值代表透明度,因此alpha比mask更为精细) 换天算法利用A和B图对应的天空区域alpha图,配合融合算法,将参考图B的天空样式替换到原图A中,从而改变原图A的天空样式,实现换天功能。
模型来源: https://modelscope.cn/models/damo/cv_hrnetocr_skychange/summary
本模型基于 ServiceBoot微服务引擎 进行服务化封装,参见: 《CubeAI模型开发指南》
$ sh pip-install-reqs.sh
$ serviceboot start
或
$ python3 run_model_server.py
一键式本地容器化部署和运行,参见: 《CubeAI模型独立部署指南》 或 CubeAI Docker Builder
本模型服务可一键发布至 CubeAI智立方平台 进行共享和部署,参见: 《CubeAI模型发布指南》
API接口1:
API端点: /api/data
HTTP方法: POST
HTTP请求体:
{
"action": "predict"
"args": {
"sky_image": <压缩图像的base64编码字符串(或其Data URL表示)>,
"scene_image": <压缩图像的base64编码字符串(或其Data URL表示)>,
}
}
HTTP响应体:
{
"status": "ok"|"err",
"value": [], <图像的base64编码URL字符串>
}
No Description
Python Shell Text Dockerfile
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》