matlab 运行 AlexNet

摘要:
0.Alexnet工具箱下载地址:用于AlexNetNetwork的NeuralNetworkToolbox(TM)模型需要首先注册(非常简单)、登录并下载;下载后,Windows无法运行该文件;您需要打开matlab,输入文件所在的路径,然后双击以运行;(注意:下载和安装alexnet需要很长时间)1.demo(11行代码)深度学习,共11行

0. alexnet 工具箱下载

下载地址:Neural Network Toolbox(TM) Model for AlexNet Network

  • 需要先注册(十分简单),登陆,下载;
  • 下载完成之后,windows 是无法运行该文件的;
  • 需要打开 matlab,进入到该文件所在的路径,双击运行;(注:需要较久的时间下载安装 alexnet)

1. demo(十一行代码)

deep-learning-in-11-lines-of-matlab-code

clear
camera = webcam;
nnet = alexnet;
while true
    picture = camera.snapshot;
    picture = imresize(picture, [227, 227]);
    label = classify(nnet, picture);
    image(picture);
    title(char(label));
end

2. 网络结构

>> nnet = alexnet;
>> nnet.Layers

1   'data'     Image Input                   227x227x3 images with 'zerocenter' normalization
2   'conv1'    Convolution                   96 11x11x3 convolutions with stride [4  4] and padding [0  0]
3   'relu1'    ReLU                          ReLU
4   'norm1'    Cross Channel Normalization   cross channel normalization with 5 channels per element
5   'pool1'    Max Pooling                   3x3 max pooling with stride [2  2] and padding [0  0]
6   'conv2'    Convolution                   256 5x5x48 convolutions with stride [1  1] and padding [2  2]
7   'relu2'    ReLU                          ReLU
8   'norm2'    Cross Channel Normalization   cross channel normalization with 5 channels per element
9   'pool2'    Max Pooling                   3x3 max pooling with stride [2  2] and padding [0  0]
10   'conv3'    Convolution                   384 3x3x256 convolutions with stride [1  1] and padding [1  1]
11   'relu3'    ReLU                          ReLU
12   'conv4'    Convolution                   384 3x3x192 convolutions with stride [1  1] and padding [1  1]
13   'relu4'    ReLU                          ReLU
14   'conv5'    Convolution                   256 3x3x192 convolutions with stride [1  1] and padding [1  1]
15   'relu5'    ReLU                          ReLU
16   'pool5'    Max Pooling                   3x3 max pooling with stride [2  2] and padding [0  0]
17   'fc6'      Fully Connected               4096 fully connected layer
18   'relu6'    ReLU                          ReLU
19   'drop6'    Dropout                       50% dropout
20   'fc7'      Fully Connected               4096 fully connected layer
21   'relu7'    ReLU                          ReLU
22   'drop7'    Dropout                       50% dropout
23   'fc8'      Fully Connected               1000 fully connected layer
24   'prob'     Softmax                       softmax
25   'output'   Classification Output         cross-entropy with 'tench', 'goldfish', and 998 other classes

免责声明:文章转载自《matlab 运行 AlexNet》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇案例:Redis在京东的使用技术模型图Unity3D实践系列02,查看Scene窗口物体下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

MobileNet系列之MobileNet_v2

​  MobileNet系列之MobileNet_v1 Inception系列之Inception_v1 Inception系列之Batch Normalization Inception系列之Inception_v2-v3 Inception系列之Inception_v4 导言:     MobileNet_v2提出了一些MobileNet_v1存在的一...

TensorFlow2.0教程-使用keras训练模型

1.一般的模型构造、训练、测试流程 1 # 模型构造 2 inputs = keras.Input(shape=(784,), name='mnist_input') 3 h1 = layers.Dense(64, activation='relu')(inputs) 4 h1 = layers.Dense(64, activation='relu...

【自然语言处理】--视觉问答(Visual Question Answering,VQA)从初始到应用

一、前述视觉问答(Visual Question Answering,VQA),是一种涉及计算机视觉和自然语言处理的学习任务。这一任务的定义如下: A VQA system takes as input an image and a free-form, open-ended, natural-language question about the ima...

吴恩达老师深度学习课程第四周编程作业--一步步搭建多层神经网络以及应用

本文是吴恩达老师深度学习第四周的编程作业,我是参考的文章https://blog.csdn.net/u013733326/article/details/79767169完成的。 首先还是作业要求,此次的作业要求还是和第二周作业要求一样,搭建一个神经网络来识别图片是否是猫。只不过本次作业要求搭建两个网络,一个是两层的,一个是多层的,多层的网络层数可以自定。...

AI佳作解读系列(一)——深度学习模型训练痛点及解决方法

1 模型训练基本步骤 进入了AI领域,学习了手写字识别等几个demo后,就会发现深度学习模型训练是十分关键和有挑战性的。选定了网络结构后,深度学习训练过程基本大同小异,一般分为如下几个步骤 定义算法公式,也就是神经网络的前向算法。我们一般使用现成的网络,如inceptionV4,mobilenet等。 定义loss,选择优化器,来让loss最小 对数据进...

数字识别,神经网络

来源:https://www.numpy.org.cn/deep/basics/fit_a_line.html 数字识别 本教程源代码目录在book/recognize_digits,初次使用请您参考Book文档使用说明。 #说明: 硬件环境要求: 本文可支持在CPU、GPU下运行 Docker镜像支持的CUDA/cuDNN版本: 如果使用了Docke...