File Exchange

image thumbnail

Deep Learning Toolbox Model for AlexNet Network

Pretrained AlexNet network model for image classification

617 Downloads

Updated 11 Sep 2019

Editor's Note: Popular File 2017 2018

This file was selected as MATLAB Central Pick of the Week

AlexNet is a pretrained Convolutional Neural Network (CNN) that has been trained on approximately 1.2 million images from the ImageNet Dataset (http://image-net.org/index). The model has 23 layers and can classify images into 1000 object categories (e.g. keyboard, mouse, coffee mug, pencil).
Opening the alexnet.mlpkginstall file from your operating system or from within MATLAB will initiate the installation process for the release you have.
This mlpkginstall file is functional for R2016b and beyond.
Usage Example:
% Access the trained model
net = alexnet
% 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));
% Classify the image using AlexNet
label = classify(net, I)
% Show the image and the classification results
figure
imshow(I)
text(10,20,char(label),'Color','white')

Comments and Ratings (264)

Hi,I'm using Matlab R2017a. Would you please send me a copy of the Alexnet installation .zip file to vedalankar_av@mgmcen.ac.in?Thank you very much.

hello, can you please send googlenet or alexnet installation file for Matlab 2014a ?? put it here at navadeepganesh.ngu@gmail.com

Hi, I'm using Matlab R2017b. Can I get a copy of the Alexnet installation .zip file to motleylight@gmail.com

ming

Hi, I'm using Matlab R2017b. Can I get a copy of the Alexnet installation .zip file to 3317271617@qq.com

cheng cheng

Hi,I'm using Matlab R2017a.Would you please send me a copy of the Alexnet installation .zip file to 1024722520@qq.com?Thank you very much.

Hi, I'm using Matlab R2019b. Can I get a copy of the Alexnet installation .zip file to megafox60@mail.ru? Thank you.

zhiyuan shi

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to 593938125@qq.com . Thank you.

Hi, i'm using MATLAB R2016a. Can you sent me a copy of the Alexnet installation zip file on buxuica@gmail.com.

Hello, I'm using Matlab R2017b. Can I get copy of the Alexnet installation .zip file to vaclavt@gmail.com? Thank you.

houbo xiong

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to 564556263@qq.com . Thank you.

aykut diker

Hi, I'm using Matlab R2017b. Can I get a copy of the Alexnet installation .zip file to aykutdiker@gmail.com

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to dia.alshameri@gmail.com . Thank you.

Anbu Kathir

can u plase send me the zip file of Alexnet for 2019a to anbukathir1996@gmail.com

cui

alexnet,and so many network can also can get from here: https://github.com/cuixing158/DeepLearning-Converter-for-Darknet-Matlab-Model-Format
alexnet等非常多的网络可以从这载入到matlab中: https://github.com/cuixing158/DeepLearning-Converter-for-Darknet-Matlab-Model-Format

很有趣的例子,感到高兴

casey zou

Sean Zou

Hi, O am using Matlab 2015b, can you please send me Alexnet installation zip file on Xiangyang.Zou@gmail.com? Thank you very much!

ahmed amin

Excuse me,I'm using MATLAB R2016a. Can you sent me a copy of the Alexnet installation zip file on aeamin1966@gmail.com. Thank you very much!

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to masoudb36@gmail.com . Thank you.

Hi, i'm using MATLAB R2016a. Can you sent me a copy of the Alexnet installation zip file on drgramesh24@gmail.com.

Hi
I had a problem downloading the alexnet and googlenet. The message I received is "There is a problem downloading the support package". The used matlab version is R2019a. Is it possible to send me an installation file on raldhaheri@yahoo.com

Matilda S

The installation is working fine. Thank You

Fuxin Chu

Hello, I'm using Matlab R2016a. Could you please sent a copy of the Alexnet installation zip file on fuxin.chu@postgrad.manchester.ac.uk. Thanks a lot

Please can anyone help me to download and install

I am using R2019a ALexnet is not downloading and installing

i am using MATLAB 9.6, would you please sent me the Alexnet installation zip file on ppriyadharshini@student.tce.edu

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to hikim@add.re.kr. Thank you.

wei lin

Excuse me,I'm using MATLAB R2016a. Can you sent me a copy of the Alexnet installation zip file on 878181016@qq.com. Thank you very much!

Hi, i'm using MATLAB R2016a. Can you sent me a copy of the Alexnet installation zip file on appssellers@gmail.com. Thanks!

shankar k

Im using matlab 2017b, would you please send me the AlexNet installation file to my email: saharnasiri_1120@yahoo.com. thank you.

Would you please send me the alexnet zip file

