深度进修模型获取_年夜众_"大众
供应了一站式互换平台,开拓职员可在此查找和利用免费的开源深度学习模型,它供应使得经由良好测试的机器学习与深度学习模型供大家免费利用。
大略来说便是供应了一个可以免费获取预演习模型的网站。
依赖:
安装docker
系统哀求,最小2GB Memory 以及2 CPUs.
利用步骤:
1. 构建模型
如下脚本:
$ git clone https://github.com/IBM/MAX-Image-Caption-Generator.git
$ cd MAX-Image-Caption-Generator
$ docker build -t max-image-caption-generator .
2. 支配模型
运行:
$ docker run -it -p 5000:5000 max-image-caption-generator
3. 利用模型
样例:
$ curl -F \公众image=@assets/surfing.jpg\公众 -X POST http://localhost:5000/model/predict
{
\"大众status\公众: \"大众ok\公众,
\"大众predictions\"大众: [
{
\公众index\公众: \"大众0\"大众,
\"大众caption\"大众: \公众a man riding a wave on top of a surfboard .\"大众,
\"大众probability\"大众: 0.038827644239537
},
{
\"大众index\公众: \"大众1\"大众,
\公众caption\"大众: \公众a person riding a surf board on a wave\"大众,
\"大众probability\"大众: 0.017933410519265
},
{
\"大众index\公众: \"大众2\"大众,
\公众caption\"大众: \公众a man riding a wave on a surfboard in the ocean .\"大众,
\公众probability\公众: 0.0056628732021868
}
]
}
4. 开拓调试
为了调试编辑config.py把DEBUG = True。
本文系作者个人观点,不代表本站立场,转载请注明出处!