5

If I want to use pretrained VGG19 network, I can simply do

from keras.applications.vgg19 import VGG19
VGG19(weights='imagenet')

Is there a similar implementation for AlexNet in keras or any other library?

Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87

2 Answers2

3

In case anyone comes here for a solution,
I found a pretrained alex net from PyTorch here

import torchvision.models as models
alexnet_model = models.alexnet(pretrained=True)
Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87
2

You can find pretrained AlexNet model for keras here.

xashru
  • 3,400
  • 2
  • 17
  • 30
  • Its not working. In `convnets-keras/convnetskeras/customlayers.py` it uses `from keras.layers.core import Merge` which has been removed now: https://stackoverflow.com/questions/51031519/cant-import-keras-layers-merge – Nagabhushan S N Feb 02 '19 at 11:12