asd asd

hi
I have MatLab R2017a, and kindly send me AlexNet installation file .zip file on706919491@qq.com Thank You.

Bin Cao

Hi, I'm using Matlab R2019a. Can I get a copy of the Alexnet installation .zip file to bincao@umd.edu . Thank you.

oli gerta

hi
I have MatLab R2017a, and kindly send me AlexNet installation file .zip file on oligerta.bracellari@yahoo.com Thank You.

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: flsrecherche@yahoo.fr .Thank you.

Can I get a alenet for Matlab 2014a

Hi, i'm using MATLAB 2016a. Can you sent me a copy of the Alexnet installation zip file on villarroeljrg@gmail.com. Thanks!

Bugras

I can't download file. Could you please send me Alexnet installation zip file on bugras@aselsan.com.tr

I am using matlab 2018b
could you please send me Alexnet installation zip file on panditshukla001@gmail.com
Thank you!

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: Adnanhussain8622@gmail.com

Hi, I click the install button and everything goes okey, but when I try to use alexnet, Matlab says in the command window that I have to install the support package. I´ve installed it three or four times but it always say the same, Can anyone help me?

junqi

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: 578357134@qq.com.Thank you.

hi
I have MatLab R2018b, and kindly send me AlexNet installation file .zip file on vkumar7796@gmail.com. Thank You.

For the possible next ones:
For the Alexnet file, just hit the Download tab on the upright of this page.

Hi there!
I have the Matlab R2018b and I kindly request for the AlexNet installation file
Email: g_liapis@hotmail.com
Thank you!

have MATLAB2018b. kindly can you send me the AlexNet installation file My email :grafixers28@gmail.com
shall be very thankful.
best regards.

y h

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: 875228395@qq.com.Thank you.

lin mei

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: 2253967185@qq.com.Thank you.

x yc

I have MATLAB2018b. kindly can you send me the AlexNet installation file My email : 251128743@qq.com
Thank you

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: 0177650@up.edu.mx Thank you.

I have MATLAB2018b. kindly can you send me the AlexNet installation file My email : adeben93@gmail.com

I have MATLAB2018b. kindly can you send me the AlexNet installation file My email : nguyenquocthong1111@gmail.com
Thank you

merve sever

I have MATLAB2018b. kindly can you send me the AlexNet installation file My email : mervesever.46@gmail.com

Hi,
i am tring to download this addon on my Matlab 2018b but i am getting a download error.
Can anyone please help me with this problem and suggest me a solution?
Thank you

E Omar

I am using Matlab R2018a win 64 version. could you mind send me .zip file emam11088@gmail.com? Thanks You.

hi, i am using Matlab 2015b, and can i get a copy of the Alexnet installation.zip file on: carolinaninov97@gmail.com. Thank you!!!

mingfang hu

owen

hello,I am using Matlab2016a. If there is an AlexNet installation package of the corresponding version, please send it to 1849160651@qq.com. Thank you

Can anyone send zip file to competitiveperson@hotmail.com

juhoe kim

can anyone send the alexnet zip file to my mail enviguy@sk.com thanks.

can anyone send the alexnet zip file to my mail mugunthanramesh6@gmail.com Thanks

I would like to get a copy of the Alexnet installation.zip file for Matlab R2018a, please, here is my email mousstouhami@gmail.com

Thanks in advance.

Begin my study of Deep Learning from AlexNet !

Good day.

I would like to get a copy of the Alexnet installation.zip file for Matlab R2014a, please, on u13025768@tuks.co.za

Thanks in advance.

hi, i am using Matlab 2015b, and can i get a copy of the Alexnet installation.zip file on: viniciusvmaurente@gmail.com

mingfang hu

hi, i am using Matlab 2018b, and can i get a copy of the Alexnet installation.zip file on: mhu091@uottawa.ca

Tu Zhang

Hi, I'm using Matlab R2016a. Can I get a copy of the Alexnet installation .zip file on: estebanaortega@unicauca.edu.co Thank you.

When I install the one on the page I get this message: Neural Network Toolbox Model for AlexNet Network is not available for this release of MATLAB.

Hi, I'm using Matlab R2018b. Can I get a copy of the Alexnet installation .zip file on: shafieifatemeh@gmail.com Thank you.

I am using matlab 2018b
could you please send me Alexnet installation zip file on mohslimasmoudi@gmail.com
Thank you!

Jiho Lee

Hi, I'm using Matlab R2018b. Can I get a copy of the Alexnet installation .zip file on:posljh@postech.ac.kr Thank you.

DONGYUN KAM

