【源码】用于NASNet移动网络的深度学习工具箱模型

在这里插入图片描述

NasNet Mobile是一个预训练模型,已经在ImageNet数据库的一个子集上进行了训练。

NasNet-Mobile is a pretrained model that has been trained on a subset of the ImageNet database.

该模型已经接受了超过一百万张图像的训练,可以将图像分为1000个对象类别(如键盘、鼠标、铅笔和许多种类的动物)。

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

打开nasnetmobile.mlpkginstall文件,将通过MATLAB进行相应版本的初始化过程。

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

要求使用R2019a及其以上版本。

This mlpkginstall file is functional for R2019a and beyond.

示例:

Usage Example:

% 访问训练模型

% Access the trained model

net = nasnetmobile();

% 设置网络结构的细节

% 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));

% 采用nasnetmobile 进行图像分类

% Classify the image using nasnetmobile

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/6lc2j2b216296166d21/

更多精彩文章请关注微信号:在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值