大工至善|大学至真分享 http://blog.sciencenet.cn/u/lcj2212916

博文

[转载]【源码】用于图片分类的GoogLeNet网络的深度学习工具箱模型

已有 1698 次阅读 2019-1-20 10:11 |系统分类:科研笔记|文章来源:转载


GoogLeNet是一个预先训练的模型,利用了ImageNet大规模视觉识别挑战(ILSVRC)的ImageNet数据库的一个子集进行训练。

GoogLeNet is a pretrained model that has been trained on a subset of the ImageNet database which is used in the ImageNet Large-Scale Visual Recognition Challenge (ILSVRC). 


该模型训练了100多万张图像,包含144层网络,可以将图像分为1000种对象类别(如键盘、鼠标、铅笔和各种动物等)。

The model is trained on more than a million images, has 144 layers, and can classify images into 1000 object categories (e.g. keyboard, mouse, pencil, and many animals). 


从操作系统或Matlab中打开googlenet.mlpkginstal文件,将启动您所拥有版本的安装过程。

Opening the googlenet.mlpkginstall file from your operating system or from within MATLAB will initiate the installation process for the release you have. 


本模型要求MATLAB2017b及其以上版本。


示例如下:

% 访问训练模型 Access the trained model 

net = googlenet; 

% 观察网络的具体结构细节 See details of the architecture 

net.Layers 

% 读取图片进行分类 Read the image to classify 

I = imread('peppers.png'); 

% 调整图片的尺寸大小 Adjust size of the image 

sz = net.Layers(1).InputSize 

I = I(1:sz(1),1:sz(2),1:sz(3)); 

% 采用GoogLeNet进行图片分类 Classify the image using GoogLeNet 

label = classify(net, I) 

% 显示图片及分类结果 Show the image and the classification results 

figure 

imshow(I) 

text(10,20,char(label),'Color','white')


工具箱下载地址:

http://page2.dfpan.com/fs/clcj1221b2915601658/ 


更多精彩文章请关注微信号:qrcode_for_gh_60b944f6c215_258.jpg



https://blog.sciencenet.cn/blog-69686-1158070.html

上一篇:[转载]【Tom M. Mitchell课件】机器学习——神经网络
下一篇:[转载]【图片新闻】美军菲茨杰拉德号导弹驱逐舰(USS Fitzgerald)被撞事件的背后
收藏 IP: 114.222.243.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-3-29 12:45

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部