Hi, I'm using Matlab R2018b. Can I get a copy of the Alexnet installation .zip file on:378385455@qq.com. Thank you.
.i m unable to install it from mathworks,but i really need it

yanjun li

Hi, I'm using Matlab R2018b. Can I get a copy of the Alexnet installation .zip file on:378385455@qq.com. Thank you.
.i m unable to install it from mathworks,but i really need it

daodao li

Hi, I'm using Matlab R2016b. Can I get a copy of the Alexnet installation .zip file on: 1801110047@pku.edu.com. Thank you.

please anyone send me the alexnet installation file to sarak_20@yahoo.com..i m unable to install it from mathworks...

Dukho Do

I am using matlab 2018b
could you please send me Alexnet installation zip file on ddh417@gmail.com
Thank you!

I'm using Matlab R2018a, please send me Alexnet installation .zip file on: arunkumar.t.r@gmail.com Thank you.

Ray Yoh

360812049@qq.com i am using MATLAB2016a,and i need this

i am using tlab 2016a please send me Alexnet installation zip file on mhabibelhadi@gmail.com

I am using matlab 2017a please send me Alexnet installation zep file on ishfaqdgh21@gmail.com

zhide Wei

Jack Li

Ashiq Ullah

working great...

Fuhao Li

I'm using Matlab R2018b, please send me Alexnet installation .zip file on: lif003@udayton.edu. Thank you.

I'm using Matlab R2018b, please send me Alexnet installation .zip file on: vitulbansal91@gmail.com. Thank you.

Xue Xing

I'm using Matlab R2018a, please send me Alexnet installation .zip file on: patricia_xx@163.com. Thank you.

Yingqi Guan

Hi, I'm using Matlab R2016b. Can I get a copy of the Alexnet installation .zip file on: benjamin.nieters@yahoo.com. Thank you.

Hi,
I recently downloaded the R2018b, considering all the new features of the neural network package. I am trying to get " Deep Learning Toolbox Model for AlexNet Network" as well as " Deep Learning Toolbox Model for GoogLeNet Network support package" to test these two first. I cant get either of them. I have a mac os El Capitan 10.11.6.
The error window says "Install Folder Error
This folder name is invalid. Folder names can contain alphanumeric characters and '-', '_', '.', or '/' only. The destination folder cannot be named "private".
I also downloaded the mlpkginstall files, but that didnt work either.
Please help!!Thank you,

Hi, I'd like understanding what happens in second layer. We have 96 channels but filter has 4D dimensions: (:,:,48,256). Why? I think that the 3 dimension would be 96.

Zhi Lee

i have already trained a Alexnet. Now i want to use it in a C-language platform.So what should i do to get my trained net?

LEYU DAI

Sir, I am using Matlab R2016a Windows 10 (64 bit) Version. It has an error "Neural Network Toolbox model for AlexNet is not available for this release of MATLAB"
Could you give me some suggestions? or send me .zip file to tsubasa512@163.com
Thank You!

Divy

having trouble while installing this. can someone help me out here?

hi, I'm using Matlab R2018b, please send me Alexnet installation .zip file on: tejaswini.mkg7@gmail.com. Thank you.

thenyan Kee

my computer installed is the vision 2016b, caan't load the vision

Shounak Mitra. Your answer is very interesting. But can i try any images downloaded by me that belong to these classes? Or are there particular images that have just been associated to alexnet such as peppers.png?

Great Question Erik!

To get a list of class, follow the steps:

%%%
net = alexnet
net.Layers(end).Classes
%%%

To understand how you could have gotten to this, you can type net.Layers to see the layer names, properties etc on the command line.

net.Layers(end) gives you the properties of the last layer, one of which is the 'Classes'.

That's how you get to net.Layers(end).Classes

Which images of ImageNet have been pretrained? I tried peppers.png, can i test other images? If yes, what are they?

i am using matlab R2015b, is there any way you can send me the package? my email adress is shivax910@gmail.com

brian helip

Good day,
I have started my own data on Nerual Networking on windows and using MATLAB the data I one is using is from the Good Judgment open yet I do want to learn the difference on the data and compare the way the computer learns the data types. thanks for the good time.
Brin Helip

Hi, I'm using the Matlab 2016a version. May I get the proper zip file to download this toolbox model please. My email is gkraishan@yahoo.com

feixia zhu

i want to install this in matlab 2018(ubuntu),but there is no reaction when i click the alexnet.mlpkginstall.
thank you for you help

Is it possible modify channels? I need only a single channel to test my architecture.

Hi, I'm using the Matlab 2016a version. May I get the proper zip file to download this toolbox model please. My email is koldfish@gmail.com.
thank you

Haige Mo

losen Mike

