First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgradeThen, install required libraries:
| # -*- coding: utf-8 -*- | |
| import GlobalParams as PARAMS | |
| from keras import backend as K | |
| from keras.layers import Input | |
| from keras.layers import Lambda | |
| from keras.layers import Dense | |
| from keras.layers import Dropout | |
| from keras.layers import Activation |
| C1 | C2 | C3 | C4 | |
|---|---|---|---|---|
| CV_8U | 0 | 8 | 16 | 24 |
| CV_8S | 1 | 9 | 17 | 25 |
##VGG16 model for Keras
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman