开源软件丨百度浏览器中的深度学习框架 Paddle.js
喜欢就关注我们吧!
Paddle.js是百度Paddle的web方向子项目,是一个运行在浏览器中的开源深度学习框架。Paddle.js可以加载提前训练好的paddle模型
pip install -f
https:/
/paddlepaddle.org.cn/pip/oschina/cpu paddlepaddle
## GPU版本安装命令
pip install -f
https:/
/paddlepaddle.org.cn/pip/oschina/gpu paddlepaddle-gpu
软件基本信息
序号 | 维度 | 详情 |
---|---|---|
1 | 软件类型 | 机器学习/深度学习 |
2 | 开发语言 | |
3 | 授权协议 | |
4 | 开发厂商 |
主要特点
Paddle.js项目基于Atom系统构建,该系统是一个通用框架,可支持WebGL上的GPGPU操作。它非常模块化,可以通过利用WebGL来更快地执行计算任务。
浏览器覆盖范围
PC: Chrome, firefox Mac: Chrome, Safari Android: Baidu App , UC, Chrome and QQ Browser
支持的操作
加载和运行模型
{runner
as Paddlejs}
from'paddlejs';
const
paddlejs =
new Paddlejs({
modelPath
:
'model/mobilenetv2',
// model pathfileCount
:
4,
// model data file countfeedShape
: {
// input shapefw
:
256,
fh
:
256 },
fetchShape
: [
1,
1,
1920,
10],
// output shapefill
:
'#fff',
// fill color when resize imageneedBatch
:
true,
// whether need to complete the shape to 4 dimensioninputType
:
'image'// whether is image or video });
// load paddlejs model and preheat
await
paddlejs.loadModel();
// run model
await
paddlejs.predict(img, postProcess);
functionpostProcee(data)
{
// data为预测结果
console
.log(data);
}
运行Paddle.js提供的转换器脚本
Web友好的model格式
model.json (数据流图和权重清单文件) group1-shard*of* (二进制权重文件的集合)
PS:更多关于 Paddle.js的信息及源码下载,请在“开源中国”公众号对话框回复关键词:0830
觉得不错,请点个在看呀
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。