xuyang niu

my Matlab version is 2014a, is there any way that i can use this package? my email is 18842601689@163.com, thanks in adcance.

jone jone

if you can't install, maybe you should close the windows defender firstly

Akash: Unfortunately, this package would only work from R2016b and beyond.

Akash B

Hi , i`m using matlabR2016a and i cant download and use alexnet with MLPKGINSTALL File , i need Alexnet so much please if is possible send me the zip file alexnet to my email : bakash.2017@vitstudent.ac.in

Mehmet: Unfortunately, this package would only work from 16b and beyond.

Nicole: We are working on the Add-Ons issue. Meanwhile, did you try downloading the support package from file exchange and then installing it?

i am matlab R2015b is there any way you can send me the package? my email adress is msodabas@gmail.com

I have R2018b and am getting this message "This add-on is not supported on your platform". Could anyone please help?
I previously had R2017b and it worked and installed perfectly. Colleagues of mine have R2018b and installed Alexnet with no problem!

magichush

Sir, I am using Matlab 2016a Windows 10 (64 bit) Version. It has an error "Neural Network Toolbox model for AlexNet is not available for this release of MATLAB"
Could you give me some suggestions? or send me .zip file to 18819431729@163.com
Thank You!

Hi , i`m using matlabR2016a and i cant download and use alexnet with MLPKGINSTALL File , i need Alexnet so much please if is possible send me the zip file alexnet to my email : mazhar.khaleghi@gmail.com

chao liang

I have MATLAB2017b. kindly can you send me the AlexNet installation file My email : liangchao@lsec.cc.ac.cn. thank you so much~

I have MATLAB2018b. kindly can you send me the AlexNet installation file My email : elharrouss.omar@gmail.com . thank you

xianyi chen

Sir, I am using Matlab 2016b Windows 10 (64 bit) Version. It has an error "Neural Network Toolbox model for AlexNet is not available for this release of MATLAB"
Could you give me some suggestions? or send me .zip file to xianyic243@gmail.com
Thank You!

Getting an error while installing support package. Anybody knows how to resolve this?

Chen Dadon

i am matlab R2015b is there any way you can send me the package? my email chendaddon@gmail.com

Sir, kindly send me the alexNet installation file. I am using matlab 2017a. My email: thinlfxz450@gmail.com. Thank you

asmaa hekal

I am using Matlab 2016b Windows 10 (64 bit) Version. Please send me .zip file to asmaahekal3@gmail.com Thank You!

Cheng Gu

my Matlab version is 2014a, is there any way that i can use this package? my email is chengcheng201713@gmail.com, thanks in adcance.

Hola quisiera obtener alexnet para matlab 2015a si es posible, mi correo ferloagher@gmail.com, muchas gracias!

Dongjin Bai

I am using Matlab 2016a. Please send me .zip file to this email: 1244810219@qq.com. Thanks!

nroskool

I am using Matlab 2016a. Please send me .zip file to my email: nroskool2@gmail.com. Thanks.

Bui Cuong

I have Matlab 2015a version, is there any possibility to install this package on this version?!
Please send me .ZIP file to this email:svhvktqs@gmail.com

Hi,
Am using Matlab R2017a Windows 8 (64 bit) Version. Kindly send me the alexnet and usbwebcams .zip file to muioxygen@gmail.com
Thanks in advance.

nmsl

I am using Matlab R2016b Windows 10 (64 bit) Version. Please send me .zip file to 20161781@stu.neu.edu.cn Thank You!

I am using Matlab R2017b Windows 10 (64 bit) Version. Please send me .zip file to mina.ghaffari@hdr.mq.edu.au Thank You!

Hello..I am using Matlab R2015a Windows Version. Please send me .zip file to pranotikhollam@gmail.com. Thanks You!

how can i install alexnet.mlpkginstall file ?

Andrew Kim

Hi, I'm using a R2016a, R2017b . but Unforutnately I cannot receive file related website. I guess security system would block from your website. So I need to get a file which is... alexnet directly. So plz. Could you send me a alexnet.zip file? My email address is feel0305@gmail.net . Thank you!

DENG ZHIYUN

I'm using R2018a & R2016b. Could you please send me a .zip file to my email zydeng@whut.edu.cn. Thanks in advance !

Samir khan

getting an error while installing support package.

I am using Matlab R2015a. if you have the file compatible with this version. Kindly share with me at manikanta.y92@gmail.com
Thank you.

Illyes Adam

I am using Matlab R2015a Windows Version. Please send me .zip file to illyesadamoffice@gmail.com@gmail.com Thanks You!

2018a Windows version. Please send to osumunemichael@gmail.com

