Professional Documents
Culture Documents
class SmallerVGGNet:
@staticmethod
def build(width, height, depth, classes):
# initialize the model along with the input shape to be
# "channels last" and the channels dimension itself
model = Sequential()
inputShape = (height, width, depth)
chanDim = -1
# softmax classifier
model.add(Dense(classes))
model.add(Activation("softmax"))