MATLAB Answers

Order of labels in Alexnet's outputs vs. order of labels in ImageNet 2010

1 view (last 30 days)
Soan Duong
Soan Duong on 21 Sep 2020
Commented: Madhav Thakker on 26 Sep 2020
Hi all,
Do you know the difference between the order of labels in the Alexnet's output and the order of labels in ImageNet 2010?
As far as I know, Alexnet in MATLAB was trained with ImageNet 2010.
I got the Alexnet's outputs the first 1000 image from the test set of ImageNet 2010, then I compared the outputs with the corresponding ground-truth (ImageNet 2010 data were downloaded at http://www.image-net.org/challenges/LSVRC/2010/downloads). However, I got just 5/1000 label matched.
Thus, I am thinking that the order of labels in Alexnet's outputs and the order of labels in ImageNet 2010 are different. Do you know how different they are?
Any help would be highly appreciated.
Best,
Soan
  2 Comments

Sign in to comment.

Answers (1)

Madhav Thakker
Madhav Thakker on 24 Sep 2020
Hi Saon,
You can get the labels for the pretrained Alexnet in MATLAB by loading the pretrained model.
net = alexnet;
net.Layers(25,1).Classes
You can get the labels of ImageNet 2010 from the offical ImageNet site and compare the labels. I can't think of a reason why MATLAB Alexnet's labels will be different from offical ImageNet labels.
Hope this helps.
  4 Comments
Madhav Thakker
Madhav Thakker on 26 Sep 2020
Hi Saon, can you share the source of your ImageNet labels (imagenet_labels.txt). A link from where you got the labels might be helpful.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!