I am using Matlab R2015a Mac Version. Please send me .zip file to lcguevara1994@gmail.com Thanks You.

Don Chen

I am using Matlab R2018a Mac version. could you mind send me .zip file dchen2008@gmail.com? Thanks You.

indy Han

I am using Matlab R2015a Mac Version. Please send me .zip file to indy@khu.ac.kr Thanks You.

gang liu

I am using R2016a. Please send me .zip file at 1401519261@qq.com Thanks in advance

hi does this model support R2018a? i tried to install it for add-on manager and failed.
can you please send me a zip file to haims@altair-semi.com

I'm using R2017a. Could you please send me a .zip file to my email karen.brosse@hotmail.fr. Thanks in advance !

I'm using Matlab R2015a. Could you please send me a .zip file to my email: usmansuleiman5050@yahoo.com. Many thanks

YanNuan Li

Daniel Paz

I'm using Matlab 2015a. Could you please send me a .zip file to my email: danielvalor06@gmail.com. Many thanks

Carter Wang

I am using R2016a. Please send me .zip file at alan6115yes@gmail.com Thanks in advance.

I am using Matlab 2015a. Please send me a .zip file to my email: annagaff@umich.edu. Thank you!

Oindri

I am using R2016a. Please send me .zip file at oindrimajumdar91@outlook.com. Thanks in advance.

I am using Matlab 2015a. Please send me .zip file to my email: shimanofarid@gmail.com. Thanks

This package with the transfer learning tutorial/script has been excellent for me! Thanks!

I have one question. In the AlexNet paper (Krizhevsky, et al. 2012), they reference dividing the CNN along two paths to distribute the tasks to two GPUs. However, this task division is not explicit in the net.Layers result for the pre-trained AlexNet.

Instead, we have this:

25x1 Layer array with layers:

1 'data' Image Input 227x227x3 images with 'zerocenter' normalization
2 'conv1' Convolution 96 11x11x3 convolutions with stride [4 4] and padding [0 0 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 0 0]
6 'conv2' Convolution 256 5x5x48 convolutions with stride [1 1] and padding [2 2 2 2]

If the CNN is not being dividing along two different computation paths, then should conv2 actually be 5x5x96?

Does Matlab software automatically realize that 48 is half of 96 and divide the CNN accordingly?

Thanks,
Scott

XIN TANG

Nixon Dhar

please, can anyone share the alexnet file to me?
email:nixondhar.ustccse@gmail.com

I am using Matlab 2015a. Please send me .zip file to my email: panaree.chaipayom@gmail.com. Thanks.

Adaktk

Please send me the zip file for install offline for MATLAB 2015a. The zip file for offline installation?
adaktk@gmail.com

taha khan

WATSON HUA

I can't install it for Matlab 2017a, can anyone send me .zip file to my mail hualuy@126.com. Thanks in advance!

I can't install it for Matlab 2017a, Matlab crashes automatically after opening add ons menu, can anyone send me .zip file to my mail pratulkumar1998@gmail.com. Thanks in advance!

I am using matlab R2016b. I can not install alexnet showing an error. Could you please send me .ZIP file to this email: dianalucia20@gmail.com. ThX

yang wang

Nixon Dhar

Can you please share alexnet for Matlab r2017a?
email: nixondhar.ustccse@gmail.com

Sophia Bano

I am unable to run the mlpkginstall file format on ubuntu 14.04 with Matlab2017b installed. Neither the Add-on button responds. Any idea how to solve this issue?

Can you send me the .zip file so that I can use it directly?

THanks

Zhiguo Tan

Could you please send me .ZIP file to this email: tanzhiguo@foxmail.com, for my computer is offline.

ing mecrat

perdone me podrían pasarme el paquete de AlexNet sal.moreno02@gmail.com gracias

I have Matlab 2015a version, is there any possibility to install this package on this version?!
Please send me .ZIP file to this email: arvindrvs21@gmail.com

rcjr15

Is there a way to install this support toolbox model using command line? without using GUI interface? I am facing a problem to install the same on our high-performance NeSI (New Zealand eScience Infrastructure) cluster?

Minh Pham

Kelen Lv

jixiang

Because my computer is offline,so could you please send me .ZIP file to this email: liqiaojixiag@gmail.com

Chi-Tsung

How to use alexnet to detect shadow from single image

Hi, I have the Neural Network Toolbox installed on Matlab 2015B version, but the message "Neural Network Toolbox Model for AlexNet Network is not available for this release of MATLAB" appears when I try to install the function. Any solutions for 2015B version?

Can you please share alexnet for Matlab R2015a?
email: dionisiohenrique@ig.com.br

