This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cnn_model(features, labels, mode, params): | |
''' | |
CNN model architecture for use with TensorFlow estimator | |
Architecture: | |
256x256x3 input -> [conv -> max pool] x5 -> fully_connected -> softmax | |
Inputs: | |
features -- the input images, shape: [N x 256 x 256 x 3] | |
labels -- raw class integers, shape: [N, ] |