mohammed

Ali Subhan

Can you please share alexnet for Matlab r2015a?
email: alisfire@hotmail.com

How can i install this on Matlab 2015a?
genescu_alex@yahoo.com

I am facing problem installing it, maybe its the reason that I have Matlab 2015a, Could you given me a probable solution for it?
My email is harishkongari255.hk@gmail.com

Dear MathWorks Neural Network Toolbox Team,

Thank you very much for sharing the pre-trained AlexNet with the Matlab community. I have noticed that, after loading AlexNet, I have the following structure:

1 'data' Image Input 227x227x3 images with 'zerocenter' normalization
2 'conv1' Convolution 96 11x11x3 convolutions with stride [4 4] and padding [0 0 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 0 0]
6 'conv2' Convolution 256 5x5x48 convolutions with stride [1 1] and padding [2 2 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 0 0]
10 'conv3' Convolution 384 3x3x256 convolutions with stride [1 1] and padding [1 1 1 1]
11 'relu3' ReLU ReLU
12 'conv4' Convolution 384 3x3x192 convolutions with stride [1 1] and padding [1 1 1 1]
13 'relu4' ReLU ReLU
14 'conv5' Convolution 256 3x3x192 convolutions with stride [1 1] and padding [1 1 1 1]
15 'relu5' ReLU ReLU
16 'pool5' Max Pooling 3x3 max pooling with stride [2 2] and padding [0 0 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 crossentropyex with 'tench', 'goldfish', and 998 other classes

I would like to replicate the same structure, but train it from scratch. My code is:

layers = [ ...
imageInputLayer([227 227 3])
convolution2dLayer([11 11],96,'Stride',[4 4],'Padding',[0 0 0 0])
reluLayer
crossChannelNormalizationLayer(5)
maxPooling2dLayer(3,'Stride',[2 2],'Padding',[0 0 0 0])
convolution2dLayer([5 5],256,'Stride',[1 1],'Padding',[2 2 2 2])
reluLayer
crossChannelNormalizationLayer(5)
maxPooling2dLayer(3,'Stride',[2 2],'Padding',[0 0 0 0])
convolution2dLayer([3 3],384,'Stride',[1 1],'Padding',[1 1 1 1])
reluLayer
convolution2dLayer([3 3],384,'Stride',[1 1],'Padding',[1 1 1 1])
reluLayer
convolution2dLayer([3 3],256,'Stride',[1 1],'Padding',[1 1 1 1])
reluLayer
maxPooling2dLayer(3,'Stride',[2 2],'Padding',[0 0 0 0])
fullyConnectedLayer(4096)
reluLayer
dropoutLayer(0.5)
fullyConnectedLayer(4096)
reluLayer
dropoutLayer(0.5)
fullyConnectedLayer(1000)
softmaxLayer
classificationLayer]

which gets me:

1 '' Image Input 227x227x3 images with 'zerocenter' normalization
2 '' Convolution 96 11x11 convolutions with stride [4 4] and padding [0 0 0 0]
3 '' ReLU ReLU
4 '' Cross Channel Normalization cross channel normalization with 5 channels per element
5 '' Max Pooling 3x3 max pooling with stride [2 2] and padding [0 0 0 0]
6 '' Convolution 256 5x5 convolutions with stride [1 1] and padding [2 2 2 2]
7 '' ReLU ReLU
8 '' Cross Channel Normalization cross channel normalization with 5 channels per element
9 '' Max Pooling 3x3 max pooling with stride [2 2] and padding [0 0 0 0]
10 '' Convolution 384 3x3 convolutions with stride [1 1] and padding [1 1 1 1]
11 '' ReLU ReLU
12 '' Convolution 384 3x3 convolutions with stride [1 1] and padding [1 1 1 1]
13 '' ReLU ReLU
14 '' Convolution 256 3x3 convolutions with stride [1 1] and padding [1 1 1 1]
15 '' ReLU ReLU
16 '' Max Pooling 3x3 max pooling with stride [2 2] and padding [0 0 0 0]
17 '' Fully Connected 4096 fully connected layer
18 '' ReLU ReLU
19 '' Dropout 50% dropout
20 '' Fully Connected 4096 fully connected layer
21 '' ReLU ReLU
22 '' Dropout 50% dropout
23 '' Fully Connected 1000 fully connected layer
24 '' Softmax softmax
25 '' Classification Output crossentropyex

Pretty close, but I notice I am missing one dimension on the filters. When I try to set three dimensions, e.g. convolution2dLayer([11 11 3],96,'Stride',[4 4],'Padding',[0 0 0 0]), I get the error:

Error using convolution2dLayer>iParseInputArguments (line 116)
The value of 'FilterSize' is invalid. FilterSize must be a scalar or a row vector of two scalar values.

Error in convolution2dLayer (line 91)
args = iParseInputArguments(varargin{:});

Would you be so kind to help me?

Thank you very much in advance,

Inês Domingues

prashu kr

my mail is kodurprashanth@gmail.com

prashu kr

sir!! even i am using matlab 2016a,plz guide me to install this alexanet

Slim Hamdi

I have Matlab 2015a version, is there any possibility to install this package on this version?!
Please send me .ZIP file to this email: hamdislimm@gmail.com

Why I cannot use Alexnet on my images dataset.

clc;
clear;
images = imageDatastore('C:\Users\HIBA\Documents\Cancellable Biometrics\Datasets\NIST Faces 1','IncludeSubfolders',true,'LabelSource','foldernames');
[trainingImages,testingImages] = splitEachLabel(images,0.7,'randomized');
net = alexnet;
net.Layers;
layer = 'fc7';
trainingFeatures = activations(net,trainingImages,layer,'outputAs','channels');
testFeatures = activations(net,testingImages,layer);

i am using matlab r2016a i can not install alexnet showing an error ,undeclared variable so i am new to this field can u mail the instructions how to download alex net..
potnuru.shivaji2017@vitstudent.ac.in

kunal gokhe

I have matlab R2017.b, Could you please send me the zip file for install offline?
kunalgokhe@gmail.com

Dear Coleagues, could you send me the offline package compatible to R2011a into g6029694@au.edu ?
thank you

Jonas Ortiz

Dear Coleagues, could you send me the offline package into jonas.ortiz@br.bosch.com?
thank you

Dear all, please send the offline package into endalewsimie@gmail.com if u can. thank u

Dear , may you send me the package for offline installation ?
my email is : nnassime@yahoo.fr
Thankyou!

HELA LASS

Hi,
I'm using MATLAB 2015a. would you mind sending me The zip file for offline installation?
laswed.hela@gmail.com
Thanks,

Rafi Zaman

Hi, I have Matlab 2017a, and it is not downloading this package. may be its my internet or matlab down-loader problem which is not downloading through matlab. could any one kindly share downloaded package link?

Is this toolbox compatible with Matlab 2016b for macOS?

chao wei

Could not install on MATLAB R2016a,

Mohammad

Hi,
I'm using MATLAB 2015a. Can you please send me The zip file for offline installation?
jalaly.mohammad@gmail.com
Thanks,

hana razak

Hi,
I have Matlab R2015a. Could you please send me the zip file for install offline?
ladyhanarazak@gmail.com
Thank you

Ionut Barbu

@As Has: convert to 3-channel image with repmat
imgConverted = repmat(imgGrayscale, [1 1 3]) ;
should to the trick

I have matlab R2015.a, Could you please send me the zip file for install offline?
gnaoui.kheriji@enis.tn

As Has

how can i use alexnet , which trained on RGB images, with my gray level data ? should i convert my data into RGB ( computational time ) or convert the filter of alexnet layers into one channel (how ?)
thans

yun tang

someone who can't install it, just change your region and time zone to U.K. sir

I have matlab 2015, Could you please send me the zip file for install offline?
mostafa.elmallahi@hotmail.com

Keiko

yoga liu

Why con't I install it?? Matlab2016a

mage bryan

Interesting toolbox

Russ, unfortunately, you'd need an internet access to authenticate your account.

AlexNet does not work with 16a.

Is there another version that is suitable for MATLAB R2016a?

Russ White

How do you install an Add-On if you do have an internet connection? I have transferred download to a computer not connected to the internet.

HI @Arnav, it is possible to do that!

Ryan Ruan

Arnav Singh

As i am doing a project on leaf recognition so Is it possible to use my own leaf database for this network instead of using alexnet pre-trained database?

Guojin Feng

Collus Wang

Very good inspiration for beginners. I think also useful for experienced ML users since one can use it for transfer learning.

Could you please send me the zip file for install offline?
k.aljabri1691@yahoo.com

huat

When i run the downloaded alexnet, matlab shows the wrong use of assert. What is the reason for that?

Hesam

When I run the code for classify(net, I)
i get the error of :
An unexpected error occurred during CUDA execution. The CUDA error was:
all CUDA-capable devices are busy or unavailable

How can I run it just by CPU as I Dnont have GPU on this machine?

why does the install page take so much time to load ? this is my issue

Mohsen

Nice. really appreciate!

NIce JOb!

ben nad

hi,
i have MATLAB R2016a, and i get this error "Neural Network Toolbox Model for AlexNet Network is not available for this release of MATLAB", need some help

Binjie Yuan

The exact error message should be : The support package is not compatible with your version of MATLAB or operating system. So do I have to return to matlab r2016b to uss this package?

Binjie Yuan

I'm using matlab r2017a on win7. I got this error during installation: the support package is incompatible with matlab or operating system.

Ming Lin

Hossein

How can I install this centrally so everyone using MATLAB can have access to this toolbox? My first attempt in installing it created a local instance under my home directory

Naveen Soni

Emad mosbah: because its start working from 2016b version

emad mosbah

hello , i need help , am tried to install this package and i get this erreur <<neural network tollboox model for Alexnet not avialable for this realise of matlab >> , i have matlab R2016a_win64

David

user06

i need help. when i downloaded the package and when tried to install then the following error has been came.
https://localhost:61416/ui/install/supportsoftwareclient/supportsoftwareclient/index.html?workflowType=MLPKGINSTALL&installfolder=C:\ProgramData\MATLAB\SupportPackages\R2016b&basecode=ALEXNET&snc=191ED5 with erroe (-111)

You can do the following to get all the class labels:

net = alexnet()
net.Layers(end).ClassNames

Hello. How can I find the complete list of possible labels?

Adam Filion

This does require R2016b. Works great on that version. Short video on getting started using it.

https://www.mathworks.com/videos/deep-learning-in-11-lines-of-matlab-code-1481229977318.html

sofi babu`

is it compatible for 2014b ??

Vladka Vit

I think you need Matlab version 2016b, I had the same problem with version 2016a.

JS

Could not install on my 2016 version

JS

Tommy

I have similar issue Matlab gives me the following error:

> In alexnet (line 46)
In MyFirstDeepLearningTest (line 4)
Error using classify (line 122)
Requires at least three arguments.

Error in MyFirstDeepLearningTest (line 11)
label = classify(nnet, picture);

-----------
When I look at classify in the help is pulling it from the Statistics and Machine learning toolbox. Do you know how to force to use the Classify from the neural net toolbox?

Gerd Kunert

Requires also "Parallel Computing Toolbox" and CUDA-enabled NVIDIA GPU with compute capability 3.0 or higher.

Please correct the description.
Unfortunately, this package is thus useless for me.

Also, check out this submission that uses alexnet to classify objects in images captured by a webcam in real-time.
https://www.mathworks.com/matlabcentral/fileexchange/60659-deep-learning-in-11-lines-of-matlab-code

Richard

I think this submission would more interesting, if Mathworks were to provide the code to actually train the model.

I am making progress. But I still have two issues.

When I run
nnet = alexnet;

I get

>> label = classify(nnet,I);
Error using classify (line 122)
Requires at least three arguments.

>> which alexnet
C:\ProgramData\MATLAB\SupportPackages\R2016b\toolbox\nnet\supportpackages\alexnet\alexnet.m
>> nnet = alexnet;
Warning: While loading an object of class 'SeriesNetwork':
Can't load 'C:\Program Files\MATLAB\R2016b\bin\win64\cnngpu.dll': The specified module could not be found.
> In alexnet (line 46)

When I try to use it with

label = classify(nnet,image);

I get

>> label = classify(nnet,I);
Error using classify (line 122)
Requires at least three arguments.

Any help or advice please?

Steve

didn't work for me

I have 2016b. I installed the file but when I tried to run it I received:
Can't reload 'C:\Program Files\MATLAB\R2016b\bin\win64\cnngpu.dll'
I restarted MATLAB.
When I then tried to click on the installation file I had the mes alexnet was not available for this release of MATLAB :(

Any way to run this package on R2016a?

Harsh

Hongjie Ma

to ZGCACI:

% Location of pre-trained "AlexNet"
cnnURL = 'http://www.vlfeat.org/matconvnet/models/beta16/imagenet-caffe-alex.mat';
% Store CNN model in a temporary folder
cnnMatFile = fullfile(tempdir, 'imagenet-caffe-alex.mat');
Note: Download time of the data depends on your internet connection. The next set of commands use MATLAB to download the data and will block MATLAB. Alternatively, you can use your web browser to first download the dataset to your local disk. To use the file you downloaded from the web, change the 'cnnMatFile' variable above to the location of the downloaded file.

ZGCACI

How might I extract alexnet.mlpkginstall file and run on offline computer where my 2016bMatlab is located? No way for me to run the support package installer from my offline computer.

Any help would be greatly appreciated. Thanks

MATLAB Release Compatibility
Created with R2016b
Compatible with R2016b to R2019b
Platform Compatibility
Windows macOS Linux