Artificial Intelligence Nanodegree

Convolutional Neural Networks

Project: Write an Algorithm for a Dog Identification App


In this notebook, some template code has already been provided for you, and you will need to implement additional functionality to successfully complete this project. You will not need to modify the included code beyond what is requested. Sections that begin with '(IMPLEMENTATION)' in the header indicate that the following block of code will require additional functionality which you must provide. Instructions will be provided for each section, and the specifics of the implementation are marked in the code block with a 'TODO' statement. Please be sure to read the instructions carefully!

Note: Once you have completed all of the code implementations, you need to finalize your work by exporting the iPython Notebook as an HTML document. Before exporting the notebook to html, all of the code cells need to have been run so that reviewers can see the final implementation and output. You can then export the notebook by using the menu above and navigating to \n", "File -> Download as -> HTML (.html). Include the finished document along with this notebook as your submission.

In addition to implementing code, there will be questions that you must answer which relate to the project and your implementation. Each section where you will answer a question is preceded by a 'Question X' header. Carefully read each question and provide thorough answers in the following text boxes that begin with 'Answer:'. Your project submission will be evaluated based on your answers to each of the questions and the implementation you provide.

Note: Code and Markdown cells can be executed using the Shift + Enter keyboard shortcut. Markdown cells can be edited by double-clicking the cell to enter edit mode.

The rubric contains optional "Stand Out Suggestions" for enhancing the project beyond the minimum requirements. If you decide to pursue the "Stand Out Suggestions", you should include the code in this IPython notebook.


Why We're Here

In this notebook, you will make the first steps towards developing an algorithm that could be used as part of a mobile or web app. At the end of this project, your code will accept any user-supplied image as input. If a dog is detected in the image, it will provide an estimate of the dog's breed. If a human is detected, it will provide an estimate of the dog breed that is most resembling. The image below displays potential sample output of your finished project (... but we expect that each student's algorithm will behave differently!).

In this real-world setting, you will need to piece together a series of models to perform different tasks; for instance, the algorithm that detects humans in an image will be different from the CNN that infers dog breed. There are many points of possible failure, and no perfect algorithm exists. Your imperfect solution will nonetheless create a fun user experience!

The Road Ahead

We break the notebook into separate steps. Feel free to use the links below to navigate the notebook.

  • Step 0: Import Datasets
  • Step 1: Detect Humans
  • Step 2: Detect Dogs
  • Step 3: Create a CNN to Classify Dog Breeds (from Scratch)
  • Step 4: Use a CNN to Classify Dog Breeds (using Transfer Learning)
  • Step 5: Create a CNN to Classify Dog Breeds (using Transfer Learning)
  • Step 6: Write your Algorithm
  • Step 7: Test Your Algorithm

Step 0: Import Datasets

Import Dog Dataset

In the code cell below, we import a dataset of dog images. We populate a few variables through the use of the load_files function from the scikit-learn library:

  • train_files, valid_files, test_files - numpy arrays containing file paths to images
  • train_targets, valid_targets, test_targets - numpy arrays containing onehot-encoded classification labels
  • dog_names - list of string-valued dog breed names for translating labels

In [46]:
from sklearn.datasets import load_files       
from keras.utils import np_utils
import numpy as np
from glob import glob

# define function to load train, test, and validation datasets
def load_dataset(path):
    data = load_files(path)
    dog_files = np.array(data['filenames'])
    dog_targets = np_utils.to_categorical(np.array(data['target']), 133)
    return dog_files, dog_targets

# load train, test, and validation datasets
train_files, train_targets = load_dataset('dogImages/train')
valid_files, valid_targets = load_dataset('dogImages/valid')
test_files, test_targets = load_dataset('dogImages/test')

# load list of dog names
dog_names = [item[20:-1] for item in sorted(glob("dogImages/train/*/"))]

# print statistics about the dataset
print('There are %d total dog categories.' % len(dog_names))
print('There are %s total dog images.\n' % len(np.hstack([train_files, valid_files, test_files])))
print('There are %d training dog images.' % len(train_files))
print('There are %d validation dog images.' % len(valid_files))
print('There are %d test dog images.'% len(test_files))


There are 133 total dog categories.
There are 8351 total dog images.

There are 6680 training dog images.
There are 835 validation dog images.
There are 836 test dog images.

Import Human Dataset

In the code cell below, we import a dataset of human images, where the file paths are stored in the numpy array human_files.


In [2]:
import random
random.seed(8675309)

# load filenames in shuffled human dataset
human_files = np.array(glob("lfw/*/*"))
random.shuffle(human_files)
print(human_files[3])
# print statistics about the dataset
print('There are %d total human images.' % len(human_files))


lfw\Laurence_Fishburne\Laurence_Fishburne_0001.jpg
There are 13233 total human images.

Step 1: Detect Humans

We use OpenCV's implementation of Haar feature-based cascade classifiers to detect human faces in images. OpenCV provides many pre-trained face detectors, stored as XML files on github. We have downloaded one of these detectors and stored it in the haarcascades directory.

In the next code cell, we demonstrate how to use this detector to find human faces in a sample image.


In [3]:
import cv2                
import matplotlib.pyplot as plt                        
%matplotlib inline                               

# extract pre-trained face detector
face_cascade = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_alt.xml')

# load color (BGR) image
img = cv2.imread(human_files[3])

# convert BGR image to grayscale
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

# find faces in image
faces = face_cascade.detectMultiScale(gray)

# print number of faces detected in the image
print('Number of faces detected:', len(faces))

# get bounding box for each detected face
for (x,y,w,h) in faces:
    # add bounding box to color image
    cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
    
# convert BGR image to RGB for plotting
cv_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)

# display the image, along with bounding box
plt.imshow(cv_rgb)
plt.show()


Number of faces detected: 1

Before using any of the face detectors, it is standard procedure to convert the images to grayscale. The detectMultiScale function executes the classifier stored in face_cascade and takes the grayscale image as a parameter.

In the above code, faces is a numpy array of detected faces, where each row corresponds to a detected face. Each detected face is a 1D array with four entries that specifies the bounding box of the detected face. The first two entries in the array (extracted in the above code as x and y) specify the horizontal and vertical positions of the top left corner of the bounding box. The last two entries in the array (extracted here as w and h) specify the width and height of the box.

Write a Human Face Detector

We can use this procedure to write a function that returns True if a human face is detected in an image and False otherwise. This function, aptly named face_detector, takes a string-valued file path to an image as input and appears in the code block below.


In [4]:
# returns "True" if face is detected in image stored at img_path
def face_detector(img_path):
    img = cv2.imread(img_path)
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    faces = face_cascade.detectMultiScale(gray)
    return len(faces) > 0

(IMPLEMENTATION) Assess the Human Face Detector

Question 1: Use the code cell below to test the performance of the face_detector function.

  • What percentage of the first 100 images in human_files have a detected human face?
  • What percentage of the first 100 images in dog_files have a detected human face?

Ideally, we would like 100% of human images with a detected face and 0% of dog images with a detected face. You will see that our algorithm falls short of this goal, but still gives acceptable performance. We extract the file paths for the first 100 images from each of the datasets and store them in the numpy arrays human_files_short and dog_files_short.

Answer: The face_detector detects:

  • 99% human face in human_files
  • 11% human face in dog_files

In [5]:
human_files_short = human_files[:100]
dog_files_short = train_files[:100]
# Do NOT modify the code above this line.

## TODO: Test the performance of the face_detector algorithm 
## on the images in human_files_short and dog_files_short.
detected_humans = 0
detected_humans_in_dogs = 0
for i in range(100):
    if face_detector(human_files_short[i]):
        detected_humans += 1
    if face_detector(dog_files_short[i]):
        detected_humans_in_dogs += 1
print(detected_humans)
print(detected_humans_in_dogs)


99
11

Question 2: This algorithmic choice necessitates that we communicate to the user that we accept human images only when they provide a clear view of a face (otherwise, we risk having unneccessarily frustrated users!). In your opinion, is this a reasonable expectation to pose on the user? If not, can you think of a way to detect humans in images that does not necessitate an image with a clearly presented face?

Answer: I beleive asking user to present a clear face to detect whether they are human or not is not reasonable. Often there are instances when cmaera angle might be different, lighting is low or any obstruction between camera and human(may be a dog). This results in not so clear face in the image. If the algorithm works only on clear face this might prove to get bad feedback from end users.

I beleive we can use a combination of Haar features from opencv repository to pinpoint human face in image.

We suggest the face detector from OpenCV as a potential way to detect human images in your algorithm, but you are free to explore other approaches, especially approaches that make use of deep learning :). Please use the code cell below to design and test your own face detection algorithm. If you decide to pursue this optional task, report performance on each of the datasets.


In [6]:
## (Optional) TODO: Report the performance of another  
## face detection algorithm on the LFW dataset
### Feel free to use as many code cells as needed.

Step 2: Detect Dogs

In this section, we use a pre-trained ResNet-50 model to detect dogs in images. Our first line of code downloads the ResNet-50 model, along with weights that have been trained on ImageNet, a very large, very popular dataset used for image classification and other vision tasks. ImageNet contains over 10 million URLs, each linking to an image containing an object from one of 1000 categories. Given an image, this pre-trained ResNet-50 model returns a prediction (derived from the available categories in ImageNet) for the object that is contained in the image.


In [7]:
from keras.applications.resnet50 import ResNet50

# define ResNet50 model
ResNet50_model = ResNet50(weights='imagenet')

Pre-process the Data

When using TensorFlow as backend, Keras CNNs require a 4D array (which we'll also refer to as a 4D tensor) as input, with shape

$$ (\text{nb_samples}, \text{rows}, \text{columns}, \text{channels}), $$

where nb_samples corresponds to the total number of images (or samples), and rows, columns, and channels correspond to the number of rows, columns, and channels for each image, respectively.

The path_to_tensor function below takes a string-valued file path to a color image as input and returns a 4D tensor suitable for supplying to a Keras CNN. The function first loads the image and resizes it to a square image that is $224 \times 224$ pixels. Next, the image is converted to an array, which is then resized to a 4D tensor. In this case, since we are working with color images, each image has three channels. Likewise, since we are processing a single image (or sample), the returned tensor will always have shape

$$ (1, 224, 224, 3). $$

The paths_to_tensor function takes a numpy array of string-valued image paths as input and returns a 4D tensor with shape

$$ (\text{nb_samples}, 224, 224, 3). $$

Here, nb_samples is the number of samples, or number of images, in the supplied array of image paths. It is best to think of nb_samples as the number of 3D tensors (where each 3D tensor corresponds to a different image) in your dataset!


In [8]:
from keras.preprocessing import image                  
from tqdm import tqdm

def path_to_tensor(img_path):
    # loads RGB image as PIL.Image.Image type
    img = image.load_img(img_path, target_size=(224, 224))
    # convert PIL.Image.Image type to 3D tensor with shape (224, 224, 3)
    x = image.img_to_array(img)
    # convert 3D tensor to 4D tensor with shape (1, 224, 224, 3) and return 4D tensor
    return np.expand_dims(x, axis=0)

def paths_to_tensor(img_paths):
    list_of_tensors = [path_to_tensor(img_path) for img_path in tqdm(img_paths)]
    return np.vstack(list_of_tensors)

Making Predictions with ResNet-50

Getting the 4D tensor ready for ResNet-50, and for any other pre-trained model in Keras, requires some additional processing. First, the RGB image is converted to BGR by reordering the channels. All pre-trained models have the additional normalization step that the mean pixel (expressed in RGB as $[103.939, 116.779, 123.68]$ and calculated from all pixels in all images in ImageNet) must be subtracted from every pixel in each image. This is implemented in the imported function preprocess_input. If you're curious, you can check the code for preprocess_input here.

Now that we have a way to format our image for supplying to ResNet-50, we are now ready to use the model to extract the predictions. This is accomplished with the predict method, which returns an array whose $i$-th entry is the model's predicted probability that the image belongs to the $i$-th ImageNet category. This is implemented in the ResNet50_predict_labels function below.

By taking the argmax of the predicted probability vector, we obtain an integer corresponding to the model's predicted object class, which we can identify with an object category through the use of this dictionary.


In [9]:
from keras.applications.resnet50 import preprocess_input, decode_predictions

def ResNet50_predict_labels(img_path):
    # returns prediction vector for image located at img_path
    img = preprocess_input(path_to_tensor(img_path))
    return np.argmax(ResNet50_model.predict(img))

Write a Dog Detector

While looking at the dictionary, you will notice that the categories corresponding to dogs appear in an uninterrupted sequence and correspond to dictionary keys 151-268, inclusive, to include all categories from 'Chihuahua' to 'Mexican hairless'. Thus, in order to check to see if an image is predicted to contain a dog by the pre-trained ResNet-50 model, we need only check if the ResNet50_predict_labels function above returns a value between 151 and 268 (inclusive).

We use these ideas to complete the dog_detector function below, which returns True if a dog is detected in an image (and False if not).


In [10]:
### returns "True" if a dog is detected in the image stored at img_path
def dog_detector(img_path):
    prediction = ResNet50_predict_labels(img_path)
    return ((prediction <= 268) & (prediction >= 151))

(IMPLEMENTATION) Assess the Dog Detector

Question 3: Use the code cell below to test the performance of your dog_detector function.

  • What percentage of the images in human_files_short have a detected dog?
  • What percentage of the images in dog_files_short have a detected dog?

Answer: The dog_detector detects:

  • 1% as dog in human_files_short
  • 97% as dog in dog_files_short

In [11]:
### TODO: Test the performance of the dog_detector function
### on the images in human_files_short and dog_files_short.
detected_dogs = 0
detected_dogs_in_humans = 0
for i in range(100):
    if dog_detector(dog_files_short[i]):
        detected_dogs += 1
    if dog_detector(human_files_short[i]):
        detected_dogs_in_humans += 1

print(detected_dogs_in_humans)
print(detected_dogs)


1
97

Step 3: Create a CNN to Classify Dog Breeds (from Scratch)

Now that we have functions for detecting humans and dogs in images, we need a way to predict breed from images. In this step, you will create a CNN that classifies dog breeds. You must create your CNN from scratch (so, you can't use transfer learning yet!), and you must attain a test accuracy of at least 1%. In Step 5 of this notebook, you will have the opportunity to use transfer learning to create a CNN that attains greatly improved accuracy.

Be careful with adding too many trainable layers! More parameters means longer training, which means you are more likely to need a GPU to accelerate the training process. Thankfully, Keras provides a handy estimate of the time that each epoch is likely to take; you can extrapolate this estimate to figure out how long it will take for your algorithm to train.

We mention that the task of assigning breed to dogs from images is considered exceptionally challenging. To see why, consider that even a human would have great difficulty in distinguishing between a Brittany and a Welsh Springer Spaniel.

Brittany Welsh Springer Spaniel

It is not difficult to find other dog breed pairs with minimal inter-class variation (for instance, Curly-Coated Retrievers and American Water Spaniels).

Curly-Coated Retriever American Water Spaniel

Likewise, recall that labradors come in yellow, chocolate, and black. Your vision-based algorithm will have to conquer this high intra-class variation to determine how to classify all of these different shades as the same breed.

Yellow Labrador Chocolate Labrador Black Labrador

We also mention that random chance presents an exceptionally low bar: setting aside the fact that the classes are slightly imabalanced, a random guess will provide a correct answer roughly 1 in 133 times, which corresponds to an accuracy of less than 1%.

Remember that the practice is far ahead of the theory in deep learning. Experiment with many different architectures, and trust your intuition. And, of course, have fun!

Pre-process the Data

We rescale the images by dividing every pixel in every image by 255.


In [12]:
from PIL import ImageFile                            
ImageFile.LOAD_TRUNCATED_IMAGES = True                 

# pre-process the data for Keras
train_tensors = paths_to_tensor(train_files).astype('float32')/255
valid_tensors = paths_to_tensor(valid_files).astype('float32')/255
test_tensors = paths_to_tensor(test_files).astype('float32')/255


100%|██████████████████████████████████████████████████████████████████████████████| 6632/6632 [01:42<00:00, 64.99it/s]
100%|████████████████████████████████████████████████████████████████████████████████| 835/835 [00:12<00:00, 65.90it/s]
100%|████████████████████████████████████████████████████████████████████████████████| 836/836 [00:12<00:00, 69.10it/s]

(IMPLEMENTATION) Model Architecture

Create a CNN to classify dog breed. At the end of your code cell block, summarize the layers of your model by executing the line:

    model.summary()

We have imported some Python modules to get you started, but feel free to import as many modules as you need. If you end up getting stuck, here's a hint that specifies a model that trains relatively fast on CPU and attains >1% test accuracy in 5 epochs:

Question 4: Outline the steps you took to get to your final CNN architecture and your reasoning at each step. If you chose to use the hinted architecture above, describe why you think that CNN architecture should work well for the image classification task.

Answer: I took following steps to create the CNN architecture:

  • Checked the shapes of training sensors.
  • Created first convolutional layer with the input shape, filter of size 16, kernel_size of 2, strides of 1 & relu activation function.
  • Added Pooling layer with pool_size of 2 and strides of 2.
  • At last added Dense layer with a softmax activation function

In [108]:
from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D
from keras.layers import Dropout, Flatten, Dense
from keras.models import Sequential

model = Sequential()
print(train_tensors.shape)
### TODO: Define your architecture.
model.add(Conv2D(filters=16, kernel_size=2, strides=1, activation='relu', input_shape=(224,224,3)))
model.add(MaxPooling2D(pool_size=2, strides=2))
model.add(Conv2D(filters=32, kernel_size=2, strides=1, activation='relu'))
model.add(MaxPooling2D(pool_size=2, strides=2))
model.add(Conv2D(filters=64, kernel_size=2, strides=1, activation='relu'))
model.add(MaxPooling2D(pool_size=2, strides=2))
model.add(GlobalAveragePooling2D())
model.add(Dense(133, activation='softmax'))
model.summary()


(6632, 224, 224, 3)
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
conv2d_25 (Conv2D)           (None, 223, 223, 16)      208       
_________________________________________________________________
max_pooling2d_67 (MaxPooling (None, 111, 111, 16)      0         
_________________________________________________________________
conv2d_26 (Conv2D)           (None, 110, 110, 32)      2080      
_________________________________________________________________
max_pooling2d_68 (MaxPooling (None, 55, 55, 32)        0         
_________________________________________________________________
conv2d_27 (Conv2D)           (None, 54, 54, 64)        8256      
_________________________________________________________________
max_pooling2d_69 (MaxPooling (None, 27, 27, 64)        0         
_________________________________________________________________
global_average_pooling2d_14  (None, 64)                0         
_________________________________________________________________
dense_14 (Dense)             (None, 133)               8645      
=================================================================
Total params: 19,189.0
Trainable params: 19,189.0
Non-trainable params: 0.0
_________________________________________________________________

Compile the Model


In [25]:
model.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'])

(IMPLEMENTATION) Train the Model

Train your model in the code cell below. Use model checkpointing to save the model that attains the best validation loss.

You are welcome to augment the training data, but this is not a requirement.


In [26]:
from keras.callbacks import ModelCheckpoint  

### TODO: specify the number of epochs that you would like to use to train the model.

epochs = 5

### Do NOT modify the code below this line.

checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.from_scratch.hdf5', 
                               verbose=1, save_best_only=True)

model.fit(train_tensors, train_targets, 
          validation_data=(valid_tensors, valid_targets),
          epochs=epochs, batch_size=20, callbacks=[checkpointer], verbose=1)


Train on 6632 samples, validate on 835 samples
Epoch 1/5
6620/6632 [============================>.] - ETA: 373s - loss: 4.8930 - acc: 0.0000e+00 - ETA: 303s - loss: 4.8957 - acc: 0.0000e+00 - ETA: 282s - loss: 4.8871 - acc: 0.0167     - ETA: 272s - loss: 4.8922 - acc: 0.0125 - ETA: 267s - loss: 4.8860 - acc: 0.0300 - ETA: 261s - loss: 4.8897 - acc: 0.0333 - ETA: 257s - loss: 4.8935 - acc: 0.0286 - ETA: 254s - loss: 4.8932 - acc: 0.0250 - ETA: 252s - loss: 4.8869 - acc: 0.0333 - ETA: 249s - loss: 4.8873 - acc: 0.0300 - ETA: 248s - loss: 4.8847 - acc: 0.0273 - ETA: 246s - loss: 4.8891 - acc: 0.0250 - ETA: 245s - loss: 4.8905 - acc: 0.0231 - ETA: 244s - loss: 4.8900 - acc: 0.0214 - ETA: 242s - loss: 4.8920 - acc: 0.0200 - ETA: 241s - loss: 4.8901 - acc: 0.0188 - ETA: 240s - loss: 4.8914 - acc: 0.0176 - ETA: 240s - loss: 4.8912 - acc: 0.0167 - ETA: 238s - loss: 4.8924 - acc: 0.0158 - ETA: 238s - loss: 4.8918 - acc: 0.0150 - ETA: 238s - loss: 4.8908 - acc: 0.0143 - ETA: 237s - loss: 4.8912 - acc: 0.0136 - ETA: 236s - loss: 4.8906 - acc: 0.0130 - ETA: 236s - loss: 4.8905 - acc: 0.0125 - ETA: 236s - loss: 4.8904 - acc: 0.0120 - ETA: 235s - loss: 4.8902 - acc: 0.0115 - ETA: 235s - loss: 4.8905 - acc: 0.0111 - ETA: 235s - loss: 4.8898 - acc: 0.0125 - ETA: 235s - loss: 4.8884 - acc: 0.0155 - ETA: 235s - loss: 4.8881 - acc: 0.0150 - ETA: 234s - loss: 4.8868 - acc: 0.0161 - ETA: 234s - loss: 4.8863 - acc: 0.0172 - ETA: 233s - loss: 4.8863 - acc: 0.0167 - ETA: 233s - loss: 4.8866 - acc: 0.0162 - ETA: 232s - loss: 4.8871 - acc: 0.0157 - ETA: 232s - loss: 4.8881 - acc: 0.0153 - ETA: 231s - loss: 4.8875 - acc: 0.0149 - ETA: 231s - loss: 4.8869 - acc: 0.0145 - ETA: 230s - loss: 4.8866 - acc: 0.0141 - ETA: 230s - loss: 4.8860 - acc: 0.0138 - ETA: 229s - loss: 4.8867 - acc: 0.0134 - ETA: 229s - loss: 4.8859 - acc: 0.0131 - ETA: 229s - loss: 4.8853 - acc: 0.0128 - ETA: 229s - loss: 4.8858 - acc: 0.0125 - ETA: 229s - loss: 4.8863 - acc: 0.0122 - ETA: 229s - loss: 4.8860 - acc: 0.0120 - ETA: 229s - loss: 4.8858 - acc: 0.0117 - ETA: 228s - loss: 4.8848 - acc: 0.0135 - ETA: 228s - loss: 4.8850 - acc: 0.0133 - ETA: 228s - loss: 4.8853 - acc: 0.0130 - ETA: 227s - loss: 4.8854 - acc: 0.0137 - ETA: 227s - loss: 4.8861 - acc: 0.0135 - ETA: 227s - loss: 4.8866 - acc: 0.0132 - ETA: 226s - loss: 4.8864 - acc: 0.0130 - ETA: 226s - loss: 4.8866 - acc: 0.0127 - ETA: 225s - loss: 4.8872 - acc: 0.0125 - ETA: 225s - loss: 4.8863 - acc: 0.0132 - ETA: 224s - loss: 4.8862 - acc: 0.0129 - ETA: 224s - loss: 4.8857 - acc: 0.0127 - ETA: 223s - loss: 4.8863 - acc: 0.0125 - ETA: 224s - loss: 4.8865 - acc: 0.0123 - ETA: 225s - loss: 4.8860 - acc: 0.0121 - ETA: 225s - loss: 4.8865 - acc: 0.0119 - ETA: 225s - loss: 4.8860 - acc: 0.0117 - ETA: 226s - loss: 4.8862 - acc: 0.0115 - ETA: 225s - loss: 4.8867 - acc: 0.0114 - ETA: 224s - loss: 4.8860 - acc: 0.0119 - ETA: 223s - loss: 4.8861 - acc: 0.0118 - ETA: 222s - loss: 4.8862 - acc: 0.0116 - ETA: 221s - loss: 4.8854 - acc: 0.0121 - ETA: 220s - loss: 4.8857 - acc: 0.0120 - ETA: 219s - loss: 4.8853 - acc: 0.0118 - ETA: 218s - loss: 4.8852 - acc: 0.0116 - ETA: 218s - loss: 4.8856 - acc: 0.0115 - ETA: 217s - loss: 4.8855 - acc: 0.0113 - ETA: 216s - loss: 4.8856 - acc: 0.0112 - ETA: 215s - loss: 4.8855 - acc: 0.0110 - ETA: 215s - loss: 4.8852 - acc: 0.0109 - ETA: 214s - loss: 4.8852 - acc: 0.0108 - ETA: 213s - loss: 4.8854 - acc: 0.0106 - ETA: 213s - loss: 4.8857 - acc: 0.0111 - ETA: 212s - loss: 4.8860 - acc: 0.0110 - ETA: 211s - loss: 4.8860 - acc: 0.0108 - ETA: 210s - loss: 4.8866 - acc: 0.0113 - ETA: 209s - loss: 4.8867 - acc: 0.0112 - ETA: 208s - loss: 4.8866 - acc: 0.0110 - ETA: 207s - loss: 4.8863 - acc: 0.0109 - ETA: 206s - loss: 4.8860 - acc: 0.0108 - ETA: 205s - loss: 4.8854 - acc: 0.0107 - ETA: 204s - loss: 4.8859 - acc: 0.0106 - ETA: 203s - loss: 4.8858 - acc: 0.0104 - ETA: 203s - loss: 4.8854 - acc: 0.0103 - ETA: 202s - loss: 4.8851 - acc: 0.0102 - ETA: 201s - loss: 4.8848 - acc: 0.0101 - ETA: 200s - loss: 4.8847 - acc: 0.0100 - ETA: 199s - loss: 4.8845 - acc: 0.0099 - ETA: 198s - loss: 4.8846 - acc: 0.0098 - ETA: 197s - loss: 4.8848 - acc: 0.0102 - ETA: 196s - loss: 4.8853 - acc: 0.0101 - ETA: 196s - loss: 4.8853 - acc: 0.0100 - ETA: 195s - loss: 4.8849 - acc: 0.0099 - ETA: 194s - loss: 4.8839 - acc: 0.0098 - ETA: 193s - loss: 4.8834 - acc: 0.0097 - ETA: 192s - loss: 4.8838 - acc: 0.0096 - ETA: 191s - loss: 4.8834 - acc: 0.0095 - ETA: 191s - loss: 4.8834 - acc: 0.0094 - ETA: 190s - loss: 4.8837 - acc: 0.0093 - ETA: 189s - loss: 4.8838 - acc: 0.0093 - ETA: 188s - loss: 4.8839 - acc: 0.0092 - ETA: 187s - loss: 4.8837 - acc: 0.0091 - ETA: 186s - loss: 4.8831 - acc: 0.0090 - ETA: 186s - loss: 4.8832 - acc: 0.0089 - ETA: 185s - loss: 4.8829 - acc: 0.0093 - ETA: 184s - loss: 4.8827 - acc: 0.0092 - ETA: 184s - loss: 4.8831 - acc: 0.0091 - ETA: 183s - loss: 4.8831 - acc: 0.0091 - ETA: 182s - loss: 4.8830 - acc: 0.0090 - ETA: 181s - loss: 4.8829 - acc: 0.0089 - ETA: 181s - loss: 4.8826 - acc: 0.0088 - ETA: 180s - loss: 4.8824 - acc: 0.0088 - ETA: 179s - loss: 4.8823 - acc: 0.0087 - ETA: 179s - loss: 4.8821 - acc: 0.0086 - ETA: 178s - loss: 4.8824 - acc: 0.0085 - ETA: 177s - loss: 4.8826 - acc: 0.0085 - ETA: 177s - loss: 4.8827 - acc: 0.0084 - ETA: 176s - loss: 4.8830 - acc: 0.0083 - ETA: 175s - loss: 4.8833 - acc: 0.0083 - ETA: 174s - loss: 4.8829 - acc: 0.0082 - ETA: 174s - loss: 4.8829 - acc: 0.0081 - ETA: 173s - loss: 4.8826 - acc: 0.0081 - ETA: 172s - loss: 4.8829 - acc: 0.0080 - ETA: 172s - loss: 4.8831 - acc: 0.0080 - ETA: 171s - loss: 4.8831 - acc: 0.0079 - ETA: 170s - loss: 4.8833 - acc: 0.0078 - ETA: 169s - loss: 4.8833 - acc: 0.0078 - ETA: 168s - loss: 4.8833 - acc: 0.0077 - ETA: 167s - loss: 4.8833 - acc: 0.0077 - ETA: 166s - loss: 4.8833 - acc: 0.0076 - ETA: 165s - loss: 4.8834 - acc: 0.0076 - ETA: 164s - loss: 4.8832 - acc: 0.0075 - ETA: 164s - loss: 4.8833 - acc: 0.0074 - ETA: 163s - loss: 4.8831 - acc: 0.0074 - ETA: 162s - loss: 4.8830 - acc: 0.0073 - ETA: 161s - loss: 4.8832 - acc: 0.0073 - ETA: 161s - loss: 4.8832 - acc: 0.0072 - ETA: 160s - loss: 4.8830 - acc: 0.0075 - ETA: 159s - loss: 4.8830 - acc: 0.0075 - ETA: 158s - loss: 4.8830 - acc: 0.0074 - ETA: 158s - loss: 4.8831 - acc: 0.0074 - ETA: 157s - loss: 4.8826 - acc: 0.0073 - ETA: 156s - loss: 4.8827 - acc: 0.0073 - ETA: 155s - loss: 4.8824 - acc: 0.0072 - ETA: 154s - loss: 4.8824 - acc: 0.0075 - ETA: 154s - loss: 4.8821 - acc: 0.0075 - ETA: 153s - loss: 4.8821 - acc: 0.0074 - ETA: 152s - loss: 4.8815 - acc: 0.0077 - ETA: 151s - loss: 4.8814 - acc: 0.0076 - ETA: 150s - loss: 4.8819 - acc: 0.0076 - ETA: 149s - loss: 4.8816 - acc: 0.0075 - ETA: 148s - loss: 4.8812 - acc: 0.0075 - ETA: 147s - loss: 4.8812 - acc: 0.0075 - ETA: 147s - loss: 4.8815 - acc: 0.0074 - ETA: 146s - loss: 4.8815 - acc: 0.0074 - ETA: 145s - loss: 4.8815 - acc: 0.0073 - ETA: 144s - loss: 4.8814 - acc: 0.0073 - ETA: 144s - loss: 4.8816 - acc: 0.0072 - ETA: 143s - loss: 4.8819 - acc: 0.0072 - ETA: 142s - loss: 4.8817 - acc: 0.0071 - ETA: 141s - loss: 4.8816 - acc: 0.0071 - ETA: 141s - loss: 4.8813 - acc: 0.0074 - ETA: 140s - loss: 4.8812 - acc: 0.0073 - ETA: 139s - loss: 4.8811 - acc: 0.0073 - ETA: 138s - loss: 4.8815 - acc: 0.0072 - ETA: 138s - loss: 4.8815 - acc: 0.0072 - ETA: 137s - loss: 4.8814 - acc: 0.0071 - ETA: 136s - loss: 4.8814 - acc: 0.0074 - ETA: 135s - loss: 4.8816 - acc: 0.0073 - ETA: 134s - loss: 4.8814 - acc: 0.0073 - ETA: 133s - loss: 4.8814 - acc: 0.0073 - ETA: 133s - loss: 4.8813 - acc: 0.0072 - ETA: 132s - loss: 4.8813 - acc: 0.0075 - ETA: 131s - loss: 4.8817 - acc: 0.0074 - ETA: 130s - loss: 4.8824 - acc: 0.0074 - ETA: 129s - loss: 4.8823 - acc: 0.0073 - ETA: 129s - loss: 4.8823 - acc: 0.0073 - ETA: 128s - loss: 4.8823 - acc: 0.0073 - ETA: 127s - loss: 4.8822 - acc: 0.0072 - ETA: 126s - loss: 4.8821 - acc: 0.0072 - ETA: 125s - loss: 4.8823 - acc: 0.0071 - ETA: 124s - loss: 4.8824 - acc: 0.0071 - ETA: 124s - loss: 4.8824 - acc: 0.0071 - ETA: 123s - loss: 4.8825 - acc: 0.0070 - ETA: 122s - loss: 4.8826 - acc: 0.0070 - ETA: 121s - loss: 4.8825 - acc: 0.0070 - ETA: 120s - loss: 4.8825 - acc: 0.0069 - ETA: 119s - loss: 4.8823 - acc: 0.0069 - ETA: 119s - loss: 4.8820 - acc: 0.0069 - ETA: 118s - loss: 4.8821 - acc: 0.0068 - ETA: 117s - loss: 4.8822 - acc: 0.0068 - ETA: 116s - loss: 4.8825 - acc: 0.0068 - ETA: 115s - loss: 4.8825 - acc: 0.0067 - ETA: 114s - loss: 4.8824 - acc: 0.0067 - ETA: 113s - loss: 4.8824 - acc: 0.0069 - ETA: 112s - loss: 4.8823 - acc: 0.0069 - ETA: 112s - loss: 4.8824 - acc: 0.0068 - ETA: 111s - loss: 4.8822 - acc: 0.0068 - ETA: 110s - loss: 4.8825 - acc: 0.0068 - ETA: 109s - loss: 4.8825 - acc: 0.0070 - ETA: 108s - loss: 4.8826 - acc: 0.0069 - ETA: 107s - loss: 4.8824 - acc: 0.0069 - ETA: 106s - loss: 4.8824 - acc: 0.0069 - ETA: 105s - loss: 4.8823 - acc: 0.0068 - ETA: 104s - loss: 4.8824 - acc: 0.0068 - ETA: 103s - loss: 4.8822 - acc: 0.0068 - ETA: 102s - loss: 4.8824 - acc: 0.0067 - ETA: 101s - loss: 4.8824 - acc: 0.0067 - ETA: 101s - loss: 4.8826 - acc: 0.0067 - ETA: 100s - loss: 4.8825 - acc: 0.0069 - ETA: 99s - loss: 4.8825 - acc: 0.0068  - ETA: 98s - loss: 4.8824 - acc: 0.0068 - ETA: 97s - loss: 4.8823 - acc: 0.0068 - ETA: 96s - loss: 4.8821 - acc: 0.0072 - ETA: 95s - loss: 4.8821 - acc: 0.0072 - ETA: 94s - loss: 4.8821 - acc: 0.0071 - ETA: 93s - loss: 4.8821 - acc: 0.0071 - ETA: 93s - loss: 4.8819 - acc: 0.0071 - ETA: 92s - loss: 4.8821 - acc: 0.0070 - ETA: 91s - loss: 4.8818 - acc: 0.0070 - ETA: 90s - loss: 4.8818 - acc: 0.0070 - ETA: 89s - loss: 4.8819 - acc: 0.0070 - ETA: 88s - loss: 4.8818 - acc: 0.0069 - ETA: 87s - loss: 4.8819 - acc: 0.0069 - ETA: 86s - loss: 4.8820 - acc: 0.0069 - ETA: 85s - loss: 4.8820 - acc: 0.0068 - ETA: 85s - loss: 4.8820 - acc: 0.0068 - ETA: 84s - loss: 4.8822 - acc: 0.0068 - ETA: 83s - loss: 4.8822 - acc: 0.0068 - ETA: 82s - loss: 4.8821 - acc: 0.0067 - ETA: 81s - loss: 4.8822 - acc: 0.0067 - ETA: 80s - loss: 4.8822 - acc: 0.0067 - ETA: 79s - loss: 4.8821 - acc: 0.0066 - ETA: 78s - loss: 4.8821 - acc: 0.0066 - ETA: 77s - loss: 4.8821 - acc: 0.0066 - ETA: 76s - loss: 4.8819 - acc: 0.0066 - ETA: 75s - loss: 4.8820 - acc: 0.0065 - ETA: 74s - loss: 4.8819 - acc: 0.0065 - ETA: 74s - loss: 4.8817 - acc: 0.0065 - ETA: 73s - loss: 4.8816 - acc: 0.0065 - ETA: 72s - loss: 4.8817 - acc: 0.0066 - ETA: 71s - loss: 4.8817 - acc: 0.0066 - ETA: 70s - loss: 4.8817 - acc: 0.0066 - ETA: 69s - loss: 4.8814 - acc: 0.0065 - ETA: 68s - loss: 4.8814 - acc: 0.0065 - ETA: 67s - loss: 4.8814 - acc: 0.0065 - ETA: 66s - loss: 4.8815 - acc: 0.0065 - ETA: 65s - loss: 4.8817 - acc: 0.0064 - ETA: 64s - loss: 4.8817 - acc: 0.0066 - ETA: 64s - loss: 4.8817 - acc: 0.0066 - ETA: 63s - loss: 4.8816 - acc: 0.0066 - ETA: 62s - loss: 4.8815 - acc: 0.0065 - ETA: 61s - loss: 4.8815 - acc: 0.0065 - ETA: 60s - loss: 4.8814 - acc: 0.0065 - ETA: 59s - loss: 4.8812 - acc: 0.0065 - ETA: 58s - loss: 4.8810 - acc: 0.0064 - ETA: 57s - loss: 4.8809 - acc: 0.0064 - ETA: 56s - loss: 4.8811 - acc: 0.0064 - ETA: 55s - loss: 4.8813 - acc: 0.0064 - ETA: 55s - loss: 4.8811 - acc: 0.0063 - ETA: 54s - loss: 4.8810 - acc: 0.0063 - ETA: 53s - loss: 4.8810 - acc: 0.0063 - ETA: 52s - loss: 4.8806 - acc: 0.0063 - ETA: 51s - loss: 4.8807 - acc: 0.0063 - ETA: 50s - loss: 4.8804 - acc: 0.0062 - ETA: 49s - loss: 4.8805 - acc: 0.0062 - ETA: 48s - loss: 4.8806 - acc: 0.0062 - ETA: 47s - loss: 4.8806 - acc: 0.0062 - ETA: 47s - loss: 4.8804 - acc: 0.0061 - ETA: 46s - loss: 4.8805 - acc: 0.0063 - ETA: 45s - loss: 4.8802 - acc: 0.0063 - ETA: 44s - loss: 4.8802 - acc: 0.0063 - ETA: 43s - loss: 4.8802 - acc: 0.0062 - ETA: 42s - loss: 4.8802 - acc: 0.0064 - ETA: 41s - loss: 4.8803 - acc: 0.0064 - ETA: 41s - loss: 4.8803 - acc: 0.0063 - ETA: 40s - loss: 4.8804 - acc: 0.0063 - ETA: 39s - loss: 4.8802 - acc: 0.0063 - ETA: 38s - loss: 4.8800 - acc: 0.0064 - ETA: 37s - loss: 4.8797 - acc: 0.0066 - ETA: 36s - loss: 4.8797 - acc: 0.0066 - ETA: 35s - loss: 4.8797 - acc: 0.0066 - ETA: 34s - loss: 4.8794 - acc: 0.0065 - ETA: 34s - loss: 4.8794 - acc: 0.0065 - ETA: 33s - loss: 4.8795 - acc: 0.0065 - ETA: 32s - loss: 4.8797 - acc: 0.0065 - ETA: 31s - loss: 4.8799 - acc: 0.0064 - ETA: 30s - loss: 4.8799 - acc: 0.0064 - ETA: 29s - loss: 4.8799 - acc: 0.0064 - ETA: 28s - loss: 4.8799 - acc: 0.0064 - ETA: 28s - loss: 4.8797 - acc: 0.0064 - ETA: 27s - loss: 4.8798 - acc: 0.0063 - ETA: 26s - loss: 4.8796 - acc: 0.0065 - ETA: 25s - loss: 4.8795 - acc: 0.0065 - ETA: 24s - loss: 4.8793 - acc: 0.0064 - ETA: 23s - loss: 4.8790 - acc: 0.0064 - ETA: 22s - loss: 4.8789 - acc: 0.0064 - ETA: 22s - loss: 4.8791 - acc: 0.0064 - ETA: 21s - loss: 4.8789 - acc: 0.0065 - ETA: 20s - loss: 4.8786 - acc: 0.0065 - ETA: 19s - loss: 4.8784 - acc: 0.0065 - ETA: 18s - loss: 4.8784 - acc: 0.0065 - ETA: 17s - loss: 4.8784 - acc: 0.0064 - ETA: 16s - loss: 4.8787 - acc: 0.0064 - ETA: 16s - loss: 4.8789 - acc: 0.0064 - ETA: 15s - loss: 4.8787 - acc: 0.0064 - ETA: 14s - loss: 4.8788 - acc: 0.0063 - ETA: 13s - loss: 4.8786 - acc: 0.0063 - ETA: 12s - loss: 4.8783 - acc: 0.0063 - ETA: 11s - loss: 4.8785 - acc: 0.0064 - ETA: 10s - loss: 4.8786 - acc: 0.0064 - ETA: 9s - loss: 4.8786 - acc: 0.0064  - ETA: 9s - loss: 4.8786 - acc: 0.0064 - ETA: 8s - loss: 4.8786 - acc: 0.0064 - ETA: 7s - loss: 4.8789 - acc: 0.0065 - ETA: 6s - loss: 4.8789 - acc: 0.0065 - ETA: 5s - loss: 4.8791 - acc: 0.0065 - ETA: 4s - loss: 4.8791 - acc: 0.0064 - ETA: 3s - loss: 4.8791 - acc: 0.0064 - ETA: 3s - loss: 4.8792 - acc: 0.0064 - ETA: 2s - loss: 4.8791 - acc: 0.0065 - ETA: 1s - loss: 4.8792 - acc: 0.0065 - ETA: 0s - loss: 4.8793 - acc: 0.0065Epoch 00000: val_loss improved from inf to 4.88789, saving model to saved_models/weights.best.from_scratch.hdf5
6632/6632 [==============================] - 300s - loss: 4.8792 - acc: 0.0065 - val_loss: 4.8879 - val_acc: 0.0108
Epoch 2/5
6620/6632 [============================>.] - ETA: 271s - loss: 4.8623 - acc: 0.0500 - ETA: 268s - loss: 4.8622 - acc: 0.0250 - ETA: 270s - loss: 4.8707 - acc: 0.0167 - ETA: 271s - loss: 4.8858 - acc: 0.0125 - ETA: 272s - loss: 4.8879 - acc: 0.0100 - ETA: 271s - loss: 4.8866 - acc: 0.0167 - ETA: 271s - loss: 4.8776 - acc: 0.0143 - ETA: 269s - loss: 4.8702 - acc: 0.0125 - ETA: 268s - loss: 4.8717 - acc: 0.0111 - ETA: 267s - loss: 4.8663 - acc: 0.0100 - ETA: 266s - loss: 4.8679 - acc: 0.0091 - ETA: 265s - loss: 4.8656 - acc: 0.0083 - ETA: 264s - loss: 4.8618 - acc: 0.0077 - ETA: 263s - loss: 4.8636 - acc: 0.0071 - ETA: 262s - loss: 4.8596 - acc: 0.0100 - ETA: 262s - loss: 4.8586 - acc: 0.0094 - ETA: 261s - loss: 4.8600 - acc: 0.0088 - ETA: 260s - loss: 4.8611 - acc: 0.0111 - ETA: 260s - loss: 4.8607 - acc: 0.0105 - ETA: 259s - loss: 4.8598 - acc: 0.0100 - ETA: 258s - loss: 4.8570 - acc: 0.0095 - ETA: 257s - loss: 4.8582 - acc: 0.0091 - ETA: 257s - loss: 4.8579 - acc: 0.0109 - ETA: 256s - loss: 4.8571 - acc: 0.0104 - ETA: 255s - loss: 4.8601 - acc: 0.0100 - ETA: 254s - loss: 4.8613 - acc: 0.0096 - ETA: 253s - loss: 4.8618 - acc: 0.0093 - ETA: 252s - loss: 4.8614 - acc: 0.0089 - ETA: 251s - loss: 4.8598 - acc: 0.0086 - ETA: 250s - loss: 4.8608 - acc: 0.0083 - ETA: 249s - loss: 4.8580 - acc: 0.0113 - ETA: 248s - loss: 4.8566 - acc: 0.0125 - ETA: 247s - loss: 4.8562 - acc: 0.0121 - ETA: 246s - loss: 4.8552 - acc: 0.0118 - ETA: 245s - loss: 4.8519 - acc: 0.0114 - ETA: 245s - loss: 4.8529 - acc: 0.0111 - ETA: 244s - loss: 4.8502 - acc: 0.0122 - ETA: 243s - loss: 4.8518 - acc: 0.0118 - ETA: 242s - loss: 4.8532 - acc: 0.0115 - ETA: 241s - loss: 4.8548 - acc: 0.0113 - ETA: 240s - loss: 4.8550 - acc: 0.0110 - ETA: 239s - loss: 4.8544 - acc: 0.0107 - ETA: 239s - loss: 4.8528 - acc: 0.0105 - ETA: 238s - loss: 4.8544 - acc: 0.0102 - ETA: 237s - loss: 4.8527 - acc: 0.0100 - ETA: 236s - loss: 4.8543 - acc: 0.0098 - ETA: 235s - loss: 4.8534 - acc: 0.0106 - ETA: 234s - loss: 4.8536 - acc: 0.0115 - ETA: 233s - loss: 4.8544 - acc: 0.0112 - ETA: 233s - loss: 4.8555 - acc: 0.0110 - ETA: 232s - loss: 4.8574 - acc: 0.0108 - ETA: 231s - loss: 4.8563 - acc: 0.0106 - ETA: 230s - loss: 4.8592 - acc: 0.0104 - ETA: 229s - loss: 4.8577 - acc: 0.0102 - ETA: 229s - loss: 4.8585 - acc: 0.0100 - ETA: 228s - loss: 4.8582 - acc: 0.0098 - ETA: 227s - loss: 4.8586 - acc: 0.0096 - ETA: 226s - loss: 4.8596 - acc: 0.0095 - ETA: 225s - loss: 4.8594 - acc: 0.0093 - ETA: 224s - loss: 4.8598 - acc: 0.0092 - ETA: 223s - loss: 4.8585 - acc: 0.0090 - ETA: 222s - loss: 4.8585 - acc: 0.0089 - ETA: 221s - loss: 4.8584 - acc: 0.0095 - ETA: 220s - loss: 4.8581 - acc: 0.0102 - ETA: 219s - loss: 4.8581 - acc: 0.0100 - ETA: 219s - loss: 4.8577 - acc: 0.0098 - ETA: 218s - loss: 4.8579 - acc: 0.0097 - ETA: 217s - loss: 4.8580 - acc: 0.0096 - ETA: 216s - loss: 4.8590 - acc: 0.0094 - ETA: 215s - loss: 4.8604 - acc: 0.0093 - ETA: 214s - loss: 4.8609 - acc: 0.0092 - ETA: 213s - loss: 4.8615 - acc: 0.0090 - ETA: 213s - loss: 4.8619 - acc: 0.0089 - ETA: 212s - loss: 4.8619 - acc: 0.0095 - ETA: 211s - loss: 4.8606 - acc: 0.0100 - ETA: 210s - loss: 4.8612 - acc: 0.0105 - ETA: 209s - loss: 4.8603 - acc: 0.0104 - ETA: 208s - loss: 4.8606 - acc: 0.0103 - ETA: 208s - loss: 4.8602 - acc: 0.0101 - ETA: 207s - loss: 4.8596 - acc: 0.0100 - ETA: 206s - loss: 4.8599 - acc: 0.0105 - ETA: 206s - loss: 4.8596 - acc: 0.0104 - ETA: 205s - loss: 4.8597 - acc: 0.0102 - ETA: 205s - loss: 4.8591 - acc: 0.0101 - ETA: 204s - loss: 4.8590 - acc: 0.0112 - ETA: 204s - loss: 4.8583 - acc: 0.0110 - ETA: 204s - loss: 4.8582 - acc: 0.0115 - ETA: 203s - loss: 4.8580 - acc: 0.0114 - ETA: 203s - loss: 4.8575 - acc: 0.0112 - ETA: 202s - loss: 4.8579 - acc: 0.0117 - ETA: 202s - loss: 4.8592 - acc: 0.0115 - ETA: 201s - loss: 4.8599 - acc: 0.0120 - ETA: 200s - loss: 4.8587 - acc: 0.0118 - ETA: 200s - loss: 4.8581 - acc: 0.0117 - ETA: 199s - loss: 4.8578 - acc: 0.0116 - ETA: 199s - loss: 4.8577 - acc: 0.0115 - ETA: 198s - loss: 4.8564 - acc: 0.0113 - ETA: 197s - loss: 4.8574 - acc: 0.0117 - ETA: 197s - loss: 4.8573 - acc: 0.0116 - ETA: 196s - loss: 4.8565 - acc: 0.0115 - ETA: 195s - loss: 4.8580 - acc: 0.0119 - ETA: 194s - loss: 4.8583 - acc: 0.0118 - ETA: 193s - loss: 4.8582 - acc: 0.0117 - ETA: 192s - loss: 4.8573 - acc: 0.0125 - ETA: 192s - loss: 4.8568 - acc: 0.0124 - ETA: 191s - loss: 4.8568 - acc: 0.0123 - ETA: 190s - loss: 4.8571 - acc: 0.0126 - ETA: 189s - loss: 4.8579 - acc: 0.0130 - ETA: 188s - loss: 4.8574 - acc: 0.0128 - ETA: 187s - loss: 4.8580 - acc: 0.0127 - ETA: 186s - loss: 4.8582 - acc: 0.0126 - ETA: 185s - loss: 4.8582 - acc: 0.0125 - ETA: 184s - loss: 4.8588 - acc: 0.0124 - ETA: 183s - loss: 4.8583 - acc: 0.0123 - ETA: 183s - loss: 4.8577 - acc: 0.0130 - ETA: 182s - loss: 4.8576 - acc: 0.0129 - ETA: 181s - loss: 4.8586 - acc: 0.0128 - ETA: 180s - loss: 4.8580 - acc: 0.0127 - ETA: 179s - loss: 4.8585 - acc: 0.0126 - ETA: 178s - loss: 4.8588 - acc: 0.0125 - ETA: 177s - loss: 4.8591 - acc: 0.0124 - ETA: 176s - loss: 4.8594 - acc: 0.0123 - ETA: 176s - loss: 4.8597 - acc: 0.0126 - ETA: 175s - loss: 4.8594 - acc: 0.0125 - ETA: 174s - loss: 4.8590 - acc: 0.0128 - ETA: 173s - loss: 4.8586 - acc: 0.0135 - ETA: 172s - loss: 4.8587 - acc: 0.0134 - ETA: 171s - loss: 4.8587 - acc: 0.0133 - ETA: 170s - loss: 4.8588 - acc: 0.0132 - ETA: 170s - loss: 4.8590 - acc: 0.0131 - ETA: 169s - loss: 4.8589 - acc: 0.0134 - ETA: 168s - loss: 4.8582 - acc: 0.0136 - ETA: 167s - loss: 4.8580 - acc: 0.0135 - ETA: 167s - loss: 4.8575 - acc: 0.0138 - ETA: 166s - loss: 4.8579 - acc: 0.0137 - ETA: 165s - loss: 4.8582 - acc: 0.0136 - ETA: 164s - loss: 4.8583 - acc: 0.0135 - ETA: 163s - loss: 4.8582 - acc: 0.0134 - ETA: 162s - loss: 4.8586 - acc: 0.0133 - ETA: 162s - loss: 4.8584 - acc: 0.0132 - ETA: 161s - loss: 4.8578 - acc: 0.0138 - ETA: 160s - loss: 4.8579 - acc: 0.0137 - ETA: 159s - loss: 4.8574 - acc: 0.0143 - ETA: 158s - loss: 4.8569 - acc: 0.0142 - ETA: 157s - loss: 4.8564 - acc: 0.0141 - ETA: 157s - loss: 4.8558 - acc: 0.0147 - ETA: 156s - loss: 4.8557 - acc: 0.0146 - ETA: 155s - loss: 4.8552 - acc: 0.0145 - ETA: 154s - loss: 4.8551 - acc: 0.0148 - ETA: 153s - loss: 4.8546 - acc: 0.0147 - ETA: 152s - loss: 4.8544 - acc: 0.0149 - ETA: 151s - loss: 4.8548 - acc: 0.0148 - ETA: 151s - loss: 4.8543 - acc: 0.0147 - ETA: 150s - loss: 4.8547 - acc: 0.0146 - ETA: 149s - loss: 4.8549 - acc: 0.0145 - ETA: 148s - loss: 4.8547 - acc: 0.0144 - ETA: 147s - loss: 4.8551 - acc: 0.0143 - ETA: 146s - loss: 4.8547 - acc: 0.0142 - ETA: 146s - loss: 4.8547 - acc: 0.0142 - ETA: 145s - loss: 4.8549 - acc: 0.0141 - ETA: 144s - loss: 4.8544 - acc: 0.0140 - ETA: 143s - loss: 4.8542 - acc: 0.0142 - ETA: 142s - loss: 4.8543 - acc: 0.0141 - ETA: 141s - loss: 4.8540 - acc: 0.0140 - ETA: 140s - loss: 4.8539 - acc: 0.0139 - ETA: 140s - loss: 4.8540 - acc: 0.0142 - ETA: 139s - loss: 4.8544 - acc: 0.0141 - ETA: 138s - loss: 4.8549 - acc: 0.0140 - ETA: 137s - loss: 4.8549 - acc: 0.0139 - ETA: 136s - loss: 4.8547 - acc: 0.0141 - ETA: 135s - loss: 4.8545 - acc: 0.0140 - ETA: 135s - loss: 4.8546 - acc: 0.0140 - ETA: 134s - loss: 4.8548 - acc: 0.0139 - ETA: 133s - loss: 4.8547 - acc: 0.0138 - ETA: 132s - loss: 4.8549 - acc: 0.0137 - ETA: 131s - loss: 4.8548 - acc: 0.0136 - ETA: 130s - loss: 4.8553 - acc: 0.0138 - ETA: 130s - loss: 4.8556 - acc: 0.0138 - ETA: 129s - loss: 4.8553 - acc: 0.0137 - ETA: 128s - loss: 4.8553 - acc: 0.0136 - ETA: 127s - loss: 4.8555 - acc: 0.0135 - ETA: 126s - loss: 4.8553 - acc: 0.0137 - ETA: 125s - loss: 4.8552 - acc: 0.0137 - ETA: 124s - loss: 4.8554 - acc: 0.0136 - ETA: 124s - loss: 4.8556 - acc: 0.0135 - ETA: 123s - loss: 4.8555 - acc: 0.0134 - ETA: 122s - loss: 4.8556 - acc: 0.0134 - ETA: 121s - loss: 4.8554 - acc: 0.0136 - ETA: 120s - loss: 4.8554 - acc: 0.0135 - ETA: 119s - loss: 4.8551 - acc: 0.0139 - ETA: 118s - loss: 4.8553 - acc: 0.0141 - ETA: 118s - loss: 4.8548 - acc: 0.0143 - ETA: 117s - loss: 4.8547 - acc: 0.0142 - ETA: 116s - loss: 4.8548 - acc: 0.0142 - ETA: 115s - loss: 4.8552 - acc: 0.0144 - ETA: 114s - loss: 4.8553 - acc: 0.0145 - ETA: 113s - loss: 4.8549 - acc: 0.0147 - ETA: 112s - loss: 4.8551 - acc: 0.0146 - ETA: 112s - loss: 4.8556 - acc: 0.0146 - ETA: 111s - loss: 4.8553 - acc: 0.0145 - ETA: 110s - loss: 4.8551 - acc: 0.0144 - ETA: 109s - loss: 4.8552 - acc: 0.0144 - ETA: 108s - loss: 4.8550 - acc: 0.0143 - ETA: 107s - loss: 4.8546 - acc: 0.0142 - ETA: 106s - loss: 4.8552 - acc: 0.0141 - ETA: 106s - loss: 4.8557 - acc: 0.0141 - ETA: 105s - loss: 4.8555 - acc: 0.0140 - ETA: 104s - loss: 4.8558 - acc: 0.0142 - ETA: 103s - loss: 4.8559 - acc: 0.0141 - ETA: 102s - loss: 4.8560 - acc: 0.0140 - ETA: 101s - loss: 4.8556 - acc: 0.0145 - ETA: 101s - loss: 4.8555 - acc: 0.0144 - ETA: 100s - loss: 4.8555 - acc: 0.0143 - ETA: 99s - loss: 4.8558 - acc: 0.0143  - ETA: 98s - loss: 4.8556 - acc: 0.0142 - ETA: 97s - loss: 4.8552 - acc: 0.0144 - ETA: 96s - loss: 4.8550 - acc: 0.0143 - ETA: 95s - loss: 4.8551 - acc: 0.0142 - ETA: 95s - loss: 4.8550 - acc: 0.0142 - ETA: 94s - loss: 4.8549 - acc: 0.0141 - ETA: 93s - loss: 4.8551 - acc: 0.0140 - ETA: 92s - loss: 4.8548 - acc: 0.0142 - ETA: 91s - loss: 4.8552 - acc: 0.0141 - ETA: 90s - loss: 4.8554 - acc: 0.0141 - ETA: 89s - loss: 4.8554 - acc: 0.0140 - ETA: 89s - loss: 4.8558 - acc: 0.0139 - ETA: 88s - loss: 4.8564 - acc: 0.0139 - ETA: 87s - loss: 4.8565 - acc: 0.0138 - ETA: 86s - loss: 4.8563 - acc: 0.0142 - ETA: 85s - loss: 4.8564 - acc: 0.0141 - ETA: 84s - loss: 4.8567 - acc: 0.0141 - ETA: 84s - loss: 4.8565 - acc: 0.0140 - ETA: 83s - loss: 4.8564 - acc: 0.0139 - ETA: 82s - loss: 4.8561 - acc: 0.0141 - ETA: 81s - loss: 4.8564 - acc: 0.0140 - ETA: 80s - loss: 4.8564 - acc: 0.0140 - ETA: 79s - loss: 4.8562 - acc: 0.0139 - ETA: 78s - loss: 4.8561 - acc: 0.0139 - ETA: 78s - loss: 4.8560 - acc: 0.0140 - ETA: 77s - loss: 4.8558 - acc: 0.0140 - ETA: 76s - loss: 4.8555 - acc: 0.0141 - ETA: 75s - loss: 4.8552 - acc: 0.0140 - ETA: 74s - loss: 4.8555 - acc: 0.0140 - ETA: 73s - loss: 4.8552 - acc: 0.0139 - ETA: 72s - loss: 4.8554 - acc: 0.0139 - ETA: 72s - loss: 4.8556 - acc: 0.0138 - ETA: 71s - loss: 4.8555 - acc: 0.0138 - ETA: 70s - loss: 4.8554 - acc: 0.0139 - ETA: 69s - loss: 4.8554 - acc: 0.0139 - ETA: 68s - loss: 4.8553 - acc: 0.0138 - ETA: 67s - loss: 4.8551 - acc: 0.0137 - ETA: 67s - loss: 4.8548 - acc: 0.0141 - ETA: 66s - loss: 4.8544 - acc: 0.0140 - ETA: 65s - loss: 4.8544 - acc: 0.0140 - ETA: 64s - loss: 4.8544 - acc: 0.0139 - ETA: 63s - loss: 4.8543 - acc: 0.0141 - ETA: 62s - loss: 4.8542 - acc: 0.0140 - ETA: 61s - loss: 4.8545 - acc: 0.0141 - ETA: 61s - loss: 4.8545 - acc: 0.0141 - ETA: 60s - loss: 4.8548 - acc: 0.0140 - ETA: 59s - loss: 4.8548 - acc: 0.0142 - ETA: 58s - loss: 4.8551 - acc: 0.0141 - ETA: 57s - loss: 4.8550 - acc: 0.0141 - ETA: 56s - loss: 4.8549 - acc: 0.0140 - ETA: 56s - loss: 4.8550 - acc: 0.0140 - ETA: 55s - loss: 4.8552 - acc: 0.0139 - ETA: 54s - loss: 4.8552 - acc: 0.0139 - ETA: 53s - loss: 4.8551 - acc: 0.0138 - ETA: 52s - loss: 4.8548 - acc: 0.0139 - ETA: 51s - loss: 4.8548 - acc: 0.0141 - ETA: 50s - loss: 4.8547 - acc: 0.0140 - ETA: 50s - loss: 4.8545 - acc: 0.0142 - ETA: 49s - loss: 4.8543 - acc: 0.0141 - ETA: 48s - loss: 4.8545 - acc: 0.0141 - ETA: 47s - loss: 4.8543 - acc: 0.0142 - ETA: 46s - loss: 4.8541 - acc: 0.0141 - ETA: 45s - loss: 4.8541 - acc: 0.0141 - ETA: 45s - loss: 4.8540 - acc: 0.0140 - ETA: 44s - loss: 4.8540 - acc: 0.0140 - ETA: 43s - loss: 4.8539 - acc: 0.0139 - ETA: 42s - loss: 4.8540 - acc: 0.0139 - ETA: 41s - loss: 4.8541 - acc: 0.0138 - ETA: 40s - loss: 4.8539 - acc: 0.0138 - ETA: 39s - loss: 4.8537 - acc: 0.0139 - ETA: 39s - loss: 4.8535 - acc: 0.0140 - ETA: 38s - loss: 4.8536 - acc: 0.0140 - ETA: 37s - loss: 4.8538 - acc: 0.0141 - ETA: 36s - loss: 4.8538 - acc: 0.0142 - ETA: 35s - loss: 4.8539 - acc: 0.0142 - ETA: 34s - loss: 4.8541 - acc: 0.0143 - ETA: 34s - loss: 4.8541 - acc: 0.0143 - ETA: 33s - loss: 4.8539 - acc: 0.0142 - ETA: 32s - loss: 4.8544 - acc: 0.0142 - ETA: 31s - loss: 4.8545 - acc: 0.0141 - ETA: 30s - loss: 4.8545 - acc: 0.0141 - ETA: 29s - loss: 4.8547 - acc: 0.0140 - ETA: 29s - loss: 4.8545 - acc: 0.0140 - ETA: 28s - loss: 4.8542 - acc: 0.0139 - ETA: 27s - loss: 4.8544 - acc: 0.0139 - ETA: 26s - loss: 4.8541 - acc: 0.0138 - ETA: 25s - loss: 4.8541 - acc: 0.0138 - ETA: 24s - loss: 4.8539 - acc: 0.0137 - ETA: 24s - loss: 4.8537 - acc: 0.0137 - ETA: 23s - loss: 4.8539 - acc: 0.0137 - ETA: 22s - loss: 4.8537 - acc: 0.0138 - ETA: 21s - loss: 4.8539 - acc: 0.0137 - ETA: 20s - loss: 4.8539 - acc: 0.0138 - ETA: 19s - loss: 4.8542 - acc: 0.0138 - ETA: 18s - loss: 4.8538 - acc: 0.0139 - ETA: 18s - loss: 4.8539 - acc: 0.0139 - ETA: 17s - loss: 4.8538 - acc: 0.0141 - ETA: 16s - loss: 4.8536 - acc: 0.0143 - ETA: 15s - loss: 4.8535 - acc: 0.0142 - ETA: 14s - loss: 4.8532 - acc: 0.0142 - ETA: 13s - loss: 4.8531 - acc: 0.0141 - ETA: 13s - loss: 4.8533 - acc: 0.0141 - ETA: 12s - loss: 4.8529 - acc: 0.0140 - ETA: 11s - loss: 4.8527 - acc: 0.0142 - ETA: 10s - loss: 4.8528 - acc: 0.0141 - ETA: 9s - loss: 4.8526 - acc: 0.0141  - ETA: 8s - loss: 4.8527 - acc: 0.0140 - ETA: 8s - loss: 4.8530 - acc: 0.0141 - ETA: 7s - loss: 4.8529 - acc: 0.0141 - ETA: 6s - loss: 4.8529 - acc: 0.0147 - ETA: 5s - loss: 4.8528 - acc: 0.0146 - ETA: 4s - loss: 4.8531 - acc: 0.0146 - ETA: 3s - loss: 4.8533 - acc: 0.0145 - ETA: 3s - loss: 4.8531 - acc: 0.0145 - ETA: 2s - loss: 4.8533 - acc: 0.0144 - ETA: 1s - loss: 4.8532 - acc: 0.0144 - ETA: 0s - loss: 4.8530 - acc: 0.0144Epoch 00001: val_loss did not improve
6632/6632 [==============================] - 292s - loss: 4.8530 - acc: 0.0143 - val_loss: 4.9056 - val_acc: 0.0168
Epoch 3/5
6620/6632 [============================>.] - ETA: 306s - loss: 4.7767 - acc: 0.0000e+00 - ETA: 300s - loss: 4.8534 - acc: 0.0000e+00 - ETA: 291s - loss: 4.8498 - acc: 0.0000e+00 - ETA: 288s - loss: 4.8631 - acc: 0.0000e+00 - ETA: 285s - loss: 4.8356 - acc: 0.0100     - ETA: 281s - loss: 4.8225 - acc: 0.0083 - ETA: 279s - loss: 4.8201 - acc: 0.0071 - ETA: 278s - loss: 4.8159 - acc: 0.0063 - ETA: 275s - loss: 4.8221 - acc: 0.0056 - ETA: 274s - loss: 4.8327 - acc: 0.0050 - ETA: 272s - loss: 4.8267 - acc: 0.0136 - ETA: 272s - loss: 4.8272 - acc: 0.0125 - ETA: 271s - loss: 4.8290 - acc: 0.0115 - ETA: 269s - loss: 4.8308 - acc: 0.0143 - ETA: 268s - loss: 4.8277 - acc: 0.0133 - ETA: 267s - loss: 4.8312 - acc: 0.0125 - ETA: 266s - loss: 4.8368 - acc: 0.0118 - ETA: 266s - loss: 4.8314 - acc: 0.0139 - ETA: 265s - loss: 4.8330 - acc: 0.0132 - ETA: 264s - loss: 4.8322 - acc: 0.0125 - ETA: 263s - loss: 4.8276 - acc: 0.0119 - ETA: 262s - loss: 4.8224 - acc: 0.0136 - ETA: 261s - loss: 4.8200 - acc: 0.0130 - ETA: 260s - loss: 4.8218 - acc: 0.0125 - ETA: 259s - loss: 4.8226 - acc: 0.0160 - ETA: 258s - loss: 4.8255 - acc: 0.0154 - ETA: 257s - loss: 4.8271 - acc: 0.0148 - ETA: 257s - loss: 4.8293 - acc: 0.0143 - ETA: 256s - loss: 4.8289 - acc: 0.0138 - ETA: 255s - loss: 4.8242 - acc: 0.0133 - ETA: 254s - loss: 4.8270 - acc: 0.0129 - ETA: 253s - loss: 4.8235 - acc: 0.0125 - ETA: 252s - loss: 4.8235 - acc: 0.0136 - ETA: 251s - loss: 4.8234 - acc: 0.0132 - ETA: 250s - loss: 4.8251 - acc: 0.0129 - ETA: 249s - loss: 4.8261 - acc: 0.0125 - ETA: 247s - loss: 4.8268 - acc: 0.0122 - ETA: 247s - loss: 4.8272 - acc: 0.0118 - ETA: 245s - loss: 4.8267 - acc: 0.0115 - ETA: 244s - loss: 4.8260 - acc: 0.0113 - ETA: 243s - loss: 4.8237 - acc: 0.0110 - ETA: 242s - loss: 4.8227 - acc: 0.0107 - ETA: 241s - loss: 4.8229 - acc: 0.0105 - ETA: 240s - loss: 4.8224 - acc: 0.0102 - ETA: 239s - loss: 4.8239 - acc: 0.0100 - ETA: 238s - loss: 4.8245 - acc: 0.0109 - ETA: 238s - loss: 4.8265 - acc: 0.0106 - ETA: 237s - loss: 4.8243 - acc: 0.0125 - ETA: 236s - loss: 4.8208 - acc: 0.0133 - ETA: 235s - loss: 4.8192 - acc: 0.0130 - ETA: 234s - loss: 4.8181 - acc: 0.0137 - ETA: 233s - loss: 4.8183 - acc: 0.0135 - ETA: 232s - loss: 4.8190 - acc: 0.0142 - ETA: 231s - loss: 4.8167 - acc: 0.0139 - ETA: 230s - loss: 4.8168 - acc: 0.0136 - ETA: 229s - loss: 4.8162 - acc: 0.0134 - ETA: 228s - loss: 4.8165 - acc: 0.0140 - ETA: 227s - loss: 4.8175 - acc: 0.0147 - ETA: 227s - loss: 4.8177 - acc: 0.0144 - ETA: 226s - loss: 4.8171 - acc: 0.0142 - ETA: 225s - loss: 4.8174 - acc: 0.0148 - ETA: 224s - loss: 4.8172 - acc: 0.0145 - ETA: 223s - loss: 4.8165 - acc: 0.0151 - ETA: 222s - loss: 4.8154 - acc: 0.0148 - ETA: 221s - loss: 4.8168 - acc: 0.0146 - ETA: 221s - loss: 4.8158 - acc: 0.0152 - ETA: 220s - loss: 4.8175 - acc: 0.0149 - ETA: 219s - loss: 4.8200 - acc: 0.0147 - ETA: 218s - loss: 4.8188 - acc: 0.0145 - ETA: 217s - loss: 4.8164 - acc: 0.0150 - ETA: 216s - loss: 4.8167 - acc: 0.0148 - ETA: 215s - loss: 4.8174 - acc: 0.0146 - ETA: 214s - loss: 4.8175 - acc: 0.0144 - ETA: 214s - loss: 4.8181 - acc: 0.0149 - ETA: 213s - loss: 4.8192 - acc: 0.0147 - ETA: 212s - loss: 4.8189 - acc: 0.0145 - ETA: 211s - loss: 4.8187 - acc: 0.0143 - ETA: 210s - loss: 4.8168 - acc: 0.0141 - ETA: 209s - loss: 4.8167 - acc: 0.0139 - ETA: 209s - loss: 4.8170 - acc: 0.0138 - ETA: 208s - loss: 4.8180 - acc: 0.0136 - ETA: 207s - loss: 4.8181 - acc: 0.0134 - ETA: 206s - loss: 4.8183 - acc: 0.0133 - ETA: 205s - loss: 4.8170 - acc: 0.0143 - ETA: 204s - loss: 4.8157 - acc: 0.0153 - ETA: 203s - loss: 4.8157 - acc: 0.0151 - ETA: 203s - loss: 4.8162 - acc: 0.0155 - ETA: 202s - loss: 4.8143 - acc: 0.0153 - ETA: 201s - loss: 4.8131 - acc: 0.0152 - ETA: 200s - loss: 4.8109 - acc: 0.0161 - ETA: 200s - loss: 4.8110 - acc: 0.0159 - ETA: 199s - loss: 4.8129 - acc: 0.0158 - ETA: 198s - loss: 4.8138 - acc: 0.0156 - ETA: 197s - loss: 4.8140 - acc: 0.0154 - ETA: 197s - loss: 4.8140 - acc: 0.0153 - ETA: 196s - loss: 4.8123 - acc: 0.0151 - ETA: 195s - loss: 4.8121 - acc: 0.0149 - ETA: 194s - loss: 4.8138 - acc: 0.0148 - ETA: 193s - loss: 4.8141 - acc: 0.0152 - ETA: 193s - loss: 4.8141 - acc: 0.0150 - ETA: 192s - loss: 4.8156 - acc: 0.0149 - ETA: 191s - loss: 4.8145 - acc: 0.0157 - ETA: 190s - loss: 4.8150 - acc: 0.0155 - ETA: 189s - loss: 4.8140 - acc: 0.0159 - ETA: 188s - loss: 4.8148 - acc: 0.0157 - ETA: 188s - loss: 4.8149 - acc: 0.0156 - ETA: 187s - loss: 4.8151 - acc: 0.0154 - ETA: 186s - loss: 4.8164 - acc: 0.0153 - ETA: 185s - loss: 4.8165 - acc: 0.0151 - ETA: 184s - loss: 4.8164 - acc: 0.0150 - ETA: 183s - loss: 4.8169 - acc: 0.0153 - ETA: 183s - loss: 4.8158 - acc: 0.0152 - ETA: 182s - loss: 4.8150 - acc: 0.0155 - ETA: 181s - loss: 4.8141 - acc: 0.0154 - ETA: 181s - loss: 4.8156 - acc: 0.0152 - ETA: 180s - loss: 4.8155 - acc: 0.0151 - ETA: 179s - loss: 4.8148 - acc: 0.0150 - ETA: 178s - loss: 4.8151 - acc: 0.0148 - ETA: 177s - loss: 4.8140 - acc: 0.0151 - ETA: 177s - loss: 4.8157 - acc: 0.0150 - ETA: 176s - loss: 4.8153 - acc: 0.0149 - ETA: 175s - loss: 4.8163 - acc: 0.0148 - ETA: 174s - loss: 4.8169 - acc: 0.0146 - ETA: 173s - loss: 4.8174 - acc: 0.0145 - ETA: 173s - loss: 4.8164 - acc: 0.0148 - ETA: 172s - loss: 4.8165 - acc: 0.0147 - ETA: 171s - loss: 4.8152 - acc: 0.0154 - ETA: 170s - loss: 4.8155 - acc: 0.0160 - ETA: 170s - loss: 4.8150 - acc: 0.0163 - ETA: 169s - loss: 4.8140 - acc: 0.0169 - ETA: 168s - loss: 4.8145 - acc: 0.0168 - ETA: 167s - loss: 4.8140 - acc: 0.0167 - ETA: 167s - loss: 4.8145 - acc: 0.0165 - ETA: 166s - loss: 4.8141 - acc: 0.0164 - ETA: 165s - loss: 4.8137 - acc: 0.0163 - ETA: 164s - loss: 4.8137 - acc: 0.0165 - ETA: 164s - loss: 4.8135 - acc: 0.0168 - ETA: 163s - loss: 4.8135 - acc: 0.0167 - ETA: 162s - loss: 4.8137 - acc: 0.0165 - ETA: 161s - loss: 4.8140 - acc: 0.0164 - ETA: 160s - loss: 4.8144 - acc: 0.0163 - ETA: 160s - loss: 4.8149 - acc: 0.0162 - ETA: 159s - loss: 4.8150 - acc: 0.0161 - ETA: 158s - loss: 4.8154 - acc: 0.0160 - ETA: 157s - loss: 4.8158 - acc: 0.0159 - ETA: 156s - loss: 4.8155 - acc: 0.0161 - ETA: 156s - loss: 4.8163 - acc: 0.0163 - ETA: 155s - loss: 4.8158 - acc: 0.0162 - ETA: 154s - loss: 4.8157 - acc: 0.0164 - ETA: 153s - loss: 4.8157 - acc: 0.0163 - ETA: 152s - loss: 4.8164 - acc: 0.0162 - ETA: 151s - loss: 4.8171 - acc: 0.0164 - ETA: 151s - loss: 4.8167 - acc: 0.0163 - ETA: 150s - loss: 4.8163 - acc: 0.0162 - ETA: 149s - loss: 4.8164 - acc: 0.0161 - ETA: 148s - loss: 4.8162 - acc: 0.0160 - ETA: 147s - loss: 4.8160 - acc: 0.0159 - ETA: 146s - loss: 4.8162 - acc: 0.0158 - ETA: 146s - loss: 4.8159 - acc: 0.0164 - ETA: 145s - loss: 4.8153 - acc: 0.0163 - ETA: 144s - loss: 4.8153 - acc: 0.0161 - ETA: 143s - loss: 4.8150 - acc: 0.0160 - ETA: 142s - loss: 4.8149 - acc: 0.0163 - ETA: 141s - loss: 4.8148 - acc: 0.0162 - ETA: 141s - loss: 4.8146 - acc: 0.0161 - ETA: 140s - loss: 4.8151 - acc: 0.0163 - ETA: 139s - loss: 4.8156 - acc: 0.0162 - ETA: 138s - loss: 4.8154 - acc: 0.0161 - ETA: 137s - loss: 4.8154 - acc: 0.0163 - ETA: 137s - loss: 4.8151 - acc: 0.0165 - ETA: 136s - loss: 4.8149 - acc: 0.0164 - ETA: 135s - loss: 4.8144 - acc: 0.0163 - ETA: 134s - loss: 4.8143 - acc: 0.0162 - ETA: 133s - loss: 4.8139 - acc: 0.0161 - ETA: 132s - loss: 4.8145 - acc: 0.0160 - ETA: 132s - loss: 4.8146 - acc: 0.0159 - ETA: 131s - loss: 4.8143 - acc: 0.0158 - ETA: 130s - loss: 4.8139 - acc: 0.0160 - ETA: 129s - loss: 4.8143 - acc: 0.0159 - ETA: 128s - loss: 4.8146 - acc: 0.0158 - ETA: 127s - loss: 4.8145 - acc: 0.0157 - ETA: 126s - loss: 4.8145 - acc: 0.0157 - ETA: 126s - loss: 4.8148 - acc: 0.0156 - ETA: 125s - loss: 4.8148 - acc: 0.0155 - ETA: 124s - loss: 4.8149 - acc: 0.0154 - ETA: 123s - loss: 4.8152 - acc: 0.0153 - ETA: 122s - loss: 4.8149 - acc: 0.0152 - ETA: 121s - loss: 4.8149 - acc: 0.0152 - ETA: 121s - loss: 4.8143 - acc: 0.0151 - ETA: 120s - loss: 4.8139 - acc: 0.0153 - ETA: 119s - loss: 4.8143 - acc: 0.0154 - ETA: 118s - loss: 4.8153 - acc: 0.0154 - ETA: 117s - loss: 4.8151 - acc: 0.0153 - ETA: 116s - loss: 4.8156 - acc: 0.0152 - ETA: 115s - loss: 4.8151 - acc: 0.0151 - ETA: 115s - loss: 4.8149 - acc: 0.0151 - ETA: 114s - loss: 4.8149 - acc: 0.0150 - ETA: 113s - loss: 4.8143 - acc: 0.0152 - ETA: 112s - loss: 4.8149 - acc: 0.0151 - ETA: 111s - loss: 4.8145 - acc: 0.0153 - ETA: 110s - loss: 4.8145 - acc: 0.0152 - ETA: 109s - loss: 4.8138 - acc: 0.0156 - ETA: 109s - loss: 4.8132 - acc: 0.0155 - ETA: 108s - loss: 4.8137 - acc: 0.0154 - ETA: 107s - loss: 4.8137 - acc: 0.0156 - ETA: 106s - loss: 4.8134 - acc: 0.0155 - ETA: 105s - loss: 4.8136 - acc: 0.0155 - ETA: 105s - loss: 4.8141 - acc: 0.0156 - ETA: 104s - loss: 4.8143 - acc: 0.0158 - ETA: 103s - loss: 4.8146 - acc: 0.0157 - ETA: 102s - loss: 4.8143 - acc: 0.0156 - ETA: 101s - loss: 4.8148 - acc: 0.0156 - ETA: 101s - loss: 4.8154 - acc: 0.0155 - ETA: 100s - loss: 4.8155 - acc: 0.0157 - ETA: 99s - loss: 4.8163 - acc: 0.0156  - ETA: 99s - loss: 4.8163 - acc: 0.0155 - ETA: 98s - loss: 4.8162 - acc: 0.0154 - ETA: 97s - loss: 4.8159 - acc: 0.0154 - ETA: 96s - loss: 4.8155 - acc: 0.0160 - ETA: 95s - loss: 4.8150 - acc: 0.0161 - ETA: 94s - loss: 4.8147 - acc: 0.0161 - ETA: 93s - loss: 4.8149 - acc: 0.0162 - ETA: 93s - loss: 4.8147 - acc: 0.0161 - ETA: 92s - loss: 4.8143 - acc: 0.0161 - ETA: 91s - loss: 4.8142 - acc: 0.0160 - ETA: 90s - loss: 4.8145 - acc: 0.0159 - ETA: 89s - loss: 4.8146 - acc: 0.0163 - ETA: 88s - loss: 4.8145 - acc: 0.0162 - ETA: 88s - loss: 4.8142 - acc: 0.0162 - ETA: 87s - loss: 4.8144 - acc: 0.0161 - ETA: 86s - loss: 4.8140 - acc: 0.0160 - ETA: 85s - loss: 4.8144 - acc: 0.0159 - ETA: 85s - loss: 4.8145 - acc: 0.0159 - ETA: 84s - loss: 4.8138 - acc: 0.0158 - ETA: 83s - loss: 4.8139 - acc: 0.0157 - ETA: 82s - loss: 4.8135 - acc: 0.0159 - ETA: 81s - loss: 4.8134 - acc: 0.0158 - ETA: 80s - loss: 4.8130 - acc: 0.0158 - ETA: 79s - loss: 4.8130 - acc: 0.0157 - ETA: 78s - loss: 4.8123 - acc: 0.0158 - ETA: 78s - loss: 4.8130 - acc: 0.0160 - ETA: 77s - loss: 4.8126 - acc: 0.0161 - ETA: 76s - loss: 4.8123 - acc: 0.0160 - ETA: 75s - loss: 4.8121 - acc: 0.0162 - ETA: 74s - loss: 4.8123 - acc: 0.0163 - ETA: 73s - loss: 4.8126 - acc: 0.0163 - ETA: 72s - loss: 4.8124 - acc: 0.0164 - ETA: 71s - loss: 4.8126 - acc: 0.0163 - ETA: 70s - loss: 4.8121 - acc: 0.0163 - ETA: 69s - loss: 4.8115 - acc: 0.0162 - ETA: 69s - loss: 4.8112 - acc: 0.0163 - ETA: 68s - loss: 4.8112 - acc: 0.0165 - ETA: 67s - loss: 4.8112 - acc: 0.0164 - ETA: 66s - loss: 4.8110 - acc: 0.0163 - ETA: 65s - loss: 4.8113 - acc: 0.0163 - ETA: 64s - loss: 4.8111 - acc: 0.0162 - ETA: 63s - loss: 4.8105 - acc: 0.0163 - ETA: 62s - loss: 4.8097 - acc: 0.0163 - ETA: 61s - loss: 4.8102 - acc: 0.0162 - ETA: 61s - loss: 4.8102 - acc: 0.0162 - ETA: 60s - loss: 4.8093 - acc: 0.0161 - ETA: 59s - loss: 4.8085 - acc: 0.0160 - ETA: 58s - loss: 4.8078 - acc: 0.0160 - ETA: 57s - loss: 4.8080 - acc: 0.0159 - ETA: 56s - loss: 4.8072 - acc: 0.0160 - ETA: 55s - loss: 4.8072 - acc: 0.0162 - ETA: 55s - loss: 4.8074 - acc: 0.0161 - ETA: 54s - loss: 4.8077 - acc: 0.0160 - ETA: 53s - loss: 4.8079 - acc: 0.0160 - ETA: 52s - loss: 4.8077 - acc: 0.0161 - ETA: 51s - loss: 4.8076 - acc: 0.0161 - ETA: 50s - loss: 4.8073 - acc: 0.0160 - ETA: 49s - loss: 4.8071 - acc: 0.0159 - ETA: 48s - loss: 4.8071 - acc: 0.0159 - ETA: 48s - loss: 4.8078 - acc: 0.0158 - ETA: 47s - loss: 4.8076 - acc: 0.0159 - ETA: 46s - loss: 4.8077 - acc: 0.0159 - ETA: 45s - loss: 4.8084 - acc: 0.0158 - ETA: 44s - loss: 4.8083 - acc: 0.0158 - ETA: 43s - loss: 4.8079 - acc: 0.0159 - ETA: 42s - loss: 4.8080 - acc: 0.0158 - ETA: 41s - loss: 4.8076 - acc: 0.0160 - ETA: 41s - loss: 4.8070 - acc: 0.0159 - ETA: 40s - loss: 4.8067 - acc: 0.0158 - ETA: 39s - loss: 4.8071 - acc: 0.0158 - ETA: 38s - loss: 4.8073 - acc: 0.0159 - ETA: 37s - loss: 4.8070 - acc: 0.0159 - ETA: 36s - loss: 4.8069 - acc: 0.0160 - ETA: 35s - loss: 4.8070 - acc: 0.0161 - ETA: 35s - loss: 4.8068 - acc: 0.0160 - ETA: 34s - loss: 4.8065 - acc: 0.0160 - ETA: 33s - loss: 4.8067 - acc: 0.0159 - ETA: 32s - loss: 4.8064 - acc: 0.0160 - ETA: 31s - loss: 4.8064 - acc: 0.0160 - ETA: 30s - loss: 4.8067 - acc: 0.0159 - ETA: 29s - loss: 4.8069 - acc: 0.0159 - ETA: 29s - loss: 4.8064 - acc: 0.0160 - ETA: 28s - loss: 4.8064 - acc: 0.0159 - ETA: 27s - loss: 4.8056 - acc: 0.0166 - ETA: 26s - loss: 4.8056 - acc: 0.0165 - ETA: 25s - loss: 4.8066 - acc: 0.0164 - ETA: 24s - loss: 4.8065 - acc: 0.0164 - ETA: 23s - loss: 4.8066 - acc: 0.0163 - ETA: 23s - loss: 4.8068 - acc: 0.0164 - ETA: 22s - loss: 4.8066 - acc: 0.0164 - ETA: 21s - loss: 4.8067 - acc: 0.0163 - ETA: 20s - loss: 4.8063 - acc: 0.0163 - ETA: 19s - loss: 4.8062 - acc: 0.0164 - ETA: 18s - loss: 4.8065 - acc: 0.0163 - ETA: 18s - loss: 4.8060 - acc: 0.0166 - ETA: 17s - loss: 4.8058 - acc: 0.0167 - ETA: 16s - loss: 4.8054 - acc: 0.0167 - ETA: 15s - loss: 4.8055 - acc: 0.0166 - ETA: 14s - loss: 4.8062 - acc: 0.0166 - ETA: 13s - loss: 4.8062 - acc: 0.0165 - ETA: 13s - loss: 4.8063 - acc: 0.0165 - ETA: 12s - loss: 4.8065 - acc: 0.0164 - ETA: 11s - loss: 4.8064 - acc: 0.0164 - ETA: 10s - loss: 4.8064 - acc: 0.0165 - ETA: 9s - loss: 4.8062 - acc: 0.0167  - ETA: 8s - loss: 4.8064 - acc: 0.0167 - ETA: 8s - loss: 4.8063 - acc: 0.0168 - ETA: 7s - loss: 4.8069 - acc: 0.0167 - ETA: 6s - loss: 4.8069 - acc: 0.0167 - ETA: 5s - loss: 4.8066 - acc: 0.0166 - ETA: 4s - loss: 4.8065 - acc: 0.0166 - ETA: 3s - loss: 4.8064 - acc: 0.0165 - ETA: 3s - loss: 4.8065 - acc: 0.0165 - ETA: 2s - loss: 4.8061 - acc: 0.0164 - ETA: 1s - loss: 4.8057 - acc: 0.0164 - ETA: 0s - loss: 4.8057 - acc: 0.0165Epoch 00002: val_loss did not improve
6632/6632 [==============================] - 291s - loss: 4.8058 - acc: 0.0164 - val_loss: 4.9721 - val_acc: 0.0144
Epoch 4/5
6620/6632 [============================>.] - ETA: 283s - loss: 4.9485 - acc: 0.0000e+00 - ETA: 281s - loss: 4.9194 - acc: 0.0000e+00 - ETA: 282s - loss: 4.8851 - acc: 0.0000e+00 - ETA: 278s - loss: 4.8566 - acc: 0.0000e+00 - ETA: 278s - loss: 4.8385 - acc: 0.0000e+00 - ETA: 280s - loss: 4.8035 - acc: 0.0000e+00 - ETA: 279s - loss: 4.7900 - acc: 0.0000e+00 - ETA: 277s - loss: 4.7966 - acc: 0.0000e+00 - ETA: 275s - loss: 4.8039 - acc: 0.0056     - ETA: 272s - loss: 4.8066 - acc: 0.0050 - ETA: 271s - loss: 4.8018 - acc: 0.0045 - ETA: 269s - loss: 4.7867 - acc: 0.0042 - ETA: 268s - loss: 4.7960 - acc: 0.0038 - ETA: 268s - loss: 4.7793 - acc: 0.0071 - ETA: 268s - loss: 4.7815 - acc: 0.0067 - ETA: 269s - loss: 4.7826 - acc: 0.0094 - ETA: 268s - loss: 4.7857 - acc: 0.0118 - ETA: 268s - loss: 4.7855 - acc: 0.0139 - ETA: 267s - loss: 4.7842 - acc: 0.0132 - ETA: 265s - loss: 4.7831 - acc: 0.0125 - ETA: 264s - loss: 4.7794 - acc: 0.0143 - ETA: 263s - loss: 4.7757 - acc: 0.0136 - ETA: 261s - loss: 4.7757 - acc: 0.0174 - ETA: 260s - loss: 4.7713 - acc: 0.0167 - ETA: 259s - loss: 4.7680 - acc: 0.0160 - ETA: 258s - loss: 4.7661 - acc: 0.0154 - ETA: 256s - loss: 4.7650 - acc: 0.0167 - ETA: 255s - loss: 4.7674 - acc: 0.0161 - ETA: 254s - loss: 4.7696 - acc: 0.0155 - ETA: 253s - loss: 4.7679 - acc: 0.0167 - ETA: 252s - loss: 4.7695 - acc: 0.0161 - ETA: 251s - loss: 4.7692 - acc: 0.0172 - ETA: 250s - loss: 4.7711 - acc: 0.0167 - ETA: 249s - loss: 4.7702 - acc: 0.0162 - ETA: 249s - loss: 4.7696 - acc: 0.0157 - ETA: 248s - loss: 4.7683 - acc: 0.0153 - ETA: 248s - loss: 4.7699 - acc: 0.0149 - ETA: 247s - loss: 4.7665 - acc: 0.0158 - ETA: 247s - loss: 4.7653 - acc: 0.0154 - ETA: 246s - loss: 4.7665 - acc: 0.0163 - ETA: 246s - loss: 4.7676 - acc: 0.0171 - ETA: 246s - loss: 4.7709 - acc: 0.0167 - ETA: 245s - loss: 4.7704 - acc: 0.0174 - ETA: 245s - loss: 4.7716 - acc: 0.0170 - ETA: 245s - loss: 4.7731 - acc: 0.0167 - ETA: 244s - loss: 4.7713 - acc: 0.0174 - ETA: 244s - loss: 4.7740 - acc: 0.0170 - ETA: 243s - loss: 4.7778 - acc: 0.0177 - ETA: 242s - loss: 4.7796 - acc: 0.0173 - ETA: 241s - loss: 4.7782 - acc: 0.0170 - ETA: 240s - loss: 4.7761 - acc: 0.0167 - ETA: 240s - loss: 4.7780 - acc: 0.0163 - ETA: 239s - loss: 4.7783 - acc: 0.0170 - ETA: 239s - loss: 4.7785 - acc: 0.0167 - ETA: 238s - loss: 4.7794 - acc: 0.0164 - ETA: 236s - loss: 4.7807 - acc: 0.0161 - ETA: 235s - loss: 4.7778 - acc: 0.0167 - ETA: 234s - loss: 4.7764 - acc: 0.0164 - ETA: 233s - loss: 4.7768 - acc: 0.0161 - ETA: 232s - loss: 4.7752 - acc: 0.0158 - ETA: 231s - loss: 4.7748 - acc: 0.0164 - ETA: 230s - loss: 4.7745 - acc: 0.0169 - ETA: 229s - loss: 4.7737 - acc: 0.0167 - ETA: 228s - loss: 4.7751 - acc: 0.0164 - ETA: 227s - loss: 4.7752 - acc: 0.0162 - ETA: 227s - loss: 4.7739 - acc: 0.0167 - ETA: 226s - loss: 4.7748 - acc: 0.0164 - ETA: 226s - loss: 4.7749 - acc: 0.0162 - ETA: 225s - loss: 4.7747 - acc: 0.0159 - ETA: 225s - loss: 4.7753 - acc: 0.0157 - ETA: 224s - loss: 4.7761 - acc: 0.0155 - ETA: 224s - loss: 4.7762 - acc: 0.0160 - ETA: 225s - loss: 4.7755 - acc: 0.0158 - ETA: 224s - loss: 4.7750 - acc: 0.0155 - ETA: 224s - loss: 4.7751 - acc: 0.0153 - ETA: 223s - loss: 4.7778 - acc: 0.0151 - ETA: 222s - loss: 4.7786 - acc: 0.0156 - ETA: 222s - loss: 4.7803 - acc: 0.0154 - ETA: 222s - loss: 4.7801 - acc: 0.0152 - ETA: 221s - loss: 4.7792 - acc: 0.0150 - ETA: 221s - loss: 4.7790 - acc: 0.0154 - ETA: 221s - loss: 4.7767 - acc: 0.0165 - ETA: 221s - loss: 4.7757 - acc: 0.0163 - ETA: 221s - loss: 4.7762 - acc: 0.0161 - ETA: 221s - loss: 4.7748 - acc: 0.0159 - ETA: 221s - loss: 4.7735 - acc: 0.0163 - ETA: 221s - loss: 4.7730 - acc: 0.0161 - ETA: 220s - loss: 4.7732 - acc: 0.0159 - ETA: 221s - loss: 4.7733 - acc: 0.0157 - ETA: 220s - loss: 4.7724 - acc: 0.0156 - ETA: 220s - loss: 4.7726 - acc: 0.0154 - ETA: 220s - loss: 4.7726 - acc: 0.0152 - ETA: 219s - loss: 4.7735 - acc: 0.0151 - ETA: 219s - loss: 4.7740 - acc: 0.0149 - ETA: 218s - loss: 4.7726 - acc: 0.0153 - ETA: 218s - loss: 4.7736 - acc: 0.0151 - ETA: 217s - loss: 4.7744 - acc: 0.0155 - ETA: 216s - loss: 4.7759 - acc: 0.0158 - ETA: 215s - loss: 4.7757 - acc: 0.0157 - ETA: 215s - loss: 4.7757 - acc: 0.0160 - ETA: 214s - loss: 4.7766 - acc: 0.0158 - ETA: 213s - loss: 4.7780 - acc: 0.0157 - ETA: 213s - loss: 4.7787 - acc: 0.0155 - ETA: 212s - loss: 4.7793 - acc: 0.0154 - ETA: 211s - loss: 4.7784 - acc: 0.0152 - ETA: 211s - loss: 4.7790 - acc: 0.0156 - ETA: 210s - loss: 4.7776 - acc: 0.0154 - ETA: 210s - loss: 4.7770 - acc: 0.0157 - ETA: 209s - loss: 4.7774 - acc: 0.0161 - ETA: 208s - loss: 4.7784 - acc: 0.0159 - ETA: 207s - loss: 4.7796 - acc: 0.0158 - ETA: 207s - loss: 4.7798 - acc: 0.0156 - ETA: 206s - loss: 4.7796 - acc: 0.0155 - ETA: 205s - loss: 4.7785 - acc: 0.0158 - ETA: 205s - loss: 4.7775 - acc: 0.0161 - ETA: 204s - loss: 4.7784 - acc: 0.0159 - ETA: 203s - loss: 4.7777 - acc: 0.0158 - ETA: 203s - loss: 4.7766 - acc: 0.0169 - ETA: 202s - loss: 4.7780 - acc: 0.0168 - ETA: 201s - loss: 4.7783 - acc: 0.0167 - ETA: 199s - loss: 4.7791 - acc: 0.0165 - ETA: 198s - loss: 4.7791 - acc: 0.0164 - ETA: 197s - loss: 4.7775 - acc: 0.0163 - ETA: 196s - loss: 4.7776 - acc: 0.0161 - ETA: 195s - loss: 4.7782 - acc: 0.0160 - ETA: 194s - loss: 4.7784 - acc: 0.0159 - ETA: 193s - loss: 4.7786 - acc: 0.0165 - ETA: 192s - loss: 4.7774 - acc: 0.0168 - ETA: 191s - loss: 4.7764 - acc: 0.0167 - ETA: 190s - loss: 4.7776 - acc: 0.0165 - ETA: 188s - loss: 4.7778 - acc: 0.0164 - ETA: 187s - loss: 4.7771 - acc: 0.0163 - ETA: 186s - loss: 4.7766 - acc: 0.0162 - ETA: 185s - loss: 4.7774 - acc: 0.0164 - ETA: 184s - loss: 4.7758 - acc: 0.0170 - ETA: 183s - loss: 4.7747 - acc: 0.0176 - ETA: 182s - loss: 4.7754 - acc: 0.0175 - ETA: 181s - loss: 4.7756 - acc: 0.0174 - ETA: 180s - loss: 4.7752 - acc: 0.0176 - ETA: 179s - loss: 4.7747 - acc: 0.0175 - ETA: 178s - loss: 4.7754 - acc: 0.0174 - ETA: 176s - loss: 4.7753 - acc: 0.0173 - ETA: 175s - loss: 4.7757 - acc: 0.0171 - ETA: 174s - loss: 4.7745 - acc: 0.0170 - ETA: 173s - loss: 4.7753 - acc: 0.0169 - ETA: 172s - loss: 4.7765 - acc: 0.0168 - ETA: 171s - loss: 4.7763 - acc: 0.0173 - ETA: 170s - loss: 4.7754 - acc: 0.0172 - ETA: 169s - loss: 4.7760 - acc: 0.0171 - ETA: 168s - loss: 4.7760 - acc: 0.0170 - ETA: 167s - loss: 4.7756 - acc: 0.0175 - ETA: 166s - loss: 4.7753 - acc: 0.0178 - ETA: 165s - loss: 4.7745 - acc: 0.0180 - ETA: 164s - loss: 4.7744 - acc: 0.0179 - ETA: 164s - loss: 4.7742 - acc: 0.0177 - ETA: 162s - loss: 4.7742 - acc: 0.0183 - ETA: 162s - loss: 4.7741 - acc: 0.0185 - ETA: 160s - loss: 4.7740 - acc: 0.0184 - ETA: 159s - loss: 4.7744 - acc: 0.0182 - ETA: 158s - loss: 4.7745 - acc: 0.0181 - ETA: 157s - loss: 4.7735 - acc: 0.0180 - ETA: 156s - loss: 4.7737 - acc: 0.0179 - ETA: 155s - loss: 4.7735 - acc: 0.0181 - ETA: 154s - loss: 4.7730 - acc: 0.0186 - ETA: 153s - loss: 4.7712 - acc: 0.0194 - ETA: 152s - loss: 4.7715 - acc: 0.0193 - ETA: 151s - loss: 4.7715 - acc: 0.0192 - ETA: 150s - loss: 4.7712 - acc: 0.0196 - ETA: 149s - loss: 4.7707 - acc: 0.0198 - ETA: 148s - loss: 4.7701 - acc: 0.0203 - ETA: 147s - loss: 4.7712 - acc: 0.0202 - ETA: 146s - loss: 4.7714 - acc: 0.0201 - ETA: 145s - loss: 4.7717 - acc: 0.0199 - ETA: 144s - loss: 4.7717 - acc: 0.0204 - ETA: 143s - loss: 4.7719 - acc: 0.0203 - ETA: 142s - loss: 4.7716 - acc: 0.0205 - ETA: 141s - loss: 4.7719 - acc: 0.0206 - ETA: 140s - loss: 4.7714 - acc: 0.0208 - ETA: 139s - loss: 4.7716 - acc: 0.0207 - ETA: 138s - loss: 4.7727 - acc: 0.0206 - ETA: 137s - loss: 4.7727 - acc: 0.0204 - ETA: 136s - loss: 4.7729 - acc: 0.0203 - ETA: 135s - loss: 4.7730 - acc: 0.0205 - ETA: 134s - loss: 4.7725 - acc: 0.0204 - ETA: 133s - loss: 4.7720 - acc: 0.0203 - ETA: 132s - loss: 4.7714 - acc: 0.0202 - ETA: 130s - loss: 4.7717 - acc: 0.0201 - ETA: 129s - loss: 4.7710 - acc: 0.0199 - ETA: 128s - loss: 4.7702 - acc: 0.0201 - ETA: 127s - loss: 4.7705 - acc: 0.0200 - ETA: 126s - loss: 4.7709 - acc: 0.0199 - ETA: 125s - loss: 4.7707 - acc: 0.0198 - ETA: 124s - loss: 4.7705 - acc: 0.0199 - ETA: 123s - loss: 4.7699 - acc: 0.0201 - ETA: 122s - loss: 4.7704 - acc: 0.0200 - ETA: 121s - loss: 4.7705 - acc: 0.0202 - ETA: 120s - loss: 4.7705 - acc: 0.0203 - ETA: 120s - loss: 4.7704 - acc: 0.0205 - ETA: 119s - loss: 4.7711 - acc: 0.0209 - ETA: 118s - loss: 4.7713 - acc: 0.0210 - ETA: 117s - loss: 4.7718 - acc: 0.0209 - ETA: 116s - loss: 4.7717 - acc: 0.0208 - ETA: 115s - loss: 4.7709 - acc: 0.0207 - ETA: 114s - loss: 4.7699 - acc: 0.0206 - ETA: 113s - loss: 4.7714 - acc: 0.0205 - ETA: 112s - loss: 4.7714 - acc: 0.0204 - ETA: 111s - loss: 4.7710 - acc: 0.0205 - ETA: 110s - loss: 4.7707 - acc: 0.0207 - ETA: 109s - loss: 4.7709 - acc: 0.0206 - ETA: 108s - loss: 4.7717 - acc: 0.0205 - ETA: 107s - loss: 4.7724 - acc: 0.0204 - ETA: 106s - loss: 4.7722 - acc: 0.0203 - ETA: 105s - loss: 4.7712 - acc: 0.0204 - ETA: 104s - loss: 4.7710 - acc: 0.0203 - ETA: 103s - loss: 4.7711 - acc: 0.0207 - ETA: 102s - loss: 4.7712 - acc: 0.0206 - ETA: 101s - loss: 4.7705 - acc: 0.0207 - ETA: 100s - loss: 4.7702 - acc: 0.0206 - ETA: 99s - loss: 4.7697 - acc: 0.0205  - ETA: 98s - loss: 4.7691 - acc: 0.0207 - ETA: 97s - loss: 4.7687 - acc: 0.0206 - ETA: 96s - loss: 4.7684 - acc: 0.0207 - ETA: 96s - loss: 4.7680 - acc: 0.0209 - ETA: 95s - loss: 4.7685 - acc: 0.0208 - ETA: 94s - loss: 4.7678 - acc: 0.0211 - ETA: 93s - loss: 4.7682 - acc: 0.0210 - ETA: 92s - loss: 4.7678 - acc: 0.0209 - ETA: 91s - loss: 4.7678 - acc: 0.0208 - ETA: 90s - loss: 4.7676 - acc: 0.0210 - ETA: 89s - loss: 4.7672 - acc: 0.0209 - ETA: 88s - loss: 4.7666 - acc: 0.0212 - ETA: 87s - loss: 4.7672 - acc: 0.0211 - ETA: 86s - loss: 4.7672 - acc: 0.0212 - ETA: 85s - loss: 4.7671 - acc: 0.0212 - ETA: 85s - loss: 4.7667 - acc: 0.0211 - ETA: 84s - loss: 4.7664 - acc: 0.0212 - ETA: 83s - loss: 4.7659 - acc: 0.0211 - ETA: 82s - loss: 4.7656 - acc: 0.0210 - ETA: 81s - loss: 4.7656 - acc: 0.0209 - ETA: 80s - loss: 4.7650 - acc: 0.0210 - ETA: 79s - loss: 4.7650 - acc: 0.0212 - ETA: 78s - loss: 4.7649 - acc: 0.0211 - ETA: 78s - loss: 4.7645 - acc: 0.0214 - ETA: 77s - loss: 4.7646 - acc: 0.0213 - ETA: 76s - loss: 4.7648 - acc: 0.0212 - ETA: 75s - loss: 4.7655 - acc: 0.0211 - ETA: 74s - loss: 4.7650 - acc: 0.0215 - ETA: 73s - loss: 4.7645 - acc: 0.0214 - ETA: 72s - loss: 4.7647 - acc: 0.0213 - ETA: 71s - loss: 4.7647 - acc: 0.0212 - ETA: 70s - loss: 4.7645 - acc: 0.0213 - ETA: 69s - loss: 4.7647 - acc: 0.0212 - ETA: 69s - loss: 4.7643 - acc: 0.0211 - ETA: 68s - loss: 4.7637 - acc: 0.0213 - ETA: 67s - loss: 4.7641 - acc: 0.0212 - ETA: 66s - loss: 4.7639 - acc: 0.0213 - ETA: 65s - loss: 4.7652 - acc: 0.0212 - ETA: 64s - loss: 4.7652 - acc: 0.0211 - ETA: 63s - loss: 4.7658 - acc: 0.0210 - ETA: 62s - loss: 4.7655 - acc: 0.0212 - ETA: 62s - loss: 4.7646 - acc: 0.0211 - ETA: 61s - loss: 4.7647 - acc: 0.0210 - ETA: 60s - loss: 4.7648 - acc: 0.0211 - ETA: 59s - loss: 4.7650 - acc: 0.0210 - ETA: 58s - loss: 4.7647 - acc: 0.0209 - ETA: 57s - loss: 4.7645 - acc: 0.0211 - ETA: 57s - loss: 4.7646 - acc: 0.0213 - ETA: 56s - loss: 4.7648 - acc: 0.0213 - ETA: 55s - loss: 4.7643 - acc: 0.0212 - ETA: 54s - loss: 4.7645 - acc: 0.0211 - ETA: 53s - loss: 4.7648 - acc: 0.0210 - ETA: 52s - loss: 4.7652 - acc: 0.0210 - ETA: 51s - loss: 4.7649 - acc: 0.0211 - ETA: 50s - loss: 4.7654 - acc: 0.0210 - ETA: 50s - loss: 4.7649 - acc: 0.0211 - ETA: 49s - loss: 4.7646 - acc: 0.0210 - ETA: 48s - loss: 4.7645 - acc: 0.0209 - ETA: 47s - loss: 4.7646 - acc: 0.0209 - ETA: 46s - loss: 4.7648 - acc: 0.0208 - ETA: 45s - loss: 4.7656 - acc: 0.0211 - ETA: 45s - loss: 4.7661 - acc: 0.0212 - ETA: 44s - loss: 4.7654 - acc: 0.0213 - ETA: 43s - loss: 4.7661 - acc: 0.0214 - ETA: 42s - loss: 4.7665 - acc: 0.0213 - ETA: 41s - loss: 4.7664 - acc: 0.0214 - ETA: 40s - loss: 4.7661 - acc: 0.0213 - ETA: 39s - loss: 4.7661 - acc: 0.0213 - ETA: 39s - loss: 4.7652 - acc: 0.0214 - ETA: 38s - loss: 4.7655 - acc: 0.0213 - ETA: 37s - loss: 4.7658 - acc: 0.0212 - ETA: 36s - loss: 4.7658 - acc: 0.0211 - ETA: 35s - loss: 4.7666 - acc: 0.0211 - ETA: 34s - loss: 4.7658 - acc: 0.0210 - ETA: 33s - loss: 4.7655 - acc: 0.0209 - ETA: 32s - loss: 4.7657 - acc: 0.0208 - ETA: 31s - loss: 4.7661 - acc: 0.0208 - ETA: 31s - loss: 4.7653 - acc: 0.0210 - ETA: 30s - loss: 4.7651 - acc: 0.0210 - ETA: 29s - loss: 4.7643 - acc: 0.0211 - ETA: 28s - loss: 4.7645 - acc: 0.0210 - ETA: 27s - loss: 4.7641 - acc: 0.0209 - ETA: 26s - loss: 4.7640 - acc: 0.0210 - ETA: 25s - loss: 4.7644 - acc: 0.0210 - ETA: 24s - loss: 4.7647 - acc: 0.0209 - ETA: 23s - loss: 4.7647 - acc: 0.0208 - ETA: 23s - loss: 4.7652 - acc: 0.0208 - ETA: 22s - loss: 4.7648 - acc: 0.0210 - ETA: 21s - loss: 4.7643 - acc: 0.0211 - ETA: 20s - loss: 4.7640 - acc: 0.0210 - ETA: 19s - loss: 4.7633 - acc: 0.0210 - ETA: 18s - loss: 4.7637 - acc: 0.0209 - ETA: 17s - loss: 4.7635 - acc: 0.0208 - ETA: 16s - loss: 4.7636 - acc: 0.0208 - ETA: 15s - loss: 4.7632 - acc: 0.0207 - ETA: 15s - loss: 4.7630 - acc: 0.0210 - ETA: 14s - loss: 4.7627 - acc: 0.0209 - ETA: 13s - loss: 4.7629 - acc: 0.0210 - ETA: 12s - loss: 4.7630 - acc: 0.0211 - ETA: 11s - loss: 4.7628 - acc: 0.0213 - ETA: 10s - loss: 4.7627 - acc: 0.0213 - ETA: 9s - loss: 4.7626 - acc: 0.0213  - ETA: 8s - loss: 4.7620 - acc: 0.0213 - ETA: 7s - loss: 4.7621 - acc: 0.0212 - ETA: 6s - loss: 4.7627 - acc: 0.0211 - ETA: 5s - loss: 4.7623 - acc: 0.0211 - ETA: 5s - loss: 4.7626 - acc: 0.0210 - ETA: 4s - loss: 4.7627 - acc: 0.0209 - ETA: 3s - loss: 4.7631 - acc: 0.0209 - ETA: 2s - loss: 4.7628 - acc: 0.0208 - ETA: 1s - loss: 4.7631 - acc: 0.0208 - ETA: 0s - loss: 4.7638 - acc: 0.0207Epoch 00003: val_loss did not improve
6632/6632 [==============================] - 316s - loss: 4.7636 - acc: 0.0207 - val_loss: 4.9924 - val_acc: 0.0180
Epoch 5/5
6620/6632 [============================>.] - ETA: 318s - loss: 4.7749 - acc: 0.0000e+00 - ETA: 313s - loss: 4.7171 - acc: 0.0000e+00 - ETA: 310s - loss: 4.7209 - acc: 0.0000e+00 - ETA: 312s - loss: 4.7170 - acc: 0.0000e+00 - ETA: 310s - loss: 4.7022 - acc: 0.0000e+00 - ETA: 309s - loss: 4.6808 - acc: 0.0083     - ETA: 308s - loss: 4.6973 - acc: 0.0071 - ETA: 310s - loss: 4.6859 - acc: 0.0063 - ETA: 312s - loss: 4.6827 - acc: 0.0056 - ETA: 316s - loss: 4.6636 - acc: 0.0100 - ETA: 314s - loss: 4.6719 - acc: 0.0091 - ETA: 314s - loss: 4.6707 - acc: 0.0083 - ETA: 312s - loss: 4.6596 - acc: 0.0077 - ETA: 309s - loss: 4.6702 - acc: 0.0107 - ETA: 309s - loss: 4.6769 - acc: 0.0167 - ETA: 308s - loss: 4.6808 - acc: 0.0156 - ETA: 306s - loss: 4.6827 - acc: 0.0147 - ETA: 306s - loss: 4.6963 - acc: 0.0167 - ETA: 304s - loss: 4.7064 - acc: 0.0158 - ETA: 302s - loss: 4.7068 - acc: 0.0175 - ETA: 302s - loss: 4.7109 - acc: 0.0167 - ETA: 304s - loss: 4.7083 - acc: 0.0205 - ETA: 302s - loss: 4.7101 - acc: 0.0196 - ETA: 301s - loss: 4.7103 - acc: 0.0208 - ETA: 300s - loss: 4.7154 - acc: 0.0240 - ETA: 298s - loss: 4.7177 - acc: 0.0231 - ETA: 297s - loss: 4.7123 - acc: 0.0259 - ETA: 296s - loss: 4.7171 - acc: 0.0268 - ETA: 295s - loss: 4.7162 - acc: 0.0259 - ETA: 294s - loss: 4.7157 - acc: 0.0267 - ETA: 293s - loss: 4.7159 - acc: 0.0274 - ETA: 292s - loss: 4.7229 - acc: 0.0266 - ETA: 291s - loss: 4.7223 - acc: 0.0258 - ETA: 289s - loss: 4.7172 - acc: 0.0250 - ETA: 288s - loss: 4.7174 - acc: 0.0243 - ETA: 287s - loss: 4.7178 - acc: 0.0236 - ETA: 286s - loss: 4.7149 - acc: 0.0243 - ETA: 285s - loss: 4.7147 - acc: 0.0250 - ETA: 284s - loss: 4.7169 - acc: 0.0244 - ETA: 283s - loss: 4.7157 - acc: 0.0250 - ETA: 282s - loss: 4.7156 - acc: 0.0244 - ETA: 281s - loss: 4.7143 - acc: 0.0238 - ETA: 280s - loss: 4.7144 - acc: 0.0233 - ETA: 279s - loss: 4.7112 - acc: 0.0239 - ETA: 278s - loss: 4.7118 - acc: 0.0267 - ETA: 277s - loss: 4.7068 - acc: 0.0283 - ETA: 276s - loss: 4.7059 - acc: 0.0287 - ETA: 275s - loss: 4.7088 - acc: 0.0281 - ETA: 274s - loss: 4.7131 - acc: 0.0276 - ETA: 273s - loss: 4.7148 - acc: 0.0270 - ETA: 271s - loss: 4.7185 - acc: 0.0265 - ETA: 270s - loss: 4.7181 - acc: 0.0260 - ETA: 269s - loss: 4.7166 - acc: 0.0264 - ETA: 268s - loss: 4.7123 - acc: 0.0269 - ETA: 267s - loss: 4.7112 - acc: 0.0264 - ETA: 266s - loss: 4.7135 - acc: 0.0259 - ETA: 265s - loss: 4.7138 - acc: 0.0254 - ETA: 263s - loss: 4.7112 - acc: 0.0259 - ETA: 262s - loss: 4.7106 - acc: 0.0254 - ETA: 261s - loss: 4.7115 - acc: 0.0250 - ETA: 261s - loss: 4.7139 - acc: 0.0246 - ETA: 259s - loss: 4.7127 - acc: 0.0250 - ETA: 258s - loss: 4.7165 - acc: 0.0246 - ETA: 257s - loss: 4.7179 - acc: 0.0250 - ETA: 257s - loss: 4.7165 - acc: 0.0246 - ETA: 256s - loss: 4.7195 - acc: 0.0242 - ETA: 255s - loss: 4.7199 - acc: 0.0239 - ETA: 254s - loss: 4.7189 - acc: 0.0235 - ETA: 253s - loss: 4.7210 - acc: 0.0232 - ETA: 252s - loss: 4.7175 - acc: 0.0236 - ETA: 251s - loss: 4.7178 - acc: 0.0232 - ETA: 249s - loss: 4.7170 - acc: 0.0229 - ETA: 248s - loss: 4.7162 - acc: 0.0226 - ETA: 247s - loss: 4.7179 - acc: 0.0223 - ETA: 247s - loss: 4.7162 - acc: 0.0227 - ETA: 246s - loss: 4.7158 - acc: 0.0230 - ETA: 245s - loss: 4.7153 - acc: 0.0234 - ETA: 244s - loss: 4.7184 - acc: 0.0237 - ETA: 243s - loss: 4.7205 - acc: 0.0234 - ETA: 242s - loss: 4.7202 - acc: 0.0231 - ETA: 242s - loss: 4.7200 - acc: 0.0228 - ETA: 241s - loss: 4.7184 - acc: 0.0238 - ETA: 240s - loss: 4.7176 - acc: 0.0241 - ETA: 239s - loss: 4.7173 - acc: 0.0238 - ETA: 238s - loss: 4.7165 - acc: 0.0241 - ETA: 237s - loss: 4.7166 - acc: 0.0238 - ETA: 237s - loss: 4.7137 - acc: 0.0241 - ETA: 236s - loss: 4.7167 - acc: 0.0250 - ETA: 235s - loss: 4.7196 - acc: 0.0247 - ETA: 234s - loss: 4.7199 - acc: 0.0244 - ETA: 234s - loss: 4.7199 - acc: 0.0247 - ETA: 233s - loss: 4.7188 - acc: 0.0255 - ETA: 232s - loss: 4.7192 - acc: 0.0253 - ETA: 231s - loss: 4.7187 - acc: 0.0250 - ETA: 230s - loss: 4.7183 - acc: 0.0247 - ETA: 229s - loss: 4.7214 - acc: 0.0245 - ETA: 228s - loss: 4.7205 - acc: 0.0242 - ETA: 227s - loss: 4.7195 - acc: 0.0245 - ETA: 226s - loss: 4.7192 - acc: 0.0247 - ETA: 225s - loss: 4.7197 - acc: 0.0250 - ETA: 224s - loss: 4.7191 - acc: 0.0252 - ETA: 223s - loss: 4.7202 - acc: 0.0250 - ETA: 222s - loss: 4.7205 - acc: 0.0248 - ETA: 221s - loss: 4.7204 - acc: 0.0245 - ETA: 220s - loss: 4.7208 - acc: 0.0243 - ETA: 220s - loss: 4.7198 - acc: 0.0245 - ETA: 219s - loss: 4.7214 - acc: 0.0243 - ETA: 218s - loss: 4.7216 - acc: 0.0241 - ETA: 217s - loss: 4.7209 - acc: 0.0243 - ETA: 216s - loss: 4.7220 - acc: 0.0241 - ETA: 215s - loss: 4.7219 - acc: 0.0239 - ETA: 214s - loss: 4.7214 - acc: 0.0237 - ETA: 213s - loss: 4.7219 - acc: 0.0235 - ETA: 212s - loss: 4.7232 - acc: 0.0232 - ETA: 211s - loss: 4.7239 - acc: 0.0230 - ETA: 210s - loss: 4.7242 - acc: 0.0228 - ETA: 209s - loss: 4.7240 - acc: 0.0226 - ETA: 208s - loss: 4.7243 - acc: 0.0225 - ETA: 207s - loss: 4.7245 - acc: 0.0223 - ETA: 206s - loss: 4.7239 - acc: 0.0221 - ETA: 205s - loss: 4.7243 - acc: 0.0223 - ETA: 204s - loss: 4.7258 - acc: 0.0230 - ETA: 203s - loss: 4.7261 - acc: 0.0228 - ETA: 202s - loss: 4.7284 - acc: 0.0226 - ETA: 201s - loss: 4.7276 - acc: 0.0224 - ETA: 200s - loss: 4.7262 - acc: 0.0222 - ETA: 199s - loss: 4.7262 - acc: 0.0224 - ETA: 198s - loss: 4.7267 - acc: 0.0223 - ETA: 197s - loss: 4.7253 - acc: 0.0221 - ETA: 196s - loss: 4.7257 - acc: 0.0219 - ETA: 195s - loss: 4.7257 - acc: 0.0218 - ETA: 194s - loss: 4.7268 - acc: 0.0216 - ETA: 193s - loss: 4.7271 - acc: 0.0214 - ETA: 192s - loss: 4.7285 - acc: 0.0213 - ETA: 191s - loss: 4.7284 - acc: 0.0219 - ETA: 190s - loss: 4.7282 - acc: 0.0217 - ETA: 189s - loss: 4.7283 - acc: 0.0219 - ETA: 188s - loss: 4.7282 - acc: 0.0217 - ETA: 187s - loss: 4.7270 - acc: 0.0219 - ETA: 186s - loss: 4.7265 - acc: 0.0218 - ETA: 185s - loss: 4.7270 - acc: 0.0220 - ETA: 184s - loss: 4.7272 - acc: 0.0218 - ETA: 183s - loss: 4.7274 - acc: 0.0217 - ETA: 182s - loss: 4.7273 - acc: 0.0215 - ETA: 181s - loss: 4.7278 - acc: 0.0214 - ETA: 180s - loss: 4.7271 - acc: 0.0212 - ETA: 179s - loss: 4.7266 - acc: 0.0211 - ETA: 178s - loss: 4.7252 - acc: 0.0209 - ETA: 177s - loss: 4.7253 - acc: 0.0211 - ETA: 176s - loss: 4.7246 - acc: 0.0210 - ETA: 175s - loss: 4.7240 - acc: 0.0212 - ETA: 174s - loss: 4.7235 - acc: 0.0214 - ETA: 173s - loss: 4.7242 - acc: 0.0212 - ETA: 172s - loss: 4.7258 - acc: 0.0211 - ETA: 171s - loss: 4.7257 - acc: 0.0210 - ETA: 170s - loss: 4.7270 - acc: 0.0208 - ETA: 169s - loss: 4.7274 - acc: 0.0210 - ETA: 168s - loss: 4.7264 - acc: 0.0212 - ETA: 167s - loss: 4.7248 - acc: 0.0214 - ETA: 166s - loss: 4.7259 - acc: 0.0213 - ETA: 165s - loss: 4.7245 - acc: 0.0211 - ETA: 164s - loss: 4.7247 - acc: 0.0213 - ETA: 164s - loss: 4.7240 - acc: 0.0215 - ETA: 163s - loss: 4.7243 - acc: 0.0213 - ETA: 162s - loss: 4.7244 - acc: 0.0212 - ETA: 161s - loss: 4.7239 - acc: 0.0214 - ETA: 160s - loss: 4.7244 - acc: 0.0213 - ETA: 159s - loss: 4.7250 - acc: 0.0211 - ETA: 158s - loss: 4.7248 - acc: 0.0210 - ETA: 157s - loss: 4.7245 - acc: 0.0209 - ETA: 156s - loss: 4.7241 - acc: 0.0211 - ETA: 155s - loss: 4.7241 - acc: 0.0209 - ETA: 154s - loss: 4.7247 - acc: 0.0211 - ETA: 153s - loss: 4.7261 - acc: 0.0210 - ETA: 152s - loss: 4.7255 - acc: 0.0209 - ETA: 151s - loss: 4.7255 - acc: 0.0210 - ETA: 150s - loss: 4.7255 - acc: 0.0209 - ETA: 149s - loss: 4.7259 - acc: 0.0208 - ETA: 148s - loss: 4.7257 - acc: 0.0212 - ETA: 147s - loss: 4.7262 - acc: 0.0214 - ETA: 146s - loss: 4.7256 - acc: 0.0213 - ETA: 145s - loss: 4.7253 - acc: 0.0212 - ETA: 144s - loss: 4.7257 - acc: 0.0210 - ETA: 143s - loss: 4.7255 - acc: 0.0209 - ETA: 142s - loss: 4.7237 - acc: 0.0211 - ETA: 141s - loss: 4.7234 - acc: 0.0212 - ETA: 140s - loss: 4.7229 - acc: 0.0214 - ETA: 139s - loss: 4.7239 - acc: 0.0213 - ETA: 138s - loss: 4.7238 - acc: 0.0217 - ETA: 137s - loss: 4.7230 - acc: 0.0216 - ETA: 136s - loss: 4.7230 - acc: 0.0217 - ETA: 135s - loss: 4.7234 - acc: 0.0216 - ETA: 134s - loss: 4.7237 - acc: 0.0215 - ETA: 133s - loss: 4.7230 - acc: 0.0214 - ETA: 132s - loss: 4.7232 - acc: 0.0213 - ETA: 131s - loss: 4.7233 - acc: 0.0212 - ETA: 130s - loss: 4.7232 - acc: 0.0213 - ETA: 129s - loss: 4.7221 - acc: 0.0217 - ETA: 128s - loss: 4.7224 - acc: 0.0216 - ETA: 127s - loss: 4.7226 - acc: 0.0218 - ETA: 126s - loss: 4.7221 - acc: 0.0216 - ETA: 125s - loss: 4.7222 - acc: 0.0218 - ETA: 124s - loss: 4.7220 - acc: 0.0217 - ETA: 123s - loss: 4.7226 - acc: 0.0218 - ETA: 122s - loss: 4.7226 - acc: 0.0220 - ETA: 121s - loss: 4.7223 - acc: 0.0218 - ETA: 120s - loss: 4.7235 - acc: 0.0220 - ETA: 119s - loss: 4.7228 - acc: 0.0219 - ETA: 118s - loss: 4.7240 - acc: 0.0218 - ETA: 117s - loss: 4.7235 - acc: 0.0217 - ETA: 116s - loss: 4.7240 - acc: 0.0218 - ETA: 115s - loss: 4.7236 - acc: 0.0217 - ETA: 114s - loss: 4.7230 - acc: 0.0216 - ETA: 113s - loss: 4.7239 - acc: 0.0217 - ETA: 112s - loss: 4.7238 - acc: 0.0219 - ETA: 111s - loss: 4.7251 - acc: 0.0218 - ETA: 110s - loss: 4.7242 - acc: 0.0217 - ETA: 109s - loss: 4.7241 - acc: 0.0216 - ETA: 108s - loss: 4.7241 - acc: 0.0215 - ETA: 107s - loss: 4.7241 - acc: 0.0216 - ETA: 106s - loss: 4.7244 - acc: 0.0217 - ETA: 105s - loss: 4.7240 - acc: 0.0216 - ETA: 105s - loss: 4.7241 - acc: 0.0217 - ETA: 104s - loss: 4.7247 - acc: 0.0217 - ETA: 103s - loss: 4.7240 - acc: 0.0216 - ETA: 102s - loss: 4.7245 - acc: 0.0215 - ETA: 101s - loss: 4.7241 - acc: 0.0216 - ETA: 100s - loss: 4.7226 - acc: 0.0219 - ETA: 99s - loss: 4.7223 - acc: 0.0218  - ETA: 98s - loss: 4.7233 - acc: 0.0217 - ETA: 97s - loss: 4.7234 - acc: 0.0216 - ETA: 96s - loss: 4.7244 - acc: 0.0220 - ETA: 96s - loss: 4.7253 - acc: 0.0221 - ETA: 95s - loss: 4.7253 - acc: 0.0220 - ETA: 94s - loss: 4.7254 - acc: 0.0221 - ETA: 93s - loss: 4.7262 - acc: 0.0220 - ETA: 92s - loss: 4.7265 - acc: 0.0219 - ETA: 91s - loss: 4.7266 - acc: 0.0218 - ETA: 90s - loss: 4.7260 - acc: 0.0218 - ETA: 89s - loss: 4.7263 - acc: 0.0219 - ETA: 88s - loss: 4.7263 - acc: 0.0220 - ETA: 87s - loss: 4.7260 - acc: 0.0219 - ETA: 86s - loss: 4.7264 - acc: 0.0220 - ETA: 85s - loss: 4.7267 - acc: 0.0221 - ETA: 84s - loss: 4.7275 - acc: 0.0220 - ETA: 83s - loss: 4.7279 - acc: 0.0222 - ETA: 82s - loss: 4.7287 - acc: 0.0221 - ETA: 81s - loss: 4.7290 - acc: 0.0220 - ETA: 80s - loss: 4.7279 - acc: 0.0221 - ETA: 79s - loss: 4.7282 - acc: 0.0220 - ETA: 78s - loss: 4.7283 - acc: 0.0219 - ETA: 77s - loss: 4.7280 - acc: 0.0218 - ETA: 76s - loss: 4.7277 - acc: 0.0217 - ETA: 75s - loss: 4.7274 - acc: 0.0219 - ETA: 74s - loss: 4.7280 - acc: 0.0218 - ETA: 73s - loss: 4.7284 - acc: 0.0219 - ETA: 72s - loss: 4.7284 - acc: 0.0218 - ETA: 71s - loss: 4.7282 - acc: 0.0217 - ETA: 70s - loss: 4.7276 - acc: 0.0216 - ETA: 69s - loss: 4.7273 - acc: 0.0217 - ETA: 68s - loss: 4.7272 - acc: 0.0216 - ETA: 67s - loss: 4.7276 - acc: 0.0216 - ETA: 66s - loss: 4.7283 - acc: 0.0217 - ETA: 65s - loss: 4.7280 - acc: 0.0216 - ETA: 64s - loss: 4.7288 - acc: 0.0215 - ETA: 63s - loss: 4.7295 - acc: 0.0218 - ETA: 62s - loss: 4.7295 - acc: 0.0217 - ETA: 61s - loss: 4.7289 - acc: 0.0216 - ETA: 60s - loss: 4.7292 - acc: 0.0217 - ETA: 59s - loss: 4.7305 - acc: 0.0217 - ETA: 58s - loss: 4.7312 - acc: 0.0216 - ETA: 57s - loss: 4.7316 - acc: 0.0215 - ETA: 56s - loss: 4.7315 - acc: 0.0214 - ETA: 55s - loss: 4.7324 - acc: 0.0215 - ETA: 54s - loss: 4.7324 - acc: 0.0216 - ETA: 53s - loss: 4.7328 - acc: 0.0216 - ETA: 52s - loss: 4.7322 - acc: 0.0215 - ETA: 52s - loss: 4.7314 - acc: 0.0218 - ETA: 51s - loss: 4.7318 - acc: 0.0217 - ETA: 50s - loss: 4.7316 - acc: 0.0220 - ETA: 49s - loss: 4.7323 - acc: 0.0219 - ETA: 48s - loss: 4.7329 - acc: 0.0218 - ETA: 47s - loss: 4.7327 - acc: 0.0217 - ETA: 46s - loss: 4.7328 - acc: 0.0218 - ETA: 45s - loss: 4.7327 - acc: 0.0218 - ETA: 44s - loss: 4.7331 - acc: 0.0217 - ETA: 43s - loss: 4.7328 - acc: 0.0218 - ETA: 42s - loss: 4.7327 - acc: 0.0217 - ETA: 41s - loss: 4.7327 - acc: 0.0216 - ETA: 40s - loss: 4.7328 - acc: 0.0221 - ETA: 39s - loss: 4.7330 - acc: 0.0222 - ETA: 38s - loss: 4.7331 - acc: 0.0221 - ETA: 37s - loss: 4.7328 - acc: 0.0220 - ETA: 36s - loss: 4.7332 - acc: 0.0219 - ETA: 35s - loss: 4.7327 - acc: 0.0219 - ETA: 34s - loss: 4.7328 - acc: 0.0218 - ETA: 33s - loss: 4.7327 - acc: 0.0217 - ETA: 32s - loss: 4.7325 - acc: 0.0216 - ETA: 31s - loss: 4.7325 - acc: 0.0217 - ETA: 30s - loss: 4.7325 - acc: 0.0217 - ETA: 29s - loss: 4.7324 - acc: 0.0216 - ETA: 28s - loss: 4.7326 - acc: 0.0217 - ETA: 27s - loss: 4.7326 - acc: 0.0216 - ETA: 26s - loss: 4.7332 - acc: 0.0217 - ETA: 25s - loss: 4.7332 - acc: 0.0216 - ETA: 24s - loss: 4.7331 - acc: 0.0217 - ETA: 23s - loss: 4.7329 - acc: 0.0217 - ETA: 22s - loss: 4.7333 - acc: 0.0216 - ETA: 21s - loss: 4.7335 - acc: 0.0215 - ETA: 20s - loss: 4.7329 - acc: 0.0216 - ETA: 19s - loss: 4.7332 - acc: 0.0215 - ETA: 18s - loss: 4.7330 - acc: 0.0215 - ETA: 18s - loss: 4.7330 - acc: 0.0214 - ETA: 17s - loss: 4.7326 - acc: 0.0213 - ETA: 16s - loss: 4.7328 - acc: 0.0214 - ETA: 15s - loss: 4.7331 - acc: 0.0214 - ETA: 14s - loss: 4.7330 - acc: 0.0216 - ETA: 13s - loss: 4.7329 - acc: 0.0217 - ETA: 12s - loss: 4.7324 - acc: 0.0216 - ETA: 11s - loss: 4.7324 - acc: 0.0216 - ETA: 10s - loss: 4.7320 - acc: 0.0217 - ETA: 9s - loss: 4.7324 - acc: 0.0217  - ETA: 8s - loss: 4.7330 - acc: 0.0217 - ETA: 7s - loss: 4.7333 - acc: 0.0216 - ETA: 6s - loss: 4.7325 - acc: 0.0218 - ETA: 5s - loss: 4.7326 - acc: 0.0218 - ETA: 4s - loss: 4.7322 - acc: 0.0219 - ETA: 3s - loss: 4.7317 - acc: 0.0218 - ETA: 2s - loss: 4.7319 - acc: 0.0219 - ETA: 1s - loss: 4.7316 - acc: 0.0218 - ETA: 0s - loss: 4.7321 - acc: 0.0218Epoch 00004: val_loss did not improve
6632/6632 [==============================] - 338s - loss: 4.7323 - acc: 0.0217 - val_loss: 5.0201 - val_acc: 0.0120
Out[26]:
<keras.callbacks.History at 0x21999331dd8>

Load the Model with the Best Validation Loss


In [27]:
model.load_weights('saved_models/weights.best.from_scratch.hdf5')

Test the Model

Try out your model on the test dataset of dog images. Ensure that your test accuracy is greater than 1%.


In [28]:
# get index of predicted dog breed for each image in test set
dog_breed_predictions = [np.argmax(model.predict(np.expand_dims(tensor, axis=0))) for tensor in test_tensors]

# report test accuracy
test_accuracy = 100*np.sum(np.array(dog_breed_predictions)==np.argmax(test_targets, axis=1))/len(dog_breed_predictions)
print('Test accuracy: %.4f%%' % test_accuracy)


Test accuracy: 1.0766%

Step 4: Use a CNN to Classify Dog Breeds

To reduce training time without sacrificing accuracy, we show you how to train a CNN using transfer learning. In the following step, you will get a chance to use transfer learning to train your own CNN.

Obtain Bottleneck Features


In [47]:
bottleneck_features = np.load('bottleneck_features/DogVGG16Data.npz')
train_VGG16 = bottleneck_features['train']
valid_VGG16 = bottleneck_features['valid']
test_VGG16 = bottleneck_features['test']

Model Architecture

The model uses the the pre-trained VGG-16 model as a fixed feature extractor, where the last convolutional output of VGG-16 is fed as input to our model. We only add a global average pooling layer and a fully connected layer, where the latter contains one node for each dog category and is equipped with a softmax.


In [48]:
VGG16_model = Sequential()
VGG16_model.add(GlobalAveragePooling2D(input_shape=train_VGG16.shape[1:]))
VGG16_model.add(Dense(133, activation='softmax'))

VGG16_model.summary()


_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
global_average_pooling2d_10  (None, 512)               0         
_________________________________________________________________
dense_10 (Dense)             (None, 133)               68229     
=================================================================
Total params: 68,229.0
Trainable params: 68,229.0
Non-trainable params: 0.0
_________________________________________________________________

Compile the Model


In [49]:
VGG16_model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy'])

Train the Model


In [50]:
checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.VGG16.hdf5', 
                               verbose=1, save_best_only=True)

VGG16_model.fit(train_VGG16, train_targets, 
          validation_data=(valid_VGG16, valid_targets),
          epochs=20, batch_size=20, callbacks=[checkpointer], verbose=1)


Train on 6680 samples, validate on 835 samples
Epoch 1/20
6620/6680 [============================>.] - ETA: 287s - loss: 14.4519 - acc: 0.0000e+00 - ETA: 42s - loss: 14.7478 - acc: 0.0000e+00  - ETA: 23s - loss: 14.9730 - acc: 0.0038     - ETA: 17s - loss: 14.8163 - acc: 0.0111 - ETA: 13s - loss: 14.7522 - acc: 0.0167 - ETA: 11s - loss: 14.7529 - acc: 0.0172 - ETA: 10s - loss: 14.7058 - acc: 0.0157 - ETA: 8s - loss: 14.5483 - acc: 0.0195  - ETA: 7s - loss: 14.6031 - acc: 0.0202 - ETA: 6s - loss: 14.4638 - acc: 0.0259 - ETA: 6s - loss: 14.3809 - acc: 0.0270 - ETA: 5s - loss: 14.2797 - acc: 0.0301 - ETA: 5s - loss: 14.1249 - acc: 0.0338 - ETA: 4s - loss: 13.9970 - acc: 0.0383 - ETA: 4s - loss: 13.9217 - acc: 0.0402 - ETA: 4s - loss: 13.8339 - acc: 0.0425 - ETA: 4s - loss: 13.7056 - acc: 0.0465 - ETA: 3s - loss: 13.6192 - acc: 0.0500 - ETA: 3s - loss: 13.5675 - acc: 0.0513 - ETA: 3s - loss: 13.5245 - acc: 0.0538 - ETA: 3s - loss: 13.4758 - acc: 0.0555 - ETA: 2s - loss: 13.4231 - acc: 0.0578 - ETA: 2s - loss: 13.4051 - acc: 0.0582 - ETA: 2s - loss: 13.3421 - acc: 0.0615 - ETA: 2s - loss: 13.2596 - acc: 0.0643 - ETA: 2s - loss: 13.2051 - acc: 0.0671 - ETA: 2s - loss: 13.1511 - acc: 0.0693 - ETA: 2s - loss: 13.1097 - acc: 0.0701 - ETA: 2s - loss: 13.0862 - acc: 0.0719 - ETA: 1s - loss: 13.0047 - acc: 0.0762 - ETA: 1s - loss: 12.9393 - acc: 0.0790 - ETA: 1s - loss: 12.8975 - acc: 0.0809 - ETA: 1s - loss: 12.8453 - acc: 0.0846 - ETA: 1s - loss: 12.7977 - acc: 0.0870 - ETA: 1s - loss: 12.7660 - acc: 0.0882 - ETA: 1s - loss: 12.7281 - acc: 0.0913 - ETA: 1s - loss: 12.7002 - acc: 0.0930 - ETA: 1s - loss: 12.6483 - acc: 0.0960 - ETA: 1s - loss: 12.6066 - acc: 0.0988 - ETA: 1s - loss: 12.5524 - acc: 0.1026 - ETA: 0s - loss: 12.4946 - acc: 0.1057 - ETA: 0s - loss: 12.4711 - acc: 0.1073 - ETA: 0s - loss: 12.3976 - acc: 0.1107 - ETA: 0s - loss: 12.3621 - acc: 0.1131 - ETA: 0s - loss: 12.3160 - acc: 0.1163 - ETA: 0s - loss: 12.2977 - acc: 0.1180 - ETA: 0s - loss: 12.2592 - acc: 0.1210 - ETA: 0s - loss: 12.2382 - acc: 0.1221 - ETA: 0s - loss: 12.2121 - acc: 0.1231 - ETA: 0s - loss: 12.1940 - acc: 0.1248 - ETA: 0s - loss: 12.1631 - acc: 0.1262 - ETA: 0s - loss: 12.1421 - acc: 0.1275 - ETA: 0s - loss: 12.1077 - acc: 0.1290Epoch 00000: val_loss improved from inf to 10.57262, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 4s - loss: 12.0841 - acc: 0.1302 - val_loss: 10.5726 - val_acc: 0.2323
Epoch 2/20
6560/6680 [============================>.] - ETA: 3s - loss: 8.8762 - acc: 0.4500 - ETA: 2s - loss: 9.8017 - acc: 0.2750 - ETA: 2s - loss: 10.0831 - acc: 0.2643 - ETA: 2s - loss: 10.2669 - acc: 0.2595 - ETA: 2s - loss: 10.4860 - acc: 0.2500 - ETA: 2s - loss: 10.2513 - acc: 0.2691 - ETA: 2s - loss: 10.2784 - acc: 0.2675 - ETA: 2s - loss: 10.2016 - acc: 0.2685 - ETA: 2s - loss: 10.1974 - acc: 0.2712 - ETA: 2s - loss: 10.2555 - acc: 0.2638 - ETA: 2s - loss: 10.3520 - acc: 0.2609 - ETA: 2s - loss: 10.3959 - acc: 0.2593 - ETA: 2s - loss: 10.3920 - acc: 0.2586 - ETA: 2s - loss: 10.4158 - acc: 0.2554 - ETA: 2s - loss: 10.3904 - acc: 0.2573 - ETA: 2s - loss: 10.3219 - acc: 0.2609 - ETA: 1s - loss: 10.3664 - acc: 0.2598 - ETA: 1s - loss: 10.3314 - acc: 0.2638 - ETA: 1s - loss: 10.3308 - acc: 0.2612 - ETA: 1s - loss: 10.3072 - acc: 0.2631 - ETA: 1s - loss: 10.2810 - acc: 0.2648 - ETA: 1s - loss: 10.2683 - acc: 0.2646 - ETA: 1s - loss: 10.2937 - acc: 0.2635 - ETA: 1s - loss: 10.2907 - acc: 0.2656 - ETA: 1s - loss: 10.2499 - acc: 0.2682 - ETA: 1s - loss: 10.1702 - acc: 0.2731 - ETA: 1s - loss: 10.1560 - acc: 0.2732 - ETA: 1s - loss: 10.1395 - acc: 0.2735 - ETA: 1s - loss: 10.1585 - acc: 0.2739 - ETA: 1s - loss: 10.1713 - acc: 0.2734 - ETA: 1s - loss: 10.1517 - acc: 0.2742 - ETA: 1s - loss: 10.1389 - acc: 0.2755 - ETA: 1s - loss: 10.1220 - acc: 0.2756 - ETA: 1s - loss: 10.0890 - acc: 0.2770 - ETA: 1s - loss: 10.0996 - acc: 0.2766 - ETA: 0s - loss: 10.1302 - acc: 0.2759 - ETA: 0s - loss: 10.1355 - acc: 0.2761 - ETA: 0s - loss: 10.1293 - acc: 0.2769 - ETA: 0s - loss: 10.1243 - acc: 0.2784 - ETA: 0s - loss: 10.1052 - acc: 0.2789 - ETA: 0s - loss: 10.1039 - acc: 0.2795 - ETA: 0s - loss: 10.0955 - acc: 0.2803 - ETA: 0s - loss: 10.0879 - acc: 0.2804 - ETA: 0s - loss: 10.0754 - acc: 0.2810 - ETA: 0s - loss: 10.0966 - acc: 0.2797 - ETA: 0s - loss: 10.0939 - acc: 0.2809 - ETA: 0s - loss: 10.0644 - acc: 0.2822 - ETA: 0s - loss: 10.0704 - acc: 0.2828 - ETA: 0s - loss: 10.0395 - acc: 0.2852 - ETA: 0s - loss: 10.0485 - acc: 0.2853 - ETA: 0s - loss: 10.0502 - acc: 0.2849 - ETA: 0s - loss: 10.0523 - acc: 0.2848 - ETA: 0s - loss: 10.0641 - acc: 0.2852 - ETA: 0s - loss: 10.0679 - acc: 0.2847 - ETA: 0s - loss: 10.0739 - acc: 0.2849Epoch 00001: val_loss improved from 10.57262 to 10.20978, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 10.0686 - acc: 0.2858 - val_loss: 10.2098 - val_acc: 0.2790
Epoch 3/20
6560/6680 [============================>.] - ETA: 2s - loss: 7.6849 - acc: 0.4000 - ETA: 2s - loss: 10.6847 - acc: 0.2750 - ETA: 2s - loss: 10.1924 - acc: 0.2964 - ETA: 2s - loss: 9.9212 - acc: 0.3300  - ETA: 2s - loss: 9.9336 - acc: 0.3269 - ETA: 2s - loss: 9.9356 - acc: 0.3273 - ETA: 2s - loss: 9.8791 - acc: 0.3333 - ETA: 2s - loss: 9.8402 - acc: 0.3333 - ETA: 2s - loss: 9.7324 - acc: 0.3353 - ETA: 2s - loss: 9.6638 - acc: 0.3386 - ETA: 2s - loss: 9.6448 - acc: 0.3430 - ETA: 2s - loss: 9.6458 - acc: 0.3414 - ETA: 2s - loss: 9.6227 - acc: 0.3434 - ETA: 2s - loss: 9.6254 - acc: 0.3421 - ETA: 2s - loss: 9.6213 - acc: 0.3415 - ETA: 2s - loss: 9.5416 - acc: 0.3452 - ETA: 2s - loss: 9.5040 - acc: 0.3495 - ETA: 1s - loss: 9.5388 - acc: 0.3481 - ETA: 1s - loss: 9.5221 - acc: 0.3487 - ETA: 1s - loss: 9.4981 - acc: 0.3504 - ETA: 1s - loss: 9.4546 - acc: 0.3528 - ETA: 1s - loss: 9.4956 - acc: 0.3500 - ETA: 1s - loss: 9.4447 - acc: 0.3518 - ETA: 1s - loss: 9.4528 - acc: 0.3514 - ETA: 1s - loss: 9.4346 - acc: 0.3517 - ETA: 1s - loss: 9.4590 - acc: 0.3500 - ETA: 1s - loss: 9.4885 - acc: 0.3475 - ETA: 1s - loss: 9.5111 - acc: 0.3458 - ETA: 1s - loss: 9.5092 - acc: 0.3465 - ETA: 1s - loss: 9.5256 - acc: 0.3455 - ETA: 1s - loss: 9.5376 - acc: 0.3437 - ETA: 1s - loss: 9.4996 - acc: 0.3465 - ETA: 1s - loss: 9.5061 - acc: 0.3453 - ETA: 1s - loss: 9.5151 - acc: 0.3449 - ETA: 1s - loss: 9.5355 - acc: 0.3436 - ETA: 1s - loss: 9.4877 - acc: 0.3464 - ETA: 1s - loss: 9.4980 - acc: 0.3458 - ETA: 1s - loss: 9.4875 - acc: 0.3466 - ETA: 1s - loss: 9.4880 - acc: 0.3466 - ETA: 1s - loss: 9.5011 - acc: 0.3463 - ETA: 0s - loss: 9.5164 - acc: 0.3455 - ETA: 0s - loss: 9.5289 - acc: 0.3449 - ETA: 0s - loss: 9.5460 - acc: 0.3439 - ETA: 0s - loss: 9.5499 - acc: 0.3441 - ETA: 0s - loss: 9.5530 - acc: 0.3440 - ETA: 0s - loss: 9.5397 - acc: 0.3445 - ETA: 0s - loss: 9.5525 - acc: 0.3438 - ETA: 0s - loss: 9.5520 - acc: 0.3441 - ETA: 0s - loss: 9.5571 - acc: 0.3444 - ETA: 0s - loss: 9.5652 - acc: 0.3438 - ETA: 0s - loss: 9.5709 - acc: 0.3437 - ETA: 0s - loss: 9.6047 - acc: 0.3418 - ETA: 0s - loss: 9.5856 - acc: 0.3431 - ETA: 0s - loss: 9.6109 - acc: 0.3417 - ETA: 0s - loss: 9.6256 - acc: 0.3407 - ETA: 0s - loss: 9.6171 - acc: 0.3417 - ETA: 0s - loss: 9.6253 - acc: 0.3416 - ETA: 0s - loss: 9.6229 - acc: 0.3417 - ETA: 0s - loss: 9.6134 - acc: 0.3422 - ETA: 0s - loss: 9.6025 - acc: 0.3429 - ETA: 0s - loss: 9.6080 - acc: 0.3427 - ETA: 0s - loss: 9.6082 - acc: 0.3425Epoch 00002: val_loss improved from 10.20978 to 9.65010, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 9.5995 - acc: 0.3428 - val_loss: 9.6501 - val_acc: 0.3222
Epoch 4/20
6640/6680 [============================>.] - ETA: 3s - loss: 7.3127 - acc: 0.5000 - ETA: 3s - loss: 10.0302 - acc: 0.3500 - ETA: 3s - loss: 9.4687 - acc: 0.3864  - ETA: 3s - loss: 9.2238 - acc: 0.4033 - ETA: 3s - loss: 9.4487 - acc: 0.3875 - ETA: 3s - loss: 9.6092 - acc: 0.3720 - ETA: 3s - loss: 9.5671 - acc: 0.3700 - ETA: 3s - loss: 9.7520 - acc: 0.3611 - ETA: 3s - loss: 9.5584 - acc: 0.3720 - ETA: 3s - loss: 9.4776 - acc: 0.3787 - ETA: 3s - loss: 9.3140 - acc: 0.3894 - ETA: 3s - loss: 9.2582 - acc: 0.3939 - ETA: 2s - loss: 9.2544 - acc: 0.3945 - ETA: 2s - loss: 9.2622 - acc: 0.3915 - ETA: 2s - loss: 9.1912 - acc: 0.3949 - ETA: 2s - loss: 9.2270 - acc: 0.3924 - ETA: 2s - loss: 9.1913 - acc: 0.3897 - ETA: 2s - loss: 9.1137 - acc: 0.3938 - ETA: 2s - loss: 9.1317 - acc: 0.3942 - ETA: 2s - loss: 9.1601 - acc: 0.3919 - ETA: 2s - loss: 9.1549 - acc: 0.3907 - ETA: 1s - loss: 9.1701 - acc: 0.3895 - ETA: 1s - loss: 9.1523 - acc: 0.3907 - ETA: 1s - loss: 9.1272 - acc: 0.3918 - ETA: 1s - loss: 9.1621 - acc: 0.3885 - ETA: 1s - loss: 9.1689 - acc: 0.3882 - ETA: 1s - loss: 9.1552 - acc: 0.3893 - ETA: 1s - loss: 9.1195 - acc: 0.3901 - ETA: 1s - loss: 9.1342 - acc: 0.3889 - ETA: 1s - loss: 9.0981 - acc: 0.3911 - ETA: 1s - loss: 9.1079 - acc: 0.3902 - ETA: 1s - loss: 9.1738 - acc: 0.3867 - ETA: 1s - loss: 9.1569 - acc: 0.3871 - ETA: 1s - loss: 9.1617 - acc: 0.3865 - ETA: 1s - loss: 9.1556 - acc: 0.3874 - ETA: 1s - loss: 9.1735 - acc: 0.3862 - ETA: 1s - loss: 9.1704 - acc: 0.3861 - ETA: 1s - loss: 9.1610 - acc: 0.3872 - ETA: 1s - loss: 9.1358 - acc: 0.3891 - ETA: 1s - loss: 9.1646 - acc: 0.3870 - ETA: 0s - loss: 9.1277 - acc: 0.3897 - ETA: 0s - loss: 9.1386 - acc: 0.3883 - ETA: 0s - loss: 9.1703 - acc: 0.3863 - ETA: 0s - loss: 9.1955 - acc: 0.3847 - ETA: 0s - loss: 9.2023 - acc: 0.3840 - ETA: 0s - loss: 9.1855 - acc: 0.3850 - ETA: 0s - loss: 9.2095 - acc: 0.3839 - ETA: 0s - loss: 9.1890 - acc: 0.3855 - ETA: 0s - loss: 9.1884 - acc: 0.3853 - ETA: 0s - loss: 9.1919 - acc: 0.3845 - ETA: 0s - loss: 9.2013 - acc: 0.3843 - ETA: 0s - loss: 9.1753 - acc: 0.3862 - ETA: 0s - loss: 9.1906 - acc: 0.3850 - ETA: 0s - loss: 9.2103 - acc: 0.3842 - ETA: 0s - loss: 9.2002 - acc: 0.3847 - ETA: 0s - loss: 9.2014 - acc: 0.3848 - ETA: 0s - loss: 9.2237 - acc: 0.3840Epoch 00003: val_loss improved from 9.65010 to 9.54891, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 9.2331 - acc: 0.3834 - val_loss: 9.5489 - val_acc: 0.3413
Epoch 5/20
6660/6680 [============================>.] - ETA: 2s - loss: 8.0766 - acc: 0.5000 - ETA: 2s - loss: 9.3109 - acc: 0.4000 - ETA: 2s - loss: 9.3491 - acc: 0.4000 - ETA: 2s - loss: 9.5398 - acc: 0.3841 - ETA: 2s - loss: 9.5919 - acc: 0.3804 - ETA: 2s - loss: 9.6255 - acc: 0.3794 - ETA: 2s - loss: 9.3666 - acc: 0.3927 - ETA: 2s - loss: 9.3522 - acc: 0.3938 - ETA: 2s - loss: 9.4292 - acc: 0.3873 - ETA: 2s - loss: 9.4624 - acc: 0.3863 - ETA: 2s - loss: 9.4852 - acc: 0.3831 - ETA: 2s - loss: 9.5213 - acc: 0.3820 - ETA: 2s - loss: 9.4551 - acc: 0.3872 - ETA: 2s - loss: 9.4564 - acc: 0.3881 - ETA: 1s - loss: 9.4199 - acc: 0.3895 - ETA: 1s - loss: 9.4099 - acc: 0.3891 - ETA: 1s - loss: 9.3847 - acc: 0.3902 - ETA: 1s - loss: 9.3866 - acc: 0.3898 - ETA: 1s - loss: 9.3222 - acc: 0.3933 - ETA: 1s - loss: 9.2351 - acc: 0.3996 - ETA: 1s - loss: 9.1900 - acc: 0.4008 - ETA: 1s - loss: 9.1389 - acc: 0.4029 - ETA: 1s - loss: 9.1167 - acc: 0.4034 - ETA: 1s - loss: 9.0786 - acc: 0.4056 - ETA: 1s - loss: 9.0840 - acc: 0.4060 - ETA: 1s - loss: 9.1090 - acc: 0.4039 - ETA: 1s - loss: 9.1165 - acc: 0.4038 - ETA: 1s - loss: 9.1356 - acc: 0.4022 - ETA: 1s - loss: 9.1655 - acc: 0.4008 - ETA: 1s - loss: 9.1662 - acc: 0.4008 - ETA: 1s - loss: 9.1469 - acc: 0.4023 - ETA: 1s - loss: 9.1386 - acc: 0.4025 - ETA: 1s - loss: 9.1823 - acc: 0.3993 - ETA: 0s - loss: 9.1747 - acc: 0.3995 - ETA: 0s - loss: 9.1384 - acc: 0.4011 - ETA: 0s - loss: 9.1522 - acc: 0.4004 - ETA: 0s - loss: 9.1648 - acc: 0.3991 - ETA: 0s - loss: 9.1387 - acc: 0.4012 - ETA: 0s - loss: 9.1280 - acc: 0.4018 - ETA: 0s - loss: 9.1066 - acc: 0.4032 - ETA: 0s - loss: 9.0937 - acc: 0.4042 - ETA: 0s - loss: 9.0960 - acc: 0.4042 - ETA: 0s - loss: 9.1149 - acc: 0.4028 - ETA: 0s - loss: 9.1373 - acc: 0.4016 - ETA: 0s - loss: 9.1366 - acc: 0.4018 - ETA: 0s - loss: 9.1237 - acc: 0.4022 - ETA: 0s - loss: 9.1212 - acc: 0.4019 - ETA: 0s - loss: 9.1303 - acc: 0.4013 - ETA: 0s - loss: 9.1078 - acc: 0.4023 - ETA: 0s - loss: 9.1199 - acc: 0.4011 - ETA: 0s - loss: 9.1106 - acc: 0.4013 - ETA: 0s - loss: 9.0956 - acc: 0.4015 - ETA: 0s - loss: 9.0977 - acc: 0.4014Epoch 00004: val_loss improved from 9.54891 to 9.43059, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 9.1030 - acc: 0.4009 - val_loss: 9.4306 - val_acc: 0.3557
Epoch 6/20
6620/6680 [============================>.] - ETA: 2s - loss: 8.0592 - acc: 0.5000 - ETA: 2s - loss: 8.9604 - acc: 0.4214 - ETA: 2s - loss: 8.5905 - acc: 0.4385 - ETA: 2s - loss: 8.7938 - acc: 0.4289 - ETA: 2s - loss: 9.0413 - acc: 0.4180 - ETA: 2s - loss: 8.8064 - acc: 0.4323 - ETA: 2s - loss: 8.7157 - acc: 0.4392 - ETA: 2s - loss: 8.8398 - acc: 0.4302 - ETA: 2s - loss: 8.8971 - acc: 0.4276 - ETA: 2s - loss: 8.8596 - acc: 0.4286 - ETA: 2s - loss: 8.7878 - acc: 0.4323 - ETA: 2s - loss: 8.8437 - acc: 0.4283 - ETA: 2s - loss: 8.9240 - acc: 0.4250 - ETA: 2s - loss: 8.8655 - acc: 0.4289 - ETA: 2s - loss: 8.8544 - acc: 0.4294 - ETA: 2s - loss: 8.8438 - acc: 0.4292 - ETA: 1s - loss: 8.8662 - acc: 0.4270 - ETA: 1s - loss: 8.8039 - acc: 0.4319 - ETA: 1s - loss: 8.8278 - acc: 0.4307 - ETA: 1s - loss: 8.8572 - acc: 0.4283 - ETA: 1s - loss: 8.8465 - acc: 0.4294 - ETA: 1s - loss: 8.8573 - acc: 0.4289 - ETA: 1s - loss: 8.9010 - acc: 0.4263 - ETA: 1s - loss: 8.8739 - acc: 0.4276 - ETA: 1s - loss: 8.8993 - acc: 0.4265 - ETA: 1s - loss: 8.9033 - acc: 0.4261 - ETA: 1s - loss: 8.9186 - acc: 0.4253 - ETA: 1s - loss: 8.9716 - acc: 0.4226 - ETA: 1s - loss: 8.9913 - acc: 0.4218 - ETA: 1s - loss: 8.9924 - acc: 0.4219 - ETA: 1s - loss: 9.0212 - acc: 0.4200 - ETA: 1s - loss: 9.0259 - acc: 0.4194 - ETA: 1s - loss: 8.9940 - acc: 0.4218 - ETA: 1s - loss: 8.9884 - acc: 0.4224 - ETA: 1s - loss: 8.9932 - acc: 0.4222 - ETA: 1s - loss: 9.0133 - acc: 0.4209 - ETA: 0s - loss: 8.9884 - acc: 0.4225 - ETA: 0s - loss: 8.9877 - acc: 0.4226 - ETA: 0s - loss: 8.9816 - acc: 0.4233 - ETA: 0s - loss: 8.9475 - acc: 0.4244 - ETA: 0s - loss: 8.9268 - acc: 0.4252 - ETA: 0s - loss: 8.9367 - acc: 0.4242 - ETA: 0s - loss: 8.9159 - acc: 0.4254 - ETA: 0s - loss: 8.9212 - acc: 0.4250 - ETA: 0s - loss: 8.9481 - acc: 0.4234 - ETA: 0s - loss: 8.9421 - acc: 0.4238 - ETA: 0s - loss: 8.9648 - acc: 0.4216 - ETA: 0s - loss: 8.9411 - acc: 0.4228 - ETA: 0s - loss: 8.9490 - acc: 0.4224 - ETA: 0s - loss: 8.9407 - acc: 0.4225 - ETA: 0s - loss: 8.9234 - acc: 0.4230 - ETA: 0s - loss: 8.9488 - acc: 0.4210 - ETA: 0s - loss: 8.9497 - acc: 0.4204 - ETA: 0s - loss: 8.9623 - acc: 0.4193 - ETA: 0s - loss: 8.9839 - acc: 0.4180 - ETA: 0s - loss: 8.9950 - acc: 0.4172Epoch 00005: val_loss improved from 9.43059 to 9.43048, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 9.0026 - acc: 0.4169 - val_loss: 9.4305 - val_acc: 0.3545
Epoch 7/20
6560/6680 [============================>.] - ETA: 2s - loss: 8.8660 - acc: 0.4500 - ETA: 2s - loss: 8.8349 - acc: 0.4438 - ETA: 2s - loss: 8.6968 - acc: 0.4500 - ETA: 2s - loss: 8.7893 - acc: 0.4432 - ETA: 2s - loss: 8.7208 - acc: 0.4500 - ETA: 2s - loss: 8.7841 - acc: 0.4441 - ETA: 2s - loss: 8.8546 - acc: 0.4397 - ETA: 2s - loss: 8.9547 - acc: 0.4322 - ETA: 2s - loss: 8.8826 - acc: 0.4340 - ETA: 2s - loss: 8.8373 - acc: 0.4366 - ETA: 2s - loss: 8.7933 - acc: 0.4395 - ETA: 2s - loss: 8.8233 - acc: 0.4368 - ETA: 2s - loss: 8.7967 - acc: 0.4384 - ETA: 2s - loss: 8.8632 - acc: 0.4353 - ETA: 2s - loss: 8.8544 - acc: 0.4367 - ETA: 2s - loss: 8.8905 - acc: 0.4341 - ETA: 2s - loss: 8.8994 - acc: 0.4332 - ETA: 2s - loss: 8.9501 - acc: 0.4294 - ETA: 2s - loss: 8.8957 - acc: 0.4324 - ETA: 2s - loss: 8.9179 - acc: 0.4315 - ETA: 2s - loss: 8.8495 - acc: 0.4346 - ETA: 2s - loss: 8.7810 - acc: 0.4379 - ETA: 1s - loss: 8.7434 - acc: 0.4393 - ETA: 1s - loss: 8.7492 - acc: 0.4393 - ETA: 1s - loss: 8.7375 - acc: 0.4401 - ETA: 1s - loss: 8.7613 - acc: 0.4381 - ETA: 1s - loss: 8.7891 - acc: 0.4356 - ETA: 1s - loss: 8.8069 - acc: 0.4345 - ETA: 1s - loss: 8.8234 - acc: 0.4332 - ETA: 1s - loss: 8.8124 - acc: 0.4331 - ETA: 1s - loss: 8.8380 - acc: 0.4308 - ETA: 1s - loss: 8.8301 - acc: 0.4312 - ETA: 1s - loss: 8.8603 - acc: 0.4291 - ETA: 1s - loss: 8.8526 - acc: 0.4291 - ETA: 1s - loss: 8.8465 - acc: 0.4298 - ETA: 1s - loss: 8.8372 - acc: 0.4301 - ETA: 1s - loss: 8.8133 - acc: 0.4320 - ETA: 1s - loss: 8.8029 - acc: 0.4323 - ETA: 1s - loss: 8.8281 - acc: 0.4307 - ETA: 0s - loss: 8.8050 - acc: 0.4323 - ETA: 0s - loss: 8.8149 - acc: 0.4317 - ETA: 0s - loss: 8.8000 - acc: 0.4320 - ETA: 0s - loss: 8.8193 - acc: 0.4308 - ETA: 0s - loss: 8.8313 - acc: 0.4295 - ETA: 0s - loss: 8.8064 - acc: 0.4313 - ETA: 0s - loss: 8.8305 - acc: 0.4295 - ETA: 0s - loss: 8.8077 - acc: 0.4303 - ETA: 0s - loss: 8.8200 - acc: 0.4297 - ETA: 0s - loss: 8.8334 - acc: 0.4292 - ETA: 0s - loss: 8.8556 - acc: 0.4277 - ETA: 0s - loss: 8.8638 - acc: 0.4271 - ETA: 0s - loss: 8.8572 - acc: 0.4274 - ETA: 0s - loss: 8.8515 - acc: 0.4275 - ETA: 0s - loss: 8.8657 - acc: 0.4265 - ETA: 0s - loss: 8.8654 - acc: 0.4269 - ETA: 0s - loss: 8.8829 - acc: 0.4256 - ETA: 0s - loss: 8.8719 - acc: 0.4262 - ETA: 0s - loss: 8.8719 - acc: 0.4265Epoch 00006: val_loss improved from 9.43048 to 9.17889, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 8.8793 - acc: 0.4259 - val_loss: 9.1789 - val_acc: 0.3737
Epoch 8/20
6660/6680 [============================>.] - ETA: 2s - loss: 7.7556 - acc: 0.5000 - ETA: 3s - loss: 8.8425 - acc: 0.4429 - ETA: 2s - loss: 8.6185 - acc: 0.4538 - ETA: 2s - loss: 8.5065 - acc: 0.4605 - ETA: 2s - loss: 8.7108 - acc: 0.4440 - ETA: 2s - loss: 8.7116 - acc: 0.4468 - ETA: 2s - loss: 8.8423 - acc: 0.4365 - ETA: 2s - loss: 8.5861 - acc: 0.4488 - ETA: 2s - loss: 8.5709 - acc: 0.4459 - ETA: 2s - loss: 8.6121 - acc: 0.4427 - ETA: 2s - loss: 8.4941 - acc: 0.4476 - ETA: 2s - loss: 8.4525 - acc: 0.4493 - ETA: 2s - loss: 8.6078 - acc: 0.4400 - ETA: 2s - loss: 8.5649 - acc: 0.4433 - ETA: 2s - loss: 8.5587 - acc: 0.4449 - ETA: 2s - loss: 8.5798 - acc: 0.4431 - ETA: 2s - loss: 8.6394 - acc: 0.4395 - ETA: 1s - loss: 8.6098 - acc: 0.4415 - ETA: 1s - loss: 8.5631 - acc: 0.4455 - ETA: 1s - loss: 8.6148 - acc: 0.4432 - ETA: 1s - loss: 8.6097 - acc: 0.4435 - ETA: 1s - loss: 8.5810 - acc: 0.4450 - ETA: 1s - loss: 8.5320 - acc: 0.4471 - ETA: 1s - loss: 8.5145 - acc: 0.4482 - ETA: 1s - loss: 8.5591 - acc: 0.4456 - ETA: 1s - loss: 8.6122 - acc: 0.4429 - ETA: 1s - loss: 8.6159 - acc: 0.4422 - ETA: 1s - loss: 8.6010 - acc: 0.4429 - ETA: 1s - loss: 8.5886 - acc: 0.4440 - ETA: 1s - loss: 8.5621 - acc: 0.4450 - ETA: 1s - loss: 8.5443 - acc: 0.4463 - ETA: 1s - loss: 8.5481 - acc: 0.4456 - ETA: 1s - loss: 8.5314 - acc: 0.4470 - ETA: 1s - loss: 8.5314 - acc: 0.4471 - ETA: 1s - loss: 8.5361 - acc: 0.4472 - ETA: 0s - loss: 8.5538 - acc: 0.4464 - ETA: 0s - loss: 8.6011 - acc: 0.4438 - ETA: 0s - loss: 8.5865 - acc: 0.4448 - ETA: 0s - loss: 8.5773 - acc: 0.4458 - ETA: 0s - loss: 8.5946 - acc: 0.4449 - ETA: 0s - loss: 8.5807 - acc: 0.4456 - ETA: 0s - loss: 8.5919 - acc: 0.4449 - ETA: 0s - loss: 8.5800 - acc: 0.4462 - ETA: 0s - loss: 8.6027 - acc: 0.4448 - ETA: 0s - loss: 8.5912 - acc: 0.4453 - ETA: 0s - loss: 8.6181 - acc: 0.4436 - ETA: 0s - loss: 8.6259 - acc: 0.4436 - ETA: 0s - loss: 8.6294 - acc: 0.4432 - ETA: 0s - loss: 8.6237 - acc: 0.4438 - ETA: 0s - loss: 8.6115 - acc: 0.4448 - ETA: 0s - loss: 8.6133 - acc: 0.4447 - ETA: 0s - loss: 8.6197 - acc: 0.4443 - ETA: 0s - loss: 8.6094 - acc: 0.4453 - ETA: 0s - loss: 8.5981 - acc: 0.4460 - ETA: 0s - loss: 8.6145 - acc: 0.4452Epoch 00007: val_loss improved from 9.17889 to 9.04997, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 8.6073 - acc: 0.4454 - val_loss: 9.0500 - val_acc: 0.3760
Epoch 9/20
6600/6680 [============================>.] - ETA: 2s - loss: 11.2886 - acc: 0.3000 - ETA: 3s - loss: 9.6840 - acc: 0.3917  - ETA: 3s - loss: 8.8533 - acc: 0.4417 - ETA: 3s - loss: 8.9677 - acc: 0.4353 - ETA: 2s - loss: 8.9271 - acc: 0.4326 - ETA: 2s - loss: 8.9894 - acc: 0.4268 - ETA: 2s - loss: 8.8098 - acc: 0.4382 - ETA: 2s - loss: 8.6557 - acc: 0.4487 - ETA: 2s - loss: 8.7227 - acc: 0.4443 - ETA: 2s - loss: 8.6758 - acc: 0.4490 - ETA: 2s - loss: 8.5617 - acc: 0.4573 - ETA: 2s - loss: 8.5225 - acc: 0.4582 - ETA: 2s - loss: 8.5149 - acc: 0.4576 - ETA: 2s - loss: 8.4434 - acc: 0.4611 - ETA: 2s - loss: 8.3509 - acc: 0.4667 - ETA: 2s - loss: 8.3194 - acc: 0.4683 - ETA: 2s - loss: 8.3360 - acc: 0.4661 - ETA: 2s - loss: 8.3389 - acc: 0.4668 - ETA: 2s - loss: 8.3438 - acc: 0.4668 - ETA: 2s - loss: 8.4359 - acc: 0.4602 - ETA: 2s - loss: 8.4713 - acc: 0.4588 - ETA: 2s - loss: 8.5253 - acc: 0.4558 - ETA: 2s - loss: 8.5154 - acc: 0.4559 - ETA: 2s - loss: 8.4812 - acc: 0.4584 - ETA: 1s - loss: 8.4959 - acc: 0.4576 - ETA: 1s - loss: 8.4698 - acc: 0.4595 - ETA: 1s - loss: 8.5045 - acc: 0.4573 - ETA: 1s - loss: 8.4993 - acc: 0.4574 - ETA: 1s - loss: 8.4966 - acc: 0.4574 - ETA: 1s - loss: 8.4929 - acc: 0.4581 - ETA: 1s - loss: 8.5203 - acc: 0.4563 - ETA: 1s - loss: 8.5759 - acc: 0.4526 - ETA: 1s - loss: 8.6006 - acc: 0.4511 - ETA: 1s - loss: 8.5877 - acc: 0.4513 - ETA: 1s - loss: 8.5911 - acc: 0.4516 - ETA: 1s - loss: 8.6198 - acc: 0.4503 - ETA: 1s - loss: 8.6069 - acc: 0.4512 - ETA: 1s - loss: 8.6308 - acc: 0.4498 - ETA: 1s - loss: 8.6191 - acc: 0.4507 - ETA: 1s - loss: 8.6050 - acc: 0.4509 - ETA: 0s - loss: 8.5940 - acc: 0.4513 - ETA: 0s - loss: 8.5800 - acc: 0.4521 - ETA: 0s - loss: 8.6027 - acc: 0.4510 - ETA: 0s - loss: 8.5896 - acc: 0.4522 - ETA: 0s - loss: 8.5907 - acc: 0.4518 - ETA: 0s - loss: 8.5660 - acc: 0.4529 - ETA: 0s - loss: 8.5537 - acc: 0.4538 - ETA: 0s - loss: 8.5216 - acc: 0.4561 - ETA: 0s - loss: 8.5198 - acc: 0.4559 - ETA: 0s - loss: 8.5099 - acc: 0.4563 - ETA: 0s - loss: 8.5185 - acc: 0.4552 - ETA: 0s - loss: 8.5049 - acc: 0.4557 - ETA: 0s - loss: 8.5184 - acc: 0.4548 - ETA: 0s - loss: 8.5167 - acc: 0.4548 - ETA: 0s - loss: 8.5245 - acc: 0.4541 - ETA: 0s - loss: 8.5112 - acc: 0.4549 - ETA: 0s - loss: 8.4927 - acc: 0.4562Epoch 00008: val_loss improved from 9.04997 to 8.92736, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 8.5114 - acc: 0.4549 - val_loss: 8.9274 - val_acc: 0.3808
Epoch 10/20
6660/6680 [============================>.] - ETA: 3s - loss: 7.2531 - acc: 0.5500 - ETA: 3s - loss: 8.5209 - acc: 0.4714 - ETA: 3s - loss: 7.8126 - acc: 0.5125 - ETA: 3s - loss: 7.7727 - acc: 0.5111 - ETA: 3s - loss: 8.1028 - acc: 0.4913 - ETA: 2s - loss: 8.4330 - acc: 0.4690 - ETA: 2s - loss: 8.7081 - acc: 0.4485 - ETA: 2s - loss: 8.6358 - acc: 0.4525 - ETA: 2s - loss: 8.5299 - acc: 0.4589 - ETA: 2s - loss: 8.6203 - acc: 0.4520 - ETA: 2s - loss: 8.6391 - acc: 0.4518 - ETA: 2s - loss: 8.5919 - acc: 0.4542 - ETA: 2s - loss: 8.5939 - acc: 0.4523 - ETA: 2s - loss: 8.6356 - acc: 0.4493 - ETA: 2s - loss: 8.6558 - acc: 0.4468 - ETA: 2s - loss: 8.7004 - acc: 0.4452 - ETA: 2s - loss: 8.6214 - acc: 0.4500 - ETA: 2s - loss: 8.6067 - acc: 0.4510 - ETA: 2s - loss: 8.5614 - acc: 0.4529 - ETA: 2s - loss: 8.5300 - acc: 0.4523 - ETA: 2s - loss: 8.4691 - acc: 0.4568 - ETA: 1s - loss: 8.4102 - acc: 0.4608 - ETA: 1s - loss: 8.4414 - acc: 0.4595 - ETA: 1s - loss: 8.4334 - acc: 0.4591 - ETA: 1s - loss: 8.4447 - acc: 0.4583 - ETA: 1s - loss: 8.4678 - acc: 0.4556 - ETA: 1s - loss: 8.4480 - acc: 0.4563 - ETA: 1s - loss: 8.4307 - acc: 0.4580 - ETA: 1s - loss: 8.3973 - acc: 0.4604 - ETA: 1s - loss: 8.3993 - acc: 0.4604 - ETA: 1s - loss: 8.3922 - acc: 0.4606 - ETA: 1s - loss: 8.3962 - acc: 0.4586 - ETA: 1s - loss: 8.3852 - acc: 0.4589 - ETA: 1s - loss: 8.3700 - acc: 0.4596 - ETA: 1s - loss: 8.3714 - acc: 0.4594 - ETA: 1s - loss: 8.3571 - acc: 0.4598 - ETA: 1s - loss: 8.3662 - acc: 0.4590 - ETA: 1s - loss: 8.3809 - acc: 0.4583 - ETA: 0s - loss: 8.3497 - acc: 0.4607 - ETA: 0s - loss: 8.3642 - acc: 0.4596 - ETA: 0s - loss: 8.3752 - acc: 0.4591 - ETA: 0s - loss: 8.3620 - acc: 0.4601 - ETA: 0s - loss: 8.3825 - acc: 0.4583 - ETA: 0s - loss: 8.3688 - acc: 0.4591 - ETA: 0s - loss: 8.3585 - acc: 0.4600 - ETA: 0s - loss: 8.3673 - acc: 0.4596 - ETA: 0s - loss: 8.3545 - acc: 0.4605 - ETA: 0s - loss: 8.3261 - acc: 0.4622 - ETA: 0s - loss: 8.3474 - acc: 0.4613 - ETA: 0s - loss: 8.3527 - acc: 0.4607 - ETA: 0s - loss: 8.3308 - acc: 0.4623 - ETA: 0s - loss: 8.3456 - acc: 0.4614 - ETA: 0s - loss: 8.3323 - acc: 0.4621 - ETA: 0s - loss: 8.3143 - acc: 0.4630 - ETA: 0s - loss: 8.3389 - acc: 0.4613 - ETA: 0s - loss: 8.3241 - acc: 0.4623Epoch 00009: val_loss improved from 8.92736 to 8.78422, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 8.3312 - acc: 0.4618 - val_loss: 8.7842 - val_acc: 0.3880
Epoch 11/20
6600/6680 [============================>.] - ETA: 2s - loss: 6.5948 - acc: 0.5500 - ETA: 2s - loss: 8.1938 - acc: 0.4750 - ETA: 2s - loss: 8.5425 - acc: 0.4571 - ETA: 2s - loss: 8.4059 - acc: 0.4667 - ETA: 2s - loss: 8.3331 - acc: 0.4722 - ETA: 2s - loss: 8.2666 - acc: 0.4766 - ETA: 2s - loss: 8.0515 - acc: 0.4892 - ETA: 2s - loss: 8.0726 - acc: 0.4893 - ETA: 2s - loss: 8.0298 - acc: 0.4902 - ETA: 2s - loss: 8.0405 - acc: 0.4892 - ETA: 2s - loss: 8.0377 - acc: 0.4886 - ETA: 2s - loss: 8.0506 - acc: 0.4857 - ETA: 2s - loss: 8.0959 - acc: 0.4826 - ETA: 2s - loss: 8.0204 - acc: 0.4880 - ETA: 2s - loss: 8.0630 - acc: 0.4848 - ETA: 2s - loss: 8.0631 - acc: 0.4815 - ETA: 2s - loss: 8.0769 - acc: 0.4800 - ETA: 2s - loss: 8.0530 - acc: 0.4822 - ETA: 2s - loss: 8.0715 - acc: 0.4815 - ETA: 1s - loss: 8.0154 - acc: 0.4848 - ETA: 1s - loss: 8.0247 - acc: 0.4848 - ETA: 1s - loss: 8.0212 - acc: 0.4852 - ETA: 1s - loss: 7.9793 - acc: 0.4874 - ETA: 1s - loss: 7.9778 - acc: 0.4879 - ETA: 1s - loss: 7.9819 - acc: 0.4881 - ETA: 1s - loss: 7.9617 - acc: 0.4892 - ETA: 1s - loss: 7.9366 - acc: 0.4906 - ETA: 1s - loss: 7.9495 - acc: 0.4897 - ETA: 1s - loss: 7.9434 - acc: 0.4898 - ETA: 1s - loss: 7.9724 - acc: 0.4879 - ETA: 1s - loss: 7.9385 - acc: 0.4903 - ETA: 1s - loss: 7.9544 - acc: 0.4893 - ETA: 1s - loss: 7.9640 - acc: 0.4889 - ETA: 1s - loss: 7.9771 - acc: 0.4883 - ETA: 1s - loss: 7.9860 - acc: 0.4877 - ETA: 1s - loss: 7.9840 - acc: 0.4879 - ETA: 0s - loss: 7.9892 - acc: 0.4878 - ETA: 0s - loss: 7.9927 - acc: 0.4874 - ETA: 0s - loss: 7.9683 - acc: 0.4892 - ETA: 0s - loss: 7.9986 - acc: 0.4877 - ETA: 0s - loss: 8.0235 - acc: 0.4863 - ETA: 0s - loss: 8.0359 - acc: 0.4848 - ETA: 0s - loss: 8.0886 - acc: 0.4811 - ETA: 0s - loss: 8.1068 - acc: 0.4800 - ETA: 0s - loss: 8.1105 - acc: 0.4797 - ETA: 0s - loss: 8.1122 - acc: 0.4796 - ETA: 0s - loss: 8.1130 - acc: 0.4792 - ETA: 0s - loss: 8.1352 - acc: 0.4777 - ETA: 0s - loss: 8.1700 - acc: 0.4757 - ETA: 0s - loss: 8.1893 - acc: 0.4745 - ETA: 0s - loss: 8.1926 - acc: 0.4742 - ETA: 0s - loss: 8.1726 - acc: 0.4751 - ETA: 0s - loss: 8.1755 - acc: 0.4748 - ETA: 0s - loss: 8.1720 - acc: 0.4750Epoch 00010: val_loss improved from 8.78422 to 8.59257, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 8.1763 - acc: 0.4746 - val_loss: 8.5926 - val_acc: 0.3928
Epoch 12/20
6640/6680 [============================>.] - ETA: 2s - loss: 8.5615 - acc: 0.4500 - ETA: 2s - loss: 8.1152 - acc: 0.4750 - ETA: 2s - loss: 7.9624 - acc: 0.4857 - ETA: 2s - loss: 7.8788 - acc: 0.4925 - ETA: 2s - loss: 7.9262 - acc: 0.4926 - ETA: 2s - loss: 7.7820 - acc: 0.5015 - ETA: 2s - loss: 7.8131 - acc: 0.5000 - ETA: 2s - loss: 8.0909 - acc: 0.4830 - ETA: 2s - loss: 8.0756 - acc: 0.4843 - ETA: 2s - loss: 8.1458 - acc: 0.4803 - ETA: 2s - loss: 8.1087 - acc: 0.4816 - ETA: 2s - loss: 8.2144 - acc: 0.4760 - ETA: 2s - loss: 8.1694 - acc: 0.4780 - ETA: 2s - loss: 8.0637 - acc: 0.4852 - ETA: 1s - loss: 8.0268 - acc: 0.4874 - ETA: 1s - loss: 8.0753 - acc: 0.4847 - ETA: 1s - loss: 8.0610 - acc: 0.4856 - ETA: 1s - loss: 8.0638 - acc: 0.4855 - ETA: 1s - loss: 8.0446 - acc: 0.4867 - ETA: 1s - loss: 7.9991 - acc: 0.4894 - ETA: 1s - loss: 8.0306 - acc: 0.4880 - ETA: 1s - loss: 8.0299 - acc: 0.4879 - ETA: 1s - loss: 8.0430 - acc: 0.4874 - ETA: 1s - loss: 8.0508 - acc: 0.4873 - ETA: 1s - loss: 8.0330 - acc: 0.4881 - ETA: 1s - loss: 7.9867 - acc: 0.4910 - ETA: 1s - loss: 7.9947 - acc: 0.4907 - ETA: 1s - loss: 8.0060 - acc: 0.4902 - ETA: 1s - loss: 7.9917 - acc: 0.4911 - ETA: 1s - loss: 7.9933 - acc: 0.4911 - ETA: 1s - loss: 7.9981 - acc: 0.4904 - ETA: 1s - loss: 8.0016 - acc: 0.4900 - ETA: 1s - loss: 8.0086 - acc: 0.4893 - ETA: 0s - loss: 7.9659 - acc: 0.4919 - ETA: 0s - loss: 7.9827 - acc: 0.4910 - ETA: 0s - loss: 8.0162 - acc: 0.4889 - ETA: 0s - loss: 8.0218 - acc: 0.4887 - ETA: 0s - loss: 8.0327 - acc: 0.4881 - ETA: 0s - loss: 8.0611 - acc: 0.4864 - ETA: 0s - loss: 8.0120 - acc: 0.4888 - ETA: 0s - loss: 8.0133 - acc: 0.4883 - ETA: 0s - loss: 8.0251 - acc: 0.4869 - ETA: 0s - loss: 8.0065 - acc: 0.4878 - ETA: 0s - loss: 8.0127 - acc: 0.4873 - ETA: 0s - loss: 8.0185 - acc: 0.4871 - ETA: 0s - loss: 8.0147 - acc: 0.4874 - ETA: 0s - loss: 8.0132 - acc: 0.4878 - ETA: 0s - loss: 7.9981 - acc: 0.4888 - ETA: 0s - loss: 8.0151 - acc: 0.4879 - ETA: 0s - loss: 8.0024 - acc: 0.4888 - ETA: 0s - loss: 8.0067 - acc: 0.4882 - ETA: 0s - loss: 8.0157 - acc: 0.4875Epoch 00011: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 8.0168 - acc: 0.4874 - val_loss: 8.6257 - val_acc: 0.3988
Epoch 13/20
6580/6680 [============================>.] - ETA: 2s - loss: 10.4914 - acc: 0.3500 - ETA: 2s - loss: 8.2831 - acc: 0.4688  - ETA: 2s - loss: 8.0485 - acc: 0.4833 - ETA: 2s - loss: 8.0833 - acc: 0.4818 - ETA: 2s - loss: 7.9959 - acc: 0.4914 - ETA: 2s - loss: 8.0084 - acc: 0.4931 - ETA: 2s - loss: 7.9838 - acc: 0.4940 - ETA: 2s - loss: 7.9679 - acc: 0.4939 - ETA: 2s - loss: 7.8620 - acc: 0.5000 - ETA: 2s - loss: 7.9743 - acc: 0.4937 - ETA: 1s - loss: 7.8499 - acc: 0.5014 - ETA: 1s - loss: 7.9020 - acc: 0.4994 - ETA: 1s - loss: 7.9042 - acc: 0.5000 - ETA: 1s - loss: 7.9647 - acc: 0.4951 - ETA: 1s - loss: 8.0506 - acc: 0.4902 - ETA: 1s - loss: 8.0030 - acc: 0.4928 - ETA: 1s - loss: 7.9890 - acc: 0.4932 - ETA: 1s - loss: 8.0008 - acc: 0.4919 - ETA: 1s - loss: 8.1042 - acc: 0.4856 - ETA: 1s - loss: 8.1132 - acc: 0.4845 - ETA: 1s - loss: 8.0944 - acc: 0.4860 - ETA: 1s - loss: 8.1150 - acc: 0.4853 - ETA: 1s - loss: 8.0817 - acc: 0.4873 - ETA: 1s - loss: 8.0431 - acc: 0.4894 - ETA: 1s - loss: 8.0149 - acc: 0.4914 - ETA: 1s - loss: 7.9986 - acc: 0.4925 - ETA: 1s - loss: 7.9851 - acc: 0.4931 - ETA: 1s - loss: 7.9886 - acc: 0.4923 - ETA: 1s - loss: 8.0218 - acc: 0.4900 - ETA: 1s - loss: 8.0353 - acc: 0.4896 - ETA: 0s - loss: 8.0389 - acc: 0.4895 - ETA: 0s - loss: 8.0337 - acc: 0.4898 - ETA: 0s - loss: 8.0386 - acc: 0.4890 - ETA: 0s - loss: 8.0396 - acc: 0.4889 - ETA: 0s - loss: 8.0653 - acc: 0.4873 - ETA: 0s - loss: 8.0686 - acc: 0.4874 - ETA: 0s - loss: 8.0781 - acc: 0.4871 - ETA: 0s - loss: 8.0810 - acc: 0.4872 - ETA: 0s - loss: 8.0913 - acc: 0.4867 - ETA: 0s - loss: 8.0949 - acc: 0.4866 - ETA: 0s - loss: 8.0712 - acc: 0.4881 - ETA: 0s - loss: 8.0298 - acc: 0.4907 - ETA: 0s - loss: 8.0112 - acc: 0.4918 - ETA: 0s - loss: 8.0196 - acc: 0.4908 - ETA: 0s - loss: 8.0181 - acc: 0.4910 - ETA: 0s - loss: 8.0286 - acc: 0.4903 - ETA: 0s - loss: 8.0156 - acc: 0.4913 - ETA: 0s - loss: 8.0143 - acc: 0.4910 - ETA: 0s - loss: 8.0006 - acc: 0.4921Epoch 00012: val_loss improved from 8.59257 to 8.52429, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.9807 - acc: 0.4931 - val_loss: 8.5243 - val_acc: 0.4108
Epoch 14/20
6580/6680 [============================>.] - ETA: 2s - loss: 6.4473 - acc: 0.6000 - ETA: 2s - loss: 8.1721 - acc: 0.4813 - ETA: 2s - loss: 8.0484 - acc: 0.4833 - ETA: 2s - loss: 7.9753 - acc: 0.4929 - ETA: 2s - loss: 7.6653 - acc: 0.5148 - ETA: 2s - loss: 7.8695 - acc: 0.5030 - ETA: 2s - loss: 8.0246 - acc: 0.4923 - ETA: 2s - loss: 7.9756 - acc: 0.4967 - ETA: 2s - loss: 7.9170 - acc: 0.5000 - ETA: 2s - loss: 7.8902 - acc: 0.5026 - ETA: 2s - loss: 7.9515 - acc: 0.4976 - ETA: 2s - loss: 7.9145 - acc: 0.5007 - ETA: 2s - loss: 7.8482 - acc: 0.5047 - ETA: 2s - loss: 7.8648 - acc: 0.5037 - ETA: 2s - loss: 7.7507 - acc: 0.5098 - ETA: 2s - loss: 7.8472 - acc: 0.5032 - ETA: 1s - loss: 7.8786 - acc: 0.5015 - ETA: 1s - loss: 7.8838 - acc: 0.5014 - ETA: 1s - loss: 7.8946 - acc: 0.5013 - ETA: 1s - loss: 7.8792 - acc: 0.5025 - ETA: 1s - loss: 7.8922 - acc: 0.5019 - ETA: 1s - loss: 7.8542 - acc: 0.5044 - ETA: 1s - loss: 7.8418 - acc: 0.5056 - ETA: 1s - loss: 7.8513 - acc: 0.5040 - ETA: 1s - loss: 7.8374 - acc: 0.5051 - ETA: 1s - loss: 7.8541 - acc: 0.5037 - ETA: 1s - loss: 7.8617 - acc: 0.5035 - ETA: 1s - loss: 7.8655 - acc: 0.5031 - ETA: 1s - loss: 7.8411 - acc: 0.5049 - ETA: 1s - loss: 7.8450 - acc: 0.5047 - ETA: 1s - loss: 7.8422 - acc: 0.5050 - ETA: 1s - loss: 7.8402 - acc: 0.5053 - ETA: 0s - loss: 7.8369 - acc: 0.5052 - ETA: 0s - loss: 7.8570 - acc: 0.5039 - ETA: 0s - loss: 7.9035 - acc: 0.5009 - ETA: 0s - loss: 7.9398 - acc: 0.4987 - ETA: 0s - loss: 7.9600 - acc: 0.4973 - ETA: 0s - loss: 7.9697 - acc: 0.4968 - ETA: 0s - loss: 7.9694 - acc: 0.4967 - ETA: 0s - loss: 7.9641 - acc: 0.4971 - ETA: 0s - loss: 7.9576 - acc: 0.4976 - ETA: 0s - loss: 7.9544 - acc: 0.4980 - ETA: 0s - loss: 7.9734 - acc: 0.4968 - ETA: 0s - loss: 7.9598 - acc: 0.4973 - ETA: 0s - loss: 7.9495 - acc: 0.4977 - ETA: 0s - loss: 7.9446 - acc: 0.4979 - ETA: 0s - loss: 7.9632 - acc: 0.4968 - ETA: 0s - loss: 7.9646 - acc: 0.4963 - ETA: 0s - loss: 7.9399 - acc: 0.4974Epoch 00013: val_loss improved from 8.52429 to 8.47678, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.9536 - acc: 0.4964 - val_loss: 8.4768 - val_acc: 0.4096
Epoch 15/20
6620/6680 [============================>.] - ETA: 2s - loss: 7.2662 - acc: 0.5500 - ETA: 2s - loss: 7.0199 - acc: 0.5563 - ETA: 2s - loss: 7.4141 - acc: 0.5321 - ETA: 2s - loss: 7.4486 - acc: 0.5325 - ETA: 2s - loss: 7.3980 - acc: 0.5333 - ETA: 2s - loss: 7.6649 - acc: 0.5182 - ETA: 2s - loss: 7.6848 - acc: 0.5179 - ETA: 2s - loss: 7.5817 - acc: 0.5239 - ETA: 2s - loss: 7.4957 - acc: 0.5283 - ETA: 2s - loss: 7.7175 - acc: 0.5133 - ETA: 2s - loss: 7.6250 - acc: 0.5194 - ETA: 2s - loss: 7.7860 - acc: 0.5101 - ETA: 1s - loss: 7.6797 - acc: 0.5160 - ETA: 1s - loss: 7.6598 - acc: 0.5178 - ETA: 1s - loss: 7.7168 - acc: 0.5144 - ETA: 1s - loss: 7.6565 - acc: 0.5183 - ETA: 1s - loss: 7.7402 - acc: 0.5130 - ETA: 1s - loss: 7.7408 - acc: 0.5126 - ETA: 1s - loss: 7.7103 - acc: 0.5138 - ETA: 1s - loss: 7.6542 - acc: 0.5173 - ETA: 1s - loss: 7.6480 - acc: 0.5175 - ETA: 1s - loss: 7.6631 - acc: 0.5167 - ETA: 1s - loss: 7.6441 - acc: 0.5172 - ETA: 1s - loss: 7.6711 - acc: 0.5152 - ETA: 1s - loss: 7.6702 - acc: 0.5142 - ETA: 1s - loss: 7.6916 - acc: 0.5131 - ETA: 1s - loss: 7.6874 - acc: 0.5128 - ETA: 1s - loss: 7.7167 - acc: 0.5102 - ETA: 1s - loss: 7.7225 - acc: 0.5101 - ETA: 1s - loss: 7.7519 - acc: 0.5083 - ETA: 0s - loss: 7.7641 - acc: 0.5075 - ETA: 0s - loss: 7.8114 - acc: 0.5044 - ETA: 0s - loss: 7.8185 - acc: 0.5041 - ETA: 0s - loss: 7.7858 - acc: 0.5061 - ETA: 0s - loss: 7.8088 - acc: 0.5045 - ETA: 0s - loss: 7.8093 - acc: 0.5041 - ETA: 0s - loss: 7.8056 - acc: 0.5038 - ETA: 0s - loss: 7.8252 - acc: 0.5026 - ETA: 0s - loss: 7.8300 - acc: 0.5013 - ETA: 0s - loss: 7.8613 - acc: 0.4993 - ETA: 0s - loss: 7.8640 - acc: 0.4987 - ETA: 0s - loss: 7.8832 - acc: 0.4975 - ETA: 0s - loss: 7.8915 - acc: 0.4971 - ETA: 0s - loss: 7.8804 - acc: 0.4975 - ETA: 0s - loss: 7.8948 - acc: 0.4964 - ETA: 0s - loss: 7.8844 - acc: 0.4971 - ETA: 0s - loss: 7.8628 - acc: 0.4979 - ETA: 0s - loss: 7.8362 - acc: 0.4997 - ETA: 0s - loss: 7.8313 - acc: 0.4998Epoch 00014: val_loss improved from 8.47678 to 8.42961, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.8193 - acc: 0.5004 - val_loss: 8.4296 - val_acc: 0.4000
Epoch 16/20
6560/6680 [============================>.] - ETA: 2s - loss: 7.2650 - acc: 0.5500 - ETA: 2s - loss: 7.5125 - acc: 0.5286 - ETA: 2s - loss: 7.3955 - acc: 0.5385 - ETA: 2s - loss: 7.7339 - acc: 0.5184 - ETA: 2s - loss: 7.5031 - acc: 0.5308 - ETA: 2s - loss: 7.5260 - acc: 0.5281 - ETA: 2s - loss: 7.4818 - acc: 0.5308 - ETA: 2s - loss: 7.5106 - acc: 0.5266 - ETA: 2s - loss: 7.4329 - acc: 0.5309 - ETA: 2s - loss: 7.3430 - acc: 0.5363 - ETA: 2s - loss: 7.4171 - acc: 0.5304 - ETA: 2s - loss: 7.4170 - acc: 0.5296 - ETA: 1s - loss: 7.5014 - acc: 0.5247 - ETA: 1s - loss: 7.5709 - acc: 0.5200 - ETA: 1s - loss: 7.6166 - acc: 0.5165 - ETA: 1s - loss: 7.6315 - acc: 0.5163 - ETA: 1s - loss: 7.6237 - acc: 0.5170 - ETA: 1s - loss: 7.6482 - acc: 0.5139 - ETA: 1s - loss: 7.6604 - acc: 0.5131 - ETA: 1s - loss: 7.6493 - acc: 0.5117 - ETA: 1s - loss: 7.6507 - acc: 0.5114 - ETA: 1s - loss: 7.6757 - acc: 0.5105 - ETA: 1s - loss: 7.6880 - acc: 0.5097 - ETA: 1s - loss: 7.6507 - acc: 0.5123 - ETA: 1s - loss: 7.6221 - acc: 0.5139 - ETA: 1s - loss: 7.6541 - acc: 0.5119 - ETA: 1s - loss: 7.6378 - acc: 0.5130 - ETA: 1s - loss: 7.6747 - acc: 0.5110 - ETA: 1s - loss: 7.6575 - acc: 0.5119 - ETA: 0s - loss: 7.6724 - acc: 0.5100 - ETA: 0s - loss: 7.7063 - acc: 0.5083 - ETA: 0s - loss: 7.7236 - acc: 0.5068 - ETA: 0s - loss: 7.7022 - acc: 0.5086 - ETA: 0s - loss: 7.6609 - acc: 0.5111 - ETA: 0s - loss: 7.6473 - acc: 0.5118 - ETA: 0s - loss: 7.6794 - acc: 0.5094 - ETA: 0s - loss: 7.6718 - acc: 0.5100 - ETA: 0s - loss: 7.6335 - acc: 0.5125 - ETA: 0s - loss: 7.6414 - acc: 0.5119 - ETA: 0s - loss: 7.6274 - acc: 0.5126 - ETA: 0s - loss: 7.6182 - acc: 0.5128 - ETA: 0s - loss: 7.6274 - acc: 0.5123 - ETA: 0s - loss: 7.6419 - acc: 0.5117 - ETA: 0s - loss: 7.6651 - acc: 0.5104 - ETA: 0s - loss: 7.6602 - acc: 0.5102 - ETA: 0s - loss: 7.6502 - acc: 0.5104 - ETA: 0s - loss: 7.6498 - acc: 0.5105Epoch 00015: val_loss improved from 8.42961 to 8.31372, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.6556 - acc: 0.5102 - val_loss: 8.3137 - val_acc: 0.4192
Epoch 17/20
6620/6680 [============================>.] - ETA: 2s - loss: 5.7045 - acc: 0.6000 - ETA: 2s - loss: 7.5789 - acc: 0.5188 - ETA: 2s - loss: 7.6756 - acc: 0.5067 - ETA: 2s - loss: 7.5963 - acc: 0.5152 - ETA: 2s - loss: 7.3408 - acc: 0.5333 - ETA: 2s - loss: 7.4564 - acc: 0.5284 - ETA: 2s - loss: 7.4611 - acc: 0.5295 - ETA: 2s - loss: 7.4957 - acc: 0.5284 - ETA: 2s - loss: 7.5769 - acc: 0.5216 - ETA: 1s - loss: 7.5344 - acc: 0.5231 - ETA: 1s - loss: 7.5528 - acc: 0.5222 - ETA: 1s - loss: 7.5411 - acc: 0.5222 - ETA: 1s - loss: 7.5305 - acc: 0.5227 - ETA: 1s - loss: 7.4537 - acc: 0.5263 - ETA: 1s - loss: 7.4883 - acc: 0.5235 - ETA: 1s - loss: 7.5380 - acc: 0.5203 - ETA: 1s - loss: 7.5144 - acc: 0.5221 - ETA: 1s - loss: 7.5801 - acc: 0.5181 - ETA: 1s - loss: 7.5875 - acc: 0.5180 - ETA: 1s - loss: 7.5479 - acc: 0.5210 - ETA: 1s - loss: 7.5170 - acc: 0.5228 - ETA: 1s - loss: 7.4982 - acc: 0.5238 - ETA: 1s - loss: 7.5090 - acc: 0.5230 - ETA: 1s - loss: 7.4908 - acc: 0.5242 - ETA: 1s - loss: 7.5253 - acc: 0.5211 - ETA: 1s - loss: 7.4858 - acc: 0.5237 - ETA: 1s - loss: 7.4740 - acc: 0.5243 - ETA: 1s - loss: 7.4982 - acc: 0.5229 - ETA: 1s - loss: 7.4900 - acc: 0.5227 - ETA: 0s - loss: 7.5301 - acc: 0.5204 - ETA: 0s - loss: 7.5287 - acc: 0.5210 - ETA: 0s - loss: 7.5257 - acc: 0.5212 - ETA: 0s - loss: 7.5105 - acc: 0.5222 - ETA: 0s - loss: 7.4867 - acc: 0.5238 - ETA: 0s - loss: 7.4979 - acc: 0.5230 - ETA: 0s - loss: 7.4828 - acc: 0.5240 - ETA: 0s - loss: 7.4984 - acc: 0.5223 - ETA: 0s - loss: 7.5073 - acc: 0.5219 - ETA: 0s - loss: 7.4914 - acc: 0.5228 - ETA: 0s - loss: 7.4716 - acc: 0.5240 - ETA: 0s - loss: 7.5012 - acc: 0.5221 - ETA: 0s - loss: 7.4988 - acc: 0.5224 - ETA: 0s - loss: 7.5261 - acc: 0.5210 - ETA: 0s - loss: 7.5314 - acc: 0.5207 - ETA: 0s - loss: 7.5384 - acc: 0.5205 - ETA: 0s - loss: 7.5456 - acc: 0.5198 - ETA: 0s - loss: 7.5373 - acc: 0.5200 - ETA: 0s - loss: 7.5190 - acc: 0.5213Epoch 00016: val_loss improved from 8.31372 to 8.22865, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.5166 - acc: 0.5216 - val_loss: 8.2286 - val_acc: 0.4263
Epoch 18/20
6580/6680 [============================>.] - ETA: 2s - loss: 9.6717 - acc: 0.4000 - ETA: 2s - loss: 8.2270 - acc: 0.4875 - ETA: 2s - loss: 7.3965 - acc: 0.5344 - ETA: 2s - loss: 7.3423 - acc: 0.5396 - ETA: 2s - loss: 7.4113 - acc: 0.5355 - ETA: 2s - loss: 7.5419 - acc: 0.5263 - ETA: 2s - loss: 7.5761 - acc: 0.5250 - ETA: 2s - loss: 7.4559 - acc: 0.5324 - ETA: 2s - loss: 7.3991 - acc: 0.5351 - ETA: 2s - loss: 7.3708 - acc: 0.5375 - ETA: 2s - loss: 7.5328 - acc: 0.5271 - ETA: 2s - loss: 7.4912 - acc: 0.5296 - ETA: 2s - loss: 7.6213 - acc: 0.5220 - ETA: 1s - loss: 7.6387 - acc: 0.5205 - ETA: 1s - loss: 7.7387 - acc: 0.5137 - ETA: 1s - loss: 7.6589 - acc: 0.5183 - ETA: 1s - loss: 7.6165 - acc: 0.5204 - ETA: 1s - loss: 7.6183 - acc: 0.5196 - ETA: 1s - loss: 7.6112 - acc: 0.5201 - ETA: 1s - loss: 7.6217 - acc: 0.5194 - ETA: 1s - loss: 7.6314 - acc: 0.5185 - ETA: 1s - loss: 7.6553 - acc: 0.5167 - ETA: 1s - loss: 7.6501 - acc: 0.5169 - ETA: 1s - loss: 7.6673 - acc: 0.5156 - ETA: 1s - loss: 7.6250 - acc: 0.5180 - ETA: 1s - loss: 7.5754 - acc: 0.5214 - ETA: 1s - loss: 7.5546 - acc: 0.5226 - ETA: 1s - loss: 7.5849 - acc: 0.5206 - ETA: 1s - loss: 7.5821 - acc: 0.5209 - ETA: 1s - loss: 7.5948 - acc: 0.5200 - ETA: 1s - loss: 7.6171 - acc: 0.5186 - ETA: 0s - loss: 7.5830 - acc: 0.5206 - ETA: 0s - loss: 7.5468 - acc: 0.5229 - ETA: 0s - loss: 7.5361 - acc: 0.5235 - ETA: 0s - loss: 7.5416 - acc: 0.5235 - ETA: 0s - loss: 7.5050 - acc: 0.5251 - ETA: 0s - loss: 7.4922 - acc: 0.5259 - ETA: 0s - loss: 7.4777 - acc: 0.5265 - ETA: 0s - loss: 7.4626 - acc: 0.5277 - ETA: 0s - loss: 7.4621 - acc: 0.5279 - ETA: 0s - loss: 7.4980 - acc: 0.5259 - ETA: 0s - loss: 7.5161 - acc: 0.5248 - ETA: 0s - loss: 7.5026 - acc: 0.5254 - ETA: 0s - loss: 7.4904 - acc: 0.5262 - ETA: 0s - loss: 7.4844 - acc: 0.5263 - ETA: 0s - loss: 7.5212 - acc: 0.5239 - ETA: 0s - loss: 7.5162 - acc: 0.5244 - ETA: 0s - loss: 7.5086 - acc: 0.5248 - ETA: 0s - loss: 7.4771 - acc: 0.5266 - ETA: 0s - loss: 7.4764 - acc: 0.5266Epoch 00017: val_loss improved from 8.22865 to 8.14619, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 2s - loss: 7.4783 - acc: 0.5265 - val_loss: 8.1462 - val_acc: 0.4192
Epoch 19/20
6600/6680 [============================>.] - ETA: 2s - loss: 6.4480 - acc: 0.6000 - ETA: 2s - loss: 8.5569 - acc: 0.4643 - ETA: 2s - loss: 7.7782 - acc: 0.5115 - ETA: 2s - loss: 7.4092 - acc: 0.5361 - ETA: 2s - loss: 7.3367 - acc: 0.5417 - ETA: 2s - loss: 7.3483 - acc: 0.5417 - ETA: 2s - loss: 7.3129 - acc: 0.5431 - ETA: 2s - loss: 7.2963 - acc: 0.5440 - ETA: 2s - loss: 7.3068 - acc: 0.5439 - ETA: 2s - loss: 7.3816 - acc: 0.5393 - ETA: 2s - loss: 7.3290 - acc: 0.5429 - ETA: 2s - loss: 7.3818 - acc: 0.5386 - ETA: 2s - loss: 7.3552 - acc: 0.5403 - ETA: 2s - loss: 7.3424 - acc: 0.5411 - ETA: 2s - loss: 7.3569 - acc: 0.5399 - ETA: 2s - loss: 7.2965 - acc: 0.5433 - ETA: 2s - loss: 7.2959 - acc: 0.5426 - ETA: 2s - loss: 7.3016 - acc: 0.5425 - ETA: 2s - loss: 7.3093 - acc: 0.5415 - ETA: 2s - loss: 7.3425 - acc: 0.5397 - ETA: 1s - loss: 7.4124 - acc: 0.5353 - ETA: 1s - loss: 7.4178 - acc: 0.5352 - ETA: 1s - loss: 7.4194 - acc: 0.5351 - ETA: 1s - loss: 7.4452 - acc: 0.5335 - ETA: 1s - loss: 7.4047 - acc: 0.5358 - ETA: 1s - loss: 7.3751 - acc: 0.5364 - ETA: 1s - loss: 7.3599 - acc: 0.5376 - ETA: 1s - loss: 7.3873 - acc: 0.5350 - ETA: 1s - loss: 7.4315 - acc: 0.5323 - ETA: 1s - loss: 7.4092 - acc: 0.5330 - ETA: 1s - loss: 7.4068 - acc: 0.5331 - ETA: 1s - loss: 7.3393 - acc: 0.5373 - ETA: 1s - loss: 7.3428 - acc: 0.5365 - ETA: 1s - loss: 7.3529 - acc: 0.5359 - ETA: 1s - loss: 7.3423 - acc: 0.5365 - ETA: 1s - loss: 7.3456 - acc: 0.5363 - ETA: 1s - loss: 7.3808 - acc: 0.5343 - ETA: 1s - loss: 7.4043 - acc: 0.5328 - ETA: 0s - loss: 7.4226 - acc: 0.5316 - ETA: 0s - loss: 7.4282 - acc: 0.5310 - ETA: 0s - loss: 7.4210 - acc: 0.5315 - ETA: 0s - loss: 7.4398 - acc: 0.5302 - ETA: 0s - loss: 7.4510 - acc: 0.5294 - ETA: 0s - loss: 7.4220 - acc: 0.5307 - ETA: 0s - loss: 7.4314 - acc: 0.5301 - ETA: 0s - loss: 7.4375 - acc: 0.5299 - ETA: 0s - loss: 7.4387 - acc: 0.5296 - ETA: 0s - loss: 7.4464 - acc: 0.5292 - ETA: 0s - loss: 7.4286 - acc: 0.5302 - ETA: 0s - loss: 7.4246 - acc: 0.5303 - ETA: 0s - loss: 7.4275 - acc: 0.5300 - ETA: 0s - loss: 7.4141 - acc: 0.5308 - ETA: 0s - loss: 7.4078 - acc: 0.5310 - ETA: 0s - loss: 7.3999 - acc: 0.5314 - ETA: 0s - loss: 7.4136 - acc: 0.5306 - ETA: 0s - loss: 7.4094 - acc: 0.5306 - ETA: 0s - loss: 7.4294 - acc: 0.5289Epoch 00018: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 7.4282 - acc: 0.5289 - val_loss: 8.2602 - val_acc: 0.4192
Epoch 20/20
6580/6680 [============================>.] - ETA: 2s - loss: 6.4502 - acc: 0.6000 - ETA: 3s - loss: 8.5988 - acc: 0.4500 - ETA: 3s - loss: 7.7957 - acc: 0.4955 - ETA: 3s - loss: 7.6105 - acc: 0.5094 - ETA: 3s - loss: 7.4272 - acc: 0.5238 - ETA: 3s - loss: 7.6344 - acc: 0.5115 - ETA: 3s - loss: 7.6208 - acc: 0.5141 - ETA: 2s - loss: 7.5159 - acc: 0.5145 - ETA: 2s - loss: 7.6022 - acc: 0.5102 - ETA: 2s - loss: 7.5537 - acc: 0.5143 - ETA: 2s - loss: 7.4559 - acc: 0.5209 - ETA: 2s - loss: 7.4898 - acc: 0.5197 - ETA: 2s - loss: 7.5008 - acc: 0.5200 - ETA: 2s - loss: 7.4522 - acc: 0.5239 - ETA: 2s - loss: 7.4516 - acc: 0.5236 - ETA: 2s - loss: 7.3679 - acc: 0.5278 - ETA: 2s - loss: 7.3621 - acc: 0.5286 - ETA: 2s - loss: 7.3131 - acc: 0.5322 - ETA: 2s - loss: 7.3294 - acc: 0.5295 - ETA: 2s - loss: 7.3604 - acc: 0.5270 - ETA: 2s - loss: 7.3592 - acc: 0.5276 - ETA: 2s - loss: 7.3420 - acc: 0.5286 - ETA: 2s - loss: 7.3346 - acc: 0.5293 - ETA: 2s - loss: 7.3526 - acc: 0.5287 - ETA: 2s - loss: 7.3389 - acc: 0.5298 - ETA: 2s - loss: 7.3780 - acc: 0.5280 - ETA: 2s - loss: 7.3801 - acc: 0.5279 - ETA: 1s - loss: 7.3704 - acc: 0.5288 - ETA: 1s - loss: 7.4060 - acc: 0.5270 - ETA: 1s - loss: 7.3721 - acc: 0.5292 - ETA: 1s - loss: 7.3476 - acc: 0.5307 - ETA: 1s - loss: 7.3385 - acc: 0.5314 - ETA: 1s - loss: 7.3632 - acc: 0.5301 - ETA: 1s - loss: 7.3577 - acc: 0.5305 - ETA: 1s - loss: 7.3475 - acc: 0.5310 - ETA: 1s - loss: 7.3341 - acc: 0.5320 - ETA: 1s - loss: 7.3521 - acc: 0.5313 - ETA: 1s - loss: 7.3238 - acc: 0.5328 - ETA: 1s - loss: 7.3126 - acc: 0.5334 - ETA: 1s - loss: 7.3053 - acc: 0.5339 - ETA: 1s - loss: 7.3166 - acc: 0.5331 - ETA: 0s - loss: 7.3469 - acc: 0.5306 - ETA: 0s - loss: 7.3385 - acc: 0.5310 - ETA: 0s - loss: 7.2721 - acc: 0.5352 - ETA: 0s - loss: 7.2648 - acc: 0.5358 - ETA: 0s - loss: 7.2263 - acc: 0.5382 - ETA: 0s - loss: 7.2123 - acc: 0.5391 - ETA: 0s - loss: 7.2122 - acc: 0.5388 - ETA: 0s - loss: 7.2103 - acc: 0.5392 - ETA: 0s - loss: 7.2163 - acc: 0.5388 - ETA: 0s - loss: 7.1920 - acc: 0.5404 - ETA: 0s - loss: 7.2073 - acc: 0.5394 - ETA: 0s - loss: 7.2076 - acc: 0.5391 - ETA: 0s - loss: 7.1871 - acc: 0.5403 - ETA: 0s - loss: 7.2168 - acc: 0.5387 - ETA: 0s - loss: 7.2093 - acc: 0.5387 - ETA: 0s - loss: 7.2236 - acc: 0.5375Epoch 00019: val_loss improved from 8.14619 to 7.86712, saving model to saved_models/weights.best.VGG16.hdf5
6680/6680 [==============================] - 3s - loss: 7.2256 - acc: 0.5373 - val_loss: 7.8671 - val_acc: 0.4359
Out[50]:
<keras.callbacks.History at 0x21999b14f98>

Load the Model with the Best Validation Loss


In [51]:
VGG16_model.load_weights('saved_models/weights.best.VGG16.hdf5')

Test the Model

Now, we can use the CNN to test how well it identifies breed within our test dataset of dog images. We print the test accuracy below.


In [52]:
# get index of predicted dog breed for each image in test set
VGG16_predictions = [np.argmax(VGG16_model.predict(np.expand_dims(feature, axis=0))) for feature in test_VGG16]

# report test accuracy
test_accuracy = 100*np.sum(np.array(VGG16_predictions)==np.argmax(test_targets, axis=1))/len(VGG16_predictions)
print('Test accuracy: %.4f%%' % test_accuracy)


Test accuracy: 44.3780%

Predict Dog Breed with the Model


In [53]:
from extract_bottleneck_features import *

def VGG16_predict_breed(img_path):
    # extract bottleneck features
    bottleneck_feature = extract_VGG16(path_to_tensor(img_path))
    # obtain predicted vector
    predicted_vector = VGG16_model.predict(bottleneck_feature)
    # return dog breed that is predicted by the model
    return dog_names[np.argmax(predicted_vector)]

Step 5: Create a CNN to Classify Dog Breeds (using Transfer Learning)

You will now use transfer learning to create a CNN that can identify dog breed from images. Your CNN must attain at least 60% accuracy on the test set.

In Step 4, we used transfer learning to create a CNN using VGG-16 bottleneck features. In this section, you must use the bottleneck features from a different pre-trained model. To make things easier for you, we have pre-computed the features for all of the networks that are currently available in Keras:

The files are encoded as such:

Dog{network}Data.npz

where {network}, in the above filename, can be one of VGG19, Resnet50, InceptionV3, or Xception. Pick one of the above architectures, download the corresponding bottleneck features, and store the downloaded file in the bottleneck_features/ folder in the repository.

(IMPLEMENTATION) Obtain Bottleneck Features

In the code block below, extract the bottleneck features corresponding to the train, test, and validation sets by running the following:

bottleneck_features = np.load('bottleneck_features/Dog{network}Data.npz')
train_{network} = bottleneck_features['train']
valid_{network} = bottleneck_features['valid']
test_{network} = bottleneck_features['test']

In [54]:
### TODO: Obtain bottleneck features from another pre-trained CNN.
bottleneck_features = np.load('bottleneck_features/DogResnet50Data.npz')
train_resnet = bottleneck_features['train']
valid_resnet = bottleneck_features['valid']
test_resnet = bottleneck_features['test']

(IMPLEMENTATION) Model Architecture

Create a CNN to classify dog breed. At the end of your code cell block, summarize the layers of your model by executing the line:

    <your model's name>.summary()

Question 5: Outline the steps you took to get to your final CNN architecture and your reasoning at each step. Describe why you think the architecture is suitable for the current problem.

Answer: I took following steps to get Final architecture:

  • Downloaded the ResNet-50 data and copied it to bottleneck_features directory.
  • Loaded the bottleneck features for training, testing and validation sets.
  • Used the training set of ResNet-50 data to create first layer. Here already trained coefficients from ResNet-50 will be used in our first layer.
  • Created the final Dense layer with softmax activation function to classify dog breeds in one of 133.
  • This architecture is sutable for the current problem as we can use the already computed weights of Resnet-50 and use those weights in addition with a Dense layer. Here we are actually able to use already trained weights via transfer learning. This essentially reduces training time and improves accuracy.

In [55]:
### TODO: Define your architecture.
Resnet_model = Sequential()
Resnet_model.add(GlobalAveragePooling2D(input_shape=train_resnet.shape[1:]))
Resnet_model.add(Dense(133, activation='softmax'))

Resnet_model.summary()


_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
global_average_pooling2d_11  (None, 2048)              0         
_________________________________________________________________
dense_11 (Dense)             (None, 133)               272517    
=================================================================
Total params: 272,517.0
Trainable params: 272,517.0
Non-trainable params: 0.0
_________________________________________________________________

(IMPLEMENTATION) Compile the Model


In [56]:
### TODO: Compile the model.
Resnet_model.compile(loss='categorical_crossentropy', optimizer='rmsprop', metrics=['accuracy'])

(IMPLEMENTATION) Train the Model

Train your model in the code cell below. Use model checkpointing to save the model that attains the best validation loss.

You are welcome to augment the training data, but this is not a requirement.


In [57]:
### TODO: Train the model.
checkpointer = ModelCheckpoint(filepath='saved_models/weights.best.resnet.hdf5', 
                               verbose=1, save_best_only=True)

Resnet_model.fit(train_resnet, train_targets, 
          validation_data=(valid_resnet, valid_targets),
          epochs=20, batch_size=20, callbacks=[checkpointer], verbose=1)


Train on 6680 samples, validate on 835 samples
Epoch 1/20
6660/6680 [============================>.] - ETA: 144s - loss: 5.6271 - acc: 0.0000e+00 - ETA: 32s - loss: 6.0292 - acc: 0.0400      - ETA: 21s - loss: 6.0339 - acc: 0.0313 - ETA: 14s - loss: 5.6797 - acc: 0.0346 - ETA: 12s - loss: 5.5250 - acc: 0.0500 - ETA: 10s - loss: 5.2951 - acc: 0.0700 - ETA: 9s - loss: 4.9997 - acc: 0.0979  - ETA: 8s - loss: 4.8005 - acc: 0.1138 - ETA: 7s - loss: 4.5965 - acc: 0.1309 - ETA: 6s - loss: 4.3737 - acc: 0.1538 - ETA: 6s - loss: 4.2006 - acc: 0.1750 - ETA: 6s - loss: 4.0469 - acc: 0.1949 - ETA: 5s - loss: 3.9065 - acc: 0.2148 - ETA: 5s - loss: 3.7903 - acc: 0.2297 - ETA: 5s - loss: 3.6943 - acc: 0.2468 - ETA: 4s - loss: 3.5879 - acc: 0.2581 - ETA: 4s - loss: 3.4613 - acc: 0.2815 - ETA: 4s - loss: 3.3580 - acc: 0.3026 - ETA: 4s - loss: 3.2775 - acc: 0.3139 - ETA: 4s - loss: 3.1901 - acc: 0.3233 - ETA: 4s - loss: 3.1013 - acc: 0.3398 - ETA: 3s - loss: 3.0519 - acc: 0.3459 - ETA: 3s - loss: 2.9797 - acc: 0.3569 - ETA: 3s - loss: 2.9111 - acc: 0.3678 - ETA: 3s - loss: 2.8495 - acc: 0.3786 - ETA: 3s - loss: 2.7930 - acc: 0.3855 - ETA: 3s - loss: 2.7285 - acc: 0.3980 - ETA: 3s - loss: 2.6803 - acc: 0.4039 - ETA: 3s - loss: 2.6285 - acc: 0.4149 - ETA: 2s - loss: 2.5806 - acc: 0.4224 - ETA: 2s - loss: 2.5405 - acc: 0.4293 - ETA: 2s - loss: 2.5018 - acc: 0.4338 - ETA: 2s - loss: 2.4601 - acc: 0.4416 - ETA: 2s - loss: 2.4173 - acc: 0.4481 - ETA: 2s - loss: 2.3756 - acc: 0.4560 - ETA: 2s - loss: 2.3374 - acc: 0.4625 - ETA: 2s - loss: 2.2959 - acc: 0.4713 - ETA: 2s - loss: 2.2591 - acc: 0.4784 - ETA: 2s - loss: 2.2252 - acc: 0.4844 - ETA: 2s - loss: 2.1949 - acc: 0.4902 - ETA: 2s - loss: 2.1622 - acc: 0.4966 - ETA: 1s - loss: 2.1334 - acc: 0.5010 - ETA: 1s - loss: 2.1132 - acc: 0.5028 - ETA: 1s - loss: 2.0856 - acc: 0.5086 - ETA: 1s - loss: 2.0578 - acc: 0.5144 - ETA: 1s - loss: 2.0357 - acc: 0.5180 - ETA: 1s - loss: 2.0196 - acc: 0.5211 - ETA: 1s - loss: 1.9928 - acc: 0.5269 - ETA: 1s - loss: 1.9654 - acc: 0.5318 - ETA: 1s - loss: 1.9438 - acc: 0.5352 - ETA: 1s - loss: 1.9243 - acc: 0.5389 - ETA: 1s - loss: 1.9035 - acc: 0.5416 - ETA: 1s - loss: 1.8796 - acc: 0.5474 - ETA: 1s - loss: 1.8655 - acc: 0.5486 - ETA: 1s - loss: 1.8481 - acc: 0.5517 - ETA: 0s - loss: 1.8302 - acc: 0.5544 - ETA: 0s - loss: 1.8109 - acc: 0.5586 - ETA: 0s - loss: 1.7917 - acc: 0.5626 - ETA: 0s - loss: 1.7818 - acc: 0.5644 - ETA: 0s - loss: 1.7683 - acc: 0.5668 - ETA: 0s - loss: 1.7534 - acc: 0.5693 - ETA: 0s - loss: 1.7375 - acc: 0.5718 - ETA: 0s - loss: 1.7239 - acc: 0.5748 - ETA: 0s - loss: 1.7092 - acc: 0.5781 - ETA: 0s - loss: 1.6933 - acc: 0.5810 - ETA: 0s - loss: 1.6786 - acc: 0.5843 - ETA: 0s - loss: 1.6616 - acc: 0.5882 - ETA: 0s - loss: 1.6470 - acc: 0.5910 - ETA: 0s - loss: 1.6320 - acc: 0.5941 - ETA: 0s - loss: 1.6214 - acc: 0.5956Epoch 00000: val_loss improved from inf to 0.78626, saving model to saved_models/weights.best.resnet.hdf5
6680/6680 [==============================] - 4s - loss: 1.6192 - acc: 0.5960 - val_loss: 0.7863 - val_acc: 0.7593
Epoch 2/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.3491 - acc: 0.9500 - ETA: 3s - loss: 0.4159 - acc: 0.8833 - ETA: 3s - loss: 0.4065 - acc: 0.8864 - ETA: 3s - loss: 0.4428 - acc: 0.8781 - ETA: 3s - loss: 0.4402 - acc: 0.8786 - ETA: 3s - loss: 0.4208 - acc: 0.8865 - ETA: 3s - loss: 0.4462 - acc: 0.8758 - ETA: 3s - loss: 0.4599 - acc: 0.8708 - ETA: 3s - loss: 0.4585 - acc: 0.8688 - ETA: 3s - loss: 0.4526 - acc: 0.8705 - ETA: 3s - loss: 0.4475 - acc: 0.8673 - ETA: 3s - loss: 0.4482 - acc: 0.8648 - ETA: 3s - loss: 0.4528 - acc: 0.8644 - ETA: 3s - loss: 0.4609 - acc: 0.8633 - ETA: 3s - loss: 0.4683 - acc: 0.8603 - ETA: 3s - loss: 0.4755 - acc: 0.8590 - ETA: 3s - loss: 0.4757 - acc: 0.8579 - ETA: 3s - loss: 0.4795 - acc: 0.8569 - ETA: 2s - loss: 0.4699 - acc: 0.8594 - ETA: 2s - loss: 0.4619 - acc: 0.8617 - ETA: 2s - loss: 0.4540 - acc: 0.8647 - ETA: 2s - loss: 0.4514 - acc: 0.8640 - ETA: 2s - loss: 0.4534 - acc: 0.8619 - ETA: 2s - loss: 0.4511 - acc: 0.8627 - ETA: 2s - loss: 0.4535 - acc: 0.8618 - ETA: 2s - loss: 0.4540 - acc: 0.8614 - ETA: 2s - loss: 0.4487 - acc: 0.8631 - ETA: 2s - loss: 0.4480 - acc: 0.8643 - ETA: 2s - loss: 0.4419 - acc: 0.8664 - ETA: 2s - loss: 0.4420 - acc: 0.8654 - ETA: 2s - loss: 0.4435 - acc: 0.8657 - ETA: 2s - loss: 0.4419 - acc: 0.8659 - ETA: 2s - loss: 0.4373 - acc: 0.8677 - ETA: 2s - loss: 0.4343 - acc: 0.8684 - ETA: 2s - loss: 0.4349 - acc: 0.8689 - ETA: 2s - loss: 0.4422 - acc: 0.8655 - ETA: 1s - loss: 0.4439 - acc: 0.8639 - ETA: 1s - loss: 0.4419 - acc: 0.8647 - ETA: 1s - loss: 0.4396 - acc: 0.8654 - ETA: 1s - loss: 0.4452 - acc: 0.8633 - ETA: 1s - loss: 0.4427 - acc: 0.8648 - ETA: 1s - loss: 0.4432 - acc: 0.8642 - ETA: 1s - loss: 0.4432 - acc: 0.8641 - ETA: 1s - loss: 0.4441 - acc: 0.8635 - ETA: 1s - loss: 0.4452 - acc: 0.8623 - ETA: 1s - loss: 0.4428 - acc: 0.8631 - ETA: 1s - loss: 0.4440 - acc: 0.8622 - ETA: 1s - loss: 0.4445 - acc: 0.8619 - ETA: 1s - loss: 0.4428 - acc: 0.8627 - ETA: 1s - loss: 0.4458 - acc: 0.8620 - ETA: 1s - loss: 0.4426 - acc: 0.8632 - ETA: 1s - loss: 0.4457 - acc: 0.8617 - ETA: 1s - loss: 0.4443 - acc: 0.8619 - ETA: 0s - loss: 0.4417 - acc: 0.8628 - ETA: 0s - loss: 0.4428 - acc: 0.8636 - ETA: 0s - loss: 0.4413 - acc: 0.8643 - ETA: 0s - loss: 0.4392 - acc: 0.8648 - ETA: 0s - loss: 0.4412 - acc: 0.8643 - ETA: 0s - loss: 0.4385 - acc: 0.8653 - ETA: 0s - loss: 0.4395 - acc: 0.8649 - ETA: 0s - loss: 0.4434 - acc: 0.8639 - ETA: 0s - loss: 0.4428 - acc: 0.8639 - ETA: 0s - loss: 0.4415 - acc: 0.8646 - ETA: 0s - loss: 0.4414 - acc: 0.8651 - ETA: 0s - loss: 0.4424 - acc: 0.8647 - ETA: 0s - loss: 0.4405 - acc: 0.8654 - ETA: 0s - loss: 0.4425 - acc: 0.8653 - ETA: 0s - loss: 0.4446 - acc: 0.8649 - ETA: 0s - loss: 0.4418 - acc: 0.8659 - ETA: 0s - loss: 0.4421 - acc: 0.8660Epoch 00001: val_loss improved from 0.78626 to 0.64331, saving model to saved_models/weights.best.resnet.hdf5
6680/6680 [==============================] - 4s - loss: 0.4418 - acc: 0.8662 - val_loss: 0.6433 - val_acc: 0.8024
Epoch 3/20
6620/6680 [============================>.] - ETA: 3s - loss: 0.2959 - acc: 0.8000 - ETA: 3s - loss: 0.2292 - acc: 0.9083 - ETA: 3s - loss: 0.2419 - acc: 0.9091 - ETA: 3s - loss: 0.2222 - acc: 0.9219 - ETA: 3s - loss: 0.2380 - acc: 0.9119 - ETA: 3s - loss: 0.2345 - acc: 0.9154 - ETA: 3s - loss: 0.2329 - acc: 0.9113 - ETA: 3s - loss: 0.2360 - acc: 0.9125 - ETA: 3s - loss: 0.2346 - acc: 0.9171 - ETA: 3s - loss: 0.2287 - acc: 0.9185 - ETA: 3s - loss: 0.2291 - acc: 0.9206 - ETA: 3s - loss: 0.2259 - acc: 0.9214 - ETA: 3s - loss: 0.2214 - acc: 0.9238 - ETA: 3s - loss: 0.2232 - acc: 0.9227 - ETA: 2s - loss: 0.2275 - acc: 0.9232 - ETA: 2s - loss: 0.2331 - acc: 0.9224 - ETA: 2s - loss: 0.2296 - acc: 0.9228 - ETA: 2s - loss: 0.2254 - acc: 0.9244 - ETA: 2s - loss: 0.2251 - acc: 0.9253 - ETA: 2s - loss: 0.2240 - acc: 0.9250 - ETA: 2s - loss: 0.2354 - acc: 0.9218 - ETA: 2s - loss: 0.2346 - acc: 0.9226 - ETA: 2s - loss: 0.2359 - acc: 0.9225 - ETA: 2s - loss: 0.2387 - acc: 0.9228 - ETA: 2s - loss: 0.2404 - acc: 0.9231 - ETA: 2s - loss: 0.2387 - acc: 0.9234 - ETA: 2s - loss: 0.2353 - acc: 0.9252 - ETA: 2s - loss: 0.2364 - acc: 0.9239 - ETA: 2s - loss: 0.2342 - acc: 0.9245 - ETA: 2s - loss: 0.2373 - acc: 0.9243 - ETA: 2s - loss: 0.2419 - acc: 0.9212 - ETA: 1s - loss: 0.2436 - acc: 0.9212 - ETA: 1s - loss: 0.2426 - acc: 0.9205 - ETA: 1s - loss: 0.2462 - acc: 0.9202 - ETA: 1s - loss: 0.2492 - acc: 0.9187 - ETA: 1s - loss: 0.2491 - acc: 0.9182 - ETA: 1s - loss: 0.2479 - acc: 0.9182 - ETA: 1s - loss: 0.2477 - acc: 0.9191 - ETA: 1s - loss: 0.2486 - acc: 0.9191 - ETA: 1s - loss: 0.2484 - acc: 0.9196 - ETA: 1s - loss: 0.2513 - acc: 0.9197 - ETA: 1s - loss: 0.2512 - acc: 0.9192 - ETA: 1s - loss: 0.2501 - acc: 0.9197 - ETA: 1s - loss: 0.2479 - acc: 0.9206 - ETA: 1s - loss: 0.2502 - acc: 0.9188 - ETA: 1s - loss: 0.2498 - acc: 0.9195 - ETA: 1s - loss: 0.2487 - acc: 0.9199 - ETA: 1s - loss: 0.2488 - acc: 0.9203 - ETA: 1s - loss: 0.2489 - acc: 0.9195 - ETA: 0s - loss: 0.2518 - acc: 0.9191 - ETA: 0s - loss: 0.2512 - acc: 0.9195 - ETA: 0s - loss: 0.2528 - acc: 0.9191 - ETA: 0s - loss: 0.2518 - acc: 0.9193 - ETA: 0s - loss: 0.2524 - acc: 0.9192 - ETA: 0s - loss: 0.2530 - acc: 0.9192 - ETA: 0s - loss: 0.2538 - acc: 0.9185 - ETA: 0s - loss: 0.2558 - acc: 0.9183 - ETA: 0s - loss: 0.2606 - acc: 0.9170 - ETA: 0s - loss: 0.2590 - acc: 0.9177 - ETA: 0s - loss: 0.2587 - acc: 0.9176 - ETA: 0s - loss: 0.2610 - acc: 0.9173 - ETA: 0s - loss: 0.2607 - acc: 0.9170 - ETA: 0s - loss: 0.2600 - acc: 0.9174 - ETA: 0s - loss: 0.2581 - acc: 0.9185 - ETA: 0s - loss: 0.2594 - acc: 0.9184 - ETA: 0s - loss: 0.2596 - acc: 0.9184 - ETA: 0s - loss: 0.2605 - acc: 0.9180Epoch 00002: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.2603 - acc: 0.9175 - val_loss: 0.6831 - val_acc: 0.7964
Epoch 4/20
6580/6680 [============================>.] - ETA: 4s - loss: 0.2616 - acc: 0.9000 - ETA: 3s - loss: 0.1508 - acc: 0.9417 - ETA: 3s - loss: 0.1216 - acc: 0.9591 - ETA: 3s - loss: 0.1156 - acc: 0.9687 - ETA: 3s - loss: 0.1168 - acc: 0.9667 - ETA: 3s - loss: 0.1221 - acc: 0.9635 - ETA: 3s - loss: 0.1170 - acc: 0.9645 - ETA: 3s - loss: 0.1167 - acc: 0.9625 - ETA: 3s - loss: 0.1174 - acc: 0.9622 - ETA: 3s - loss: 0.1213 - acc: 0.9609 - ETA: 3s - loss: 0.1271 - acc: 0.9598 - ETA: 3s - loss: 0.1296 - acc: 0.9589 - ETA: 3s - loss: 0.1307 - acc: 0.9582 - ETA: 3s - loss: 0.1324 - acc: 0.9568 - ETA: 2s - loss: 0.1384 - acc: 0.9542 - ETA: 2s - loss: 0.1362 - acc: 0.9546 - ETA: 2s - loss: 0.1374 - acc: 0.9537 - ETA: 2s - loss: 0.1357 - acc: 0.9552 - ETA: 2s - loss: 0.1381 - acc: 0.9538 - ETA: 2s - loss: 0.1440 - acc: 0.9526 - ETA: 2s - loss: 0.1440 - acc: 0.9530 - ETA: 2s - loss: 0.1453 - acc: 0.9533 - ETA: 2s - loss: 0.1477 - acc: 0.9527 - ETA: 2s - loss: 0.1479 - acc: 0.9534 - ETA: 2s - loss: 0.1528 - acc: 0.9521 - ETA: 2s - loss: 0.1555 - acc: 0.9512 - ETA: 2s - loss: 0.1580 - acc: 0.9500 - ETA: 2s - loss: 0.1584 - acc: 0.9500 - ETA: 2s - loss: 0.1624 - acc: 0.9475 - ETA: 2s - loss: 0.1616 - acc: 0.9483 - ETA: 2s - loss: 0.1596 - acc: 0.9493 - ETA: 1s - loss: 0.1589 - acc: 0.9494 - ETA: 1s - loss: 0.1584 - acc: 0.9503 - ETA: 1s - loss: 0.1570 - acc: 0.9512 - ETA: 1s - loss: 0.1551 - acc: 0.9520 - ETA: 1s - loss: 0.1549 - acc: 0.9526 - ETA: 1s - loss: 0.1545 - acc: 0.9530 - ETA: 1s - loss: 0.1580 - acc: 0.9527 - ETA: 1s - loss: 0.1594 - acc: 0.9524 - ETA: 1s - loss: 0.1622 - acc: 0.9513 - ETA: 1s - loss: 0.1632 - acc: 0.9510 - ETA: 1s - loss: 0.1645 - acc: 0.9502 - ETA: 1s - loss: 0.1653 - acc: 0.9495 - ETA: 1s - loss: 0.1671 - acc: 0.9498 - ETA: 1s - loss: 0.1681 - acc: 0.9493 - ETA: 1s - loss: 0.1705 - acc: 0.9489 - ETA: 1s - loss: 0.1733 - acc: 0.9476 - ETA: 1s - loss: 0.1735 - acc: 0.9479 - ETA: 1s - loss: 0.1728 - acc: 0.9483 - ETA: 0s - loss: 0.1728 - acc: 0.9484 - ETA: 0s - loss: 0.1715 - acc: 0.9482 - ETA: 0s - loss: 0.1706 - acc: 0.9484 - ETA: 0s - loss: 0.1715 - acc: 0.9481 - ETA: 0s - loss: 0.1727 - acc: 0.9477 - ETA: 0s - loss: 0.1743 - acc: 0.9476 - ETA: 0s - loss: 0.1738 - acc: 0.9473 - ETA: 0s - loss: 0.1734 - acc: 0.9475 - ETA: 0s - loss: 0.1757 - acc: 0.9470 - ETA: 0s - loss: 0.1764 - acc: 0.9466 - ETA: 0s - loss: 0.1757 - acc: 0.9466 - ETA: 0s - loss: 0.1750 - acc: 0.9467 - ETA: 0s - loss: 0.1751 - acc: 0.9464 - ETA: 0s - loss: 0.1752 - acc: 0.9458 - ETA: 0s - loss: 0.1737 - acc: 0.9462 - ETA: 0s - loss: 0.1729 - acc: 0.9464 - ETA: 0s - loss: 0.1727 - acc: 0.9463 - ETA: 0s - loss: 0.1727 - acc: 0.9462Epoch 00003: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.1742 - acc: 0.9458 - val_loss: 0.7015 - val_acc: 0.8000
Epoch 5/20
6660/6680 [============================>.] - ETA: 3s - loss: 0.0592 - acc: 1.0000 - ETA: 3s - loss: 0.0613 - acc: 0.9917 - ETA: 3s - loss: 0.0642 - acc: 0.9864 - ETA: 3s - loss: 0.0687 - acc: 0.9875 - ETA: 3s - loss: 0.0777 - acc: 0.9762 - ETA: 3s - loss: 0.0756 - acc: 0.9788 - ETA: 3s - loss: 0.0986 - acc: 0.9726 - ETA: 3s - loss: 0.0986 - acc: 0.9708 - ETA: 3s - loss: 0.0991 - acc: 0.9707 - ETA: 3s - loss: 0.1049 - acc: 0.9663 - ETA: 3s - loss: 0.1095 - acc: 0.9647 - ETA: 3s - loss: 0.1097 - acc: 0.9652 - ETA: 3s - loss: 0.1068 - acc: 0.9664 - ETA: 2s - loss: 0.1078 - acc: 0.9654 - ETA: 2s - loss: 0.1061 - acc: 0.9650 - ETA: 2s - loss: 0.1071 - acc: 0.9660 - ETA: 2s - loss: 0.1057 - acc: 0.9656 - ETA: 2s - loss: 0.1073 - acc: 0.9647 - ETA: 2s - loss: 0.1063 - acc: 0.9650 - ETA: 2s - loss: 0.1025 - acc: 0.9668 - ETA: 2s - loss: 0.1048 - acc: 0.9665 - ETA: 2s - loss: 0.1063 - acc: 0.9663 - ETA: 2s - loss: 0.1089 - acc: 0.9653 - ETA: 2s - loss: 0.1061 - acc: 0.9664 - ETA: 2s - loss: 0.1061 - acc: 0.9661 - ETA: 2s - loss: 0.1053 - acc: 0.9659 - ETA: 2s - loss: 0.1072 - acc: 0.9656 - ETA: 2s - loss: 0.1049 - acc: 0.9665 - ETA: 2s - loss: 0.1035 - acc: 0.9670 - ETA: 2s - loss: 0.1022 - acc: 0.9675 - ETA: 2s - loss: 0.1046 - acc: 0.9672 - ETA: 2s - loss: 0.1055 - acc: 0.9670 - ETA: 1s - loss: 0.1063 - acc: 0.9668 - ETA: 1s - loss: 0.1058 - acc: 0.9675 - ETA: 1s - loss: 0.1083 - acc: 0.9673 - ETA: 1s - loss: 0.1079 - acc: 0.9676 - ETA: 1s - loss: 0.1072 - acc: 0.9683 - ETA: 1s - loss: 0.1089 - acc: 0.9680 - ETA: 1s - loss: 0.1089 - acc: 0.9681 - ETA: 1s - loss: 0.1090 - acc: 0.9687 - ETA: 1s - loss: 0.1109 - acc: 0.9677 - ETA: 1s - loss: 0.1157 - acc: 0.9665 - ETA: 1s - loss: 0.1158 - acc: 0.9666 - ETA: 1s - loss: 0.1166 - acc: 0.9660 - ETA: 1s - loss: 0.1158 - acc: 0.9663 - ETA: 1s - loss: 0.1174 - acc: 0.9661 - ETA: 1s - loss: 0.1169 - acc: 0.9660 - ETA: 1s - loss: 0.1165 - acc: 0.9661 - ETA: 1s - loss: 0.1164 - acc: 0.9658 - ETA: 1s - loss: 0.1174 - acc: 0.9654 - ETA: 0s - loss: 0.1191 - acc: 0.9649 - ETA: 0s - loss: 0.1195 - acc: 0.9650 - ETA: 0s - loss: 0.1207 - acc: 0.9647 - ETA: 0s - loss: 0.1212 - acc: 0.9643 - ETA: 0s - loss: 0.1203 - acc: 0.9647 - ETA: 0s - loss: 0.1201 - acc: 0.9647 - ETA: 0s - loss: 0.1215 - acc: 0.9642 - ETA: 0s - loss: 0.1219 - acc: 0.9643 - ETA: 0s - loss: 0.1230 - acc: 0.9642 - ETA: 0s - loss: 0.1231 - acc: 0.9640 - ETA: 0s - loss: 0.1231 - acc: 0.9641 - ETA: 0s - loss: 0.1237 - acc: 0.9640 - ETA: 0s - loss: 0.1254 - acc: 0.9636 - ETA: 0s - loss: 0.1276 - acc: 0.9631 - ETA: 0s - loss: 0.1268 - acc: 0.9632 - ETA: 0s - loss: 0.1268 - acc: 0.9632 - ETA: 0s - loss: 0.1275 - acc: 0.9631 - ETA: 0s - loss: 0.1288 - acc: 0.9626Epoch 00004: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.1286 - acc: 0.9626 - val_loss: 0.6793 - val_acc: 0.8048
Epoch 6/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.1013 - acc: 0.9500 - ETA: 4s - loss: 0.0504 - acc: 0.9800 - ETA: 4s - loss: 0.0570 - acc: 0.9850 - ETA: 3s - loss: 0.0565 - acc: 0.9867 - ETA: 3s - loss: 0.0582 - acc: 0.9850 - ETA: 3s - loss: 0.0694 - acc: 0.9800 - ETA: 3s - loss: 0.0608 - acc: 0.9833 - ETA: 3s - loss: 0.0645 - acc: 0.9814 - ETA: 3s - loss: 0.0631 - acc: 0.9825 - ETA: 3s - loss: 0.0651 - acc: 0.9822 - ETA: 3s - loss: 0.0660 - acc: 0.9820 - ETA: 3s - loss: 0.0662 - acc: 0.9818 - ETA: 3s - loss: 0.0678 - acc: 0.9808 - ETA: 3s - loss: 0.0673 - acc: 0.9808 - ETA: 2s - loss: 0.0649 - acc: 0.9814 - ETA: 2s - loss: 0.0642 - acc: 0.9813 - ETA: 2s - loss: 0.0628 - acc: 0.9816 - ETA: 2s - loss: 0.0612 - acc: 0.9827 - ETA: 2s - loss: 0.0620 - acc: 0.9820 - ETA: 2s - loss: 0.0610 - acc: 0.9824 - ETA: 2s - loss: 0.0601 - acc: 0.9828 - ETA: 2s - loss: 0.0599 - acc: 0.9832 - ETA: 2s - loss: 0.0660 - acc: 0.9812 - ETA: 2s - loss: 0.0665 - acc: 0.9807 - ETA: 2s - loss: 0.0679 - acc: 0.9803 - ETA: 2s - loss: 0.0668 - acc: 0.9806 - ETA: 2s - loss: 0.0659 - acc: 0.9810 - ETA: 2s - loss: 0.0686 - acc: 0.9799 - ETA: 2s - loss: 0.0690 - acc: 0.9795 - ETA: 2s - loss: 0.0680 - acc: 0.9799 - ETA: 2s - loss: 0.0727 - acc: 0.9785 - ETA: 2s - loss: 0.0738 - acc: 0.9782 - ETA: 1s - loss: 0.0752 - acc: 0.9780 - ETA: 1s - loss: 0.0748 - acc: 0.9780 - ETA: 1s - loss: 0.0737 - acc: 0.9787 - ETA: 1s - loss: 0.0736 - acc: 0.9787 - ETA: 1s - loss: 0.0783 - acc: 0.9777 - ETA: 1s - loss: 0.0782 - acc: 0.9774 - ETA: 1s - loss: 0.0775 - acc: 0.9775 - ETA: 1s - loss: 0.0764 - acc: 0.9778 - ETA: 1s - loss: 0.0750 - acc: 0.9784 - ETA: 1s - loss: 0.0743 - acc: 0.9784 - ETA: 1s - loss: 0.0742 - acc: 0.9785 - ETA: 1s - loss: 0.0749 - acc: 0.9778 - ETA: 1s - loss: 0.0752 - acc: 0.9776 - ETA: 1s - loss: 0.0747 - acc: 0.9775 - ETA: 1s - loss: 0.0746 - acc: 0.9773 - ETA: 1s - loss: 0.0746 - acc: 0.9771 - ETA: 1s - loss: 0.0747 - acc: 0.9770 - ETA: 1s - loss: 0.0753 - acc: 0.9770 - ETA: 0s - loss: 0.0776 - acc: 0.9765 - ETA: 0s - loss: 0.0789 - acc: 0.9756 - ETA: 0s - loss: 0.0795 - acc: 0.9754 - ETA: 0s - loss: 0.0791 - acc: 0.9756 - ETA: 0s - loss: 0.0789 - acc: 0.9757 - ETA: 0s - loss: 0.0792 - acc: 0.9756 - ETA: 0s - loss: 0.0812 - acc: 0.9751 - ETA: 0s - loss: 0.0818 - acc: 0.9748 - ETA: 0s - loss: 0.0812 - acc: 0.9751 - ETA: 0s - loss: 0.0834 - acc: 0.9740 - ETA: 0s - loss: 0.0851 - acc: 0.9736 - ETA: 0s - loss: 0.0858 - acc: 0.9735 - ETA: 0s - loss: 0.0863 - acc: 0.9731 - ETA: 0s - loss: 0.0868 - acc: 0.9732 - ETA: 0s - loss: 0.0879 - acc: 0.9733 - ETA: 0s - loss: 0.0873 - acc: 0.9736 - ETA: 0s - loss: 0.0871 - acc: 0.9739 - ETA: 0s - loss: 0.0877 - acc: 0.9735Epoch 00005: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0873 - acc: 0.9737 - val_loss: 0.7172 - val_acc: 0.8012
Epoch 7/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.0192 - acc: 1.0000 - ETA: 3s - loss: 0.0383 - acc: 0.9917 - ETA: 3s - loss: 0.0429 - acc: 0.9900 - ETA: 3s - loss: 0.0358 - acc: 0.9929 - ETA: 3s - loss: 0.0406 - acc: 0.9921 - ETA: 3s - loss: 0.0386 - acc: 0.9935 - ETA: 3s - loss: 0.0459 - acc: 0.9907 - ETA: 3s - loss: 0.0427 - acc: 0.9906 - ETA: 3s - loss: 0.0398 - acc: 0.9917 - ETA: 3s - loss: 0.0414 - acc: 0.9902 - ETA: 3s - loss: 0.0418 - acc: 0.9902 - ETA: 3s - loss: 0.0426 - acc: 0.9900 - ETA: 3s - loss: 0.0410 - acc: 0.9909 - ETA: 3s - loss: 0.0430 - acc: 0.9883 - ETA: 3s - loss: 0.0451 - acc: 0.9885 - ETA: 3s - loss: 0.0442 - acc: 0.9893 - ETA: 3s - loss: 0.0438 - acc: 0.9899 - ETA: 3s - loss: 0.0458 - acc: 0.9885 - ETA: 3s - loss: 0.0461 - acc: 0.9884 - ETA: 3s - loss: 0.0476 - acc: 0.9884 - ETA: 3s - loss: 0.0464 - acc: 0.9888 - ETA: 3s - loss: 0.0480 - acc: 0.9887 - ETA: 3s - loss: 0.0465 - acc: 0.9892 - ETA: 2s - loss: 0.0454 - acc: 0.9896 - ETA: 2s - loss: 0.0451 - acc: 0.9900 - ETA: 2s - loss: 0.0473 - acc: 0.9900 - ETA: 2s - loss: 0.0485 - acc: 0.9895 - ETA: 2s - loss: 0.0481 - acc: 0.9895 - ETA: 2s - loss: 0.0481 - acc: 0.9894 - ETA: 2s - loss: 0.0496 - acc: 0.9886 - ETA: 2s - loss: 0.0508 - acc: 0.9885 - ETA: 2s - loss: 0.0516 - acc: 0.9877 - ETA: 2s - loss: 0.0535 - acc: 0.9866 - ETA: 2s - loss: 0.0561 - acc: 0.9859 - ETA: 2s - loss: 0.0581 - acc: 0.9849 - ETA: 2s - loss: 0.0578 - acc: 0.9850 - ETA: 2s - loss: 0.0584 - acc: 0.9847 - ETA: 2s - loss: 0.0592 - acc: 0.9845 - ETA: 2s - loss: 0.0591 - acc: 0.9843 - ETA: 2s - loss: 0.0602 - acc: 0.9836 - ETA: 2s - loss: 0.0602 - acc: 0.9837 - ETA: 2s - loss: 0.0621 - acc: 0.9833 - ETA: 2s - loss: 0.0629 - acc: 0.9832 - ETA: 1s - loss: 0.0624 - acc: 0.9834 - ETA: 1s - loss: 0.0625 - acc: 0.9832 - ETA: 1s - loss: 0.0621 - acc: 0.9832 - ETA: 1s - loss: 0.0619 - acc: 0.9831 - ETA: 1s - loss: 0.0609 - acc: 0.9835 - ETA: 1s - loss: 0.0616 - acc: 0.9834 - ETA: 1s - loss: 0.0616 - acc: 0.9831 - ETA: 1s - loss: 0.0606 - acc: 0.9835 - ETA: 1s - loss: 0.0608 - acc: 0.9833 - ETA: 1s - loss: 0.0628 - acc: 0.9827 - ETA: 1s - loss: 0.0626 - acc: 0.9828 - ETA: 1s - loss: 0.0631 - acc: 0.9827 - ETA: 1s - loss: 0.0629 - acc: 0.9828 - ETA: 1s - loss: 0.0639 - acc: 0.9826 - ETA: 1s - loss: 0.0634 - acc: 0.9827 - ETA: 1s - loss: 0.0636 - acc: 0.9825 - ETA: 1s - loss: 0.0642 - acc: 0.9820 - ETA: 1s - loss: 0.0658 - acc: 0.9811 - ETA: 0s - loss: 0.0655 - acc: 0.9812 - ETA: 0s - loss: 0.0663 - acc: 0.9809 - ETA: 0s - loss: 0.0660 - acc: 0.9808 - ETA: 0s - loss: 0.0661 - acc: 0.9805 - ETA: 0s - loss: 0.0666 - acc: 0.9803 - ETA: 0s - loss: 0.0660 - acc: 0.9807 - ETA: 0s - loss: 0.0663 - acc: 0.9803 - ETA: 0s - loss: 0.0669 - acc: 0.9798 - ETA: 0s - loss: 0.0672 - acc: 0.9796 - ETA: 0s - loss: 0.0668 - acc: 0.9796 - ETA: 0s - loss: 0.0670 - acc: 0.9796 - ETA: 0s - loss: 0.0665 - acc: 0.9798 - ETA: 0s - loss: 0.0661 - acc: 0.9798 - ETA: 0s - loss: 0.0658 - acc: 0.9800 - ETA: 0s - loss: 0.0667 - acc: 0.9794 - ETA: 0s - loss: 0.0670 - acc: 0.9792Epoch 00006: val_loss did not improve
6680/6680 [==============================] - 4s - loss: 0.0668 - acc: 0.9793 - val_loss: 0.7239 - val_acc: 0.8096
Epoch 8/20
6580/6680 [============================>.] - ETA: 3s - loss: 0.0105 - acc: 1.0000 - ETA: 3s - loss: 0.0250 - acc: 1.0000 - ETA: 3s - loss: 0.0409 - acc: 0.9864 - ETA: 3s - loss: 0.0459 - acc: 0.9875 - ETA: 3s - loss: 0.0430 - acc: 0.9881 - ETA: 3s - loss: 0.0389 - acc: 0.9904 - ETA: 3s - loss: 0.0343 - acc: 0.9919 - ETA: 3s - loss: 0.0408 - acc: 0.9889 - ETA: 3s - loss: 0.0430 - acc: 0.9878 - ETA: 3s - loss: 0.0464 - acc: 0.9859 - ETA: 3s - loss: 0.0446 - acc: 0.9863 - ETA: 3s - loss: 0.0442 - acc: 0.9875 - ETA: 3s - loss: 0.0428 - acc: 0.9877 - ETA: 2s - loss: 0.0406 - acc: 0.9886 - ETA: 2s - loss: 0.0408 - acc: 0.9887 - ETA: 2s - loss: 0.0408 - acc: 0.9882 - ETA: 2s - loss: 0.0433 - acc: 0.9864 - ETA: 2s - loss: 0.0442 - acc: 0.9866 - ETA: 2s - loss: 0.0431 - acc: 0.9874 - ETA: 2s - loss: 0.0460 - acc: 0.9870 - ETA: 2s - loss: 0.0450 - acc: 0.9871 - ETA: 2s - loss: 0.0446 - acc: 0.9868 - ETA: 2s - loss: 0.0440 - acc: 0.9869 - ETA: 2s - loss: 0.0429 - acc: 0.9875 - ETA: 2s - loss: 0.0448 - acc: 0.9872 - ETA: 2s - loss: 0.0471 - acc: 0.9857 - ETA: 2s - loss: 0.0473 - acc: 0.9855 - ETA: 2s - loss: 0.0475 - acc: 0.9857 - ETA: 2s - loss: 0.0473 - acc: 0.9858 - ETA: 2s - loss: 0.0486 - acc: 0.9853 - ETA: 1s - loss: 0.0478 - acc: 0.9858 - ETA: 1s - loss: 0.0483 - acc: 0.9853 - ETA: 1s - loss: 0.0478 - acc: 0.9857 - ETA: 1s - loss: 0.0473 - acc: 0.9860 - ETA: 1s - loss: 0.0464 - acc: 0.9861 - ETA: 1s - loss: 0.0455 - acc: 0.9865 - ETA: 1s - loss: 0.0448 - acc: 0.9869 - ETA: 1s - loss: 0.0442 - acc: 0.9872 - ETA: 1s - loss: 0.0441 - acc: 0.9870 - ETA: 1s - loss: 0.0438 - acc: 0.9871 - ETA: 1s - loss: 0.0433 - acc: 0.9874 - ETA: 1s - loss: 0.0435 - acc: 0.9875 - ETA: 1s - loss: 0.0452 - acc: 0.9868 - ETA: 1s - loss: 0.0459 - acc: 0.9867 - ETA: 1s - loss: 0.0467 - acc: 0.9865 - ETA: 1s - loss: 0.0488 - acc: 0.9862 - ETA: 1s - loss: 0.0493 - acc: 0.9858 - ETA: 1s - loss: 0.0490 - acc: 0.9859 - ETA: 1s - loss: 0.0508 - acc: 0.9854 - ETA: 0s - loss: 0.0503 - acc: 0.9855 - ETA: 0s - loss: 0.0500 - acc: 0.9855 - ETA: 0s - loss: 0.0494 - acc: 0.9858 - ETA: 0s - loss: 0.0505 - acc: 0.9857 - ETA: 0s - loss: 0.0506 - acc: 0.9854 - ETA: 0s - loss: 0.0505 - acc: 0.9855 - ETA: 0s - loss: 0.0502 - acc: 0.9854 - ETA: 0s - loss: 0.0497 - acc: 0.9857 - ETA: 0s - loss: 0.0494 - acc: 0.9859 - ETA: 0s - loss: 0.0488 - acc: 0.9862 - ETA: 0s - loss: 0.0486 - acc: 0.9862 - ETA: 0s - loss: 0.0495 - acc: 0.9858 - ETA: 0s - loss: 0.0497 - acc: 0.9857 - ETA: 0s - loss: 0.0494 - acc: 0.9858 - ETA: 0s - loss: 0.0496 - acc: 0.9857 - ETA: 0s - loss: 0.0497 - acc: 0.9854 - ETA: 0s - loss: 0.0496 - acc: 0.9855 - ETA: 0s - loss: 0.0496 - acc: 0.9854Epoch 00007: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0493 - acc: 0.9856 - val_loss: 0.7364 - val_acc: 0.8180
Epoch 9/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.0752 - acc: 0.9500 - ETA: 3s - loss: 0.0747 - acc: 0.9667 - ETA: 3s - loss: 0.0592 - acc: 0.9792 - ETA: 3s - loss: 0.0500 - acc: 0.9794 - ETA: 3s - loss: 0.0527 - acc: 0.9818 - ETA: 3s - loss: 0.0489 - acc: 0.9852 - ETA: 3s - loss: 0.0439 - acc: 0.9875 - ETA: 3s - loss: 0.0403 - acc: 0.9878 - ETA: 3s - loss: 0.0378 - acc: 0.9881 - ETA: 3s - loss: 0.0388 - acc: 0.9883 - ETA: 2s - loss: 0.0361 - acc: 0.9894 - ETA: 2s - loss: 0.0350 - acc: 0.9895 - ETA: 2s - loss: 0.0340 - acc: 0.9895 - ETA: 2s - loss: 0.0325 - acc: 0.9903 - ETA: 2s - loss: 0.0326 - acc: 0.9903 - ETA: 2s - loss: 0.0310 - acc: 0.9909 - ETA: 2s - loss: 0.0360 - acc: 0.9902 - ETA: 2s - loss: 0.0346 - acc: 0.9908 - ETA: 2s - loss: 0.0336 - acc: 0.9913 - ETA: 2s - loss: 0.0325 - acc: 0.9918 - ETA: 2s - loss: 0.0327 - acc: 0.9917 - ETA: 2s - loss: 0.0354 - acc: 0.9898 - ETA: 2s - loss: 0.0378 - acc: 0.9890 - ETA: 2s - loss: 0.0374 - acc: 0.9892 - ETA: 2s - loss: 0.0373 - acc: 0.9893 - ETA: 2s - loss: 0.0368 - acc: 0.9897 - ETA: 2s - loss: 0.0363 - acc: 0.9898 - ETA: 1s - loss: 0.0360 - acc: 0.9899 - ETA: 1s - loss: 0.0380 - acc: 0.9899 - ETA: 1s - loss: 0.0386 - acc: 0.9894 - ETA: 1s - loss: 0.0391 - acc: 0.9890 - ETA: 1s - loss: 0.0396 - acc: 0.9890 - ETA: 1s - loss: 0.0388 - acc: 0.9893 - ETA: 1s - loss: 0.0387 - acc: 0.9890 - ETA: 1s - loss: 0.0379 - acc: 0.9893 - ETA: 1s - loss: 0.0386 - acc: 0.9888 - ETA: 1s - loss: 0.0410 - acc: 0.9883 - ETA: 1s - loss: 0.0410 - acc: 0.9880 - ETA: 1s - loss: 0.0405 - acc: 0.9881 - ETA: 1s - loss: 0.0399 - acc: 0.9881 - ETA: 1s - loss: 0.0406 - acc: 0.9880 - ETA: 1s - loss: 0.0405 - acc: 0.9881 - ETA: 1s - loss: 0.0403 - acc: 0.9880 - ETA: 1s - loss: 0.0395 - acc: 0.9881 - ETA: 1s - loss: 0.0398 - acc: 0.9879 - ETA: 1s - loss: 0.0397 - acc: 0.9876 - ETA: 1s - loss: 0.0393 - acc: 0.9879 - ETA: 0s - loss: 0.0389 - acc: 0.9881 - ETA: 0s - loss: 0.0388 - acc: 0.9882 - ETA: 0s - loss: 0.0392 - acc: 0.9880 - ETA: 0s - loss: 0.0388 - acc: 0.9881 - ETA: 0s - loss: 0.0386 - acc: 0.9880 - ETA: 0s - loss: 0.0382 - acc: 0.9882 - ETA: 0s - loss: 0.0380 - acc: 0.9883 - ETA: 0s - loss: 0.0383 - acc: 0.9879 - ETA: 0s - loss: 0.0385 - acc: 0.9878 - ETA: 0s - loss: 0.0382 - acc: 0.9878 - ETA: 0s - loss: 0.0383 - acc: 0.9879 - ETA: 0s - loss: 0.0382 - acc: 0.9881 - ETA: 0s - loss: 0.0386 - acc: 0.9880 - ETA: 0s - loss: 0.0401 - acc: 0.9877 - ETA: 0s - loss: 0.0401 - acc: 0.9878 - ETA: 0s - loss: 0.0398 - acc: 0.9878 - ETA: 0s - loss: 0.0406 - acc: 0.9877 - ETA: 0s - loss: 0.0405 - acc: 0.9878Epoch 00008: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0403 - acc: 0.9879 - val_loss: 0.8099 - val_acc: 0.8192
Epoch 10/20
6620/6680 [============================>.] - ETA: 4s - loss: 0.0022 - acc: 1.0000 - ETA: 4s - loss: 0.0161 - acc: 1.0000 - ETA: 4s - loss: 0.0221 - acc: 0.9950 - ETA: 3s - loss: 0.0256 - acc: 0.9933 - ETA: 3s - loss: 0.0230 - acc: 0.9947 - ETA: 3s - loss: 0.0199 - acc: 0.9957 - ETA: 3s - loss: 0.0180 - acc: 0.9963 - ETA: 3s - loss: 0.0176 - acc: 0.9953 - ETA: 3s - loss: 0.0163 - acc: 0.9958 - ETA: 3s - loss: 0.0152 - acc: 0.9963 - ETA: 3s - loss: 0.0153 - acc: 0.9967 - ETA: 3s - loss: 0.0147 - acc: 0.9971 - ETA: 3s - loss: 0.0161 - acc: 0.9964 - ETA: 3s - loss: 0.0176 - acc: 0.9951 - ETA: 3s - loss: 0.0181 - acc: 0.9955 - ETA: 3s - loss: 0.0172 - acc: 0.9958 - ETA: 2s - loss: 0.0201 - acc: 0.9947 - ETA: 2s - loss: 0.0211 - acc: 0.9944 - ETA: 2s - loss: 0.0207 - acc: 0.9948 - ETA: 2s - loss: 0.0202 - acc: 0.9951 - ETA: 2s - loss: 0.0202 - acc: 0.9948 - ETA: 2s - loss: 0.0210 - acc: 0.9946 - ETA: 2s - loss: 0.0205 - acc: 0.9948 - ETA: 2s - loss: 0.0250 - acc: 0.9937 - ETA: 2s - loss: 0.0249 - acc: 0.9940 - ETA: 2s - loss: 0.0241 - acc: 0.9942 - ETA: 2s - loss: 0.0234 - acc: 0.9944 - ETA: 2s - loss: 0.0237 - acc: 0.9943 - ETA: 2s - loss: 0.0250 - acc: 0.9937 - ETA: 2s - loss: 0.0244 - acc: 0.9940 - ETA: 2s - loss: 0.0241 - acc: 0.9942 - ETA: 2s - loss: 0.0236 - acc: 0.9943 - ETA: 2s - loss: 0.0239 - acc: 0.9942 - ETA: 1s - loss: 0.0237 - acc: 0.9943 - ETA: 1s - loss: 0.0234 - acc: 0.9942 - ETA: 1s - loss: 0.0231 - acc: 0.9941 - ETA: 1s - loss: 0.0228 - acc: 0.9943 - ETA: 1s - loss: 0.0240 - acc: 0.9939 - ETA: 1s - loss: 0.0246 - acc: 0.9935 - ETA: 1s - loss: 0.0247 - acc: 0.9937 - ETA: 1s - loss: 0.0244 - acc: 0.9938 - ETA: 1s - loss: 0.0243 - acc: 0.9937 - ETA: 1s - loss: 0.0243 - acc: 0.9937 - ETA: 1s - loss: 0.0240 - acc: 0.9938 - ETA: 1s - loss: 0.0238 - acc: 0.9937 - ETA: 1s - loss: 0.0235 - acc: 0.9939 - ETA: 1s - loss: 0.0236 - acc: 0.9938 - ETA: 1s - loss: 0.0232 - acc: 0.9939 - ETA: 1s - loss: 0.0233 - acc: 0.9939 - ETA: 1s - loss: 0.0237 - acc: 0.9936 - ETA: 0s - loss: 0.0235 - acc: 0.9937 - ETA: 0s - loss: 0.0239 - acc: 0.9934 - ETA: 0s - loss: 0.0243 - acc: 0.9934 - ETA: 0s - loss: 0.0246 - acc: 0.9931 - ETA: 0s - loss: 0.0245 - acc: 0.9930 - ETA: 0s - loss: 0.0246 - acc: 0.9928 - ETA: 0s - loss: 0.0245 - acc: 0.9929 - ETA: 0s - loss: 0.0246 - acc: 0.9927 - ETA: 0s - loss: 0.0253 - acc: 0.9925 - ETA: 0s - loss: 0.0251 - acc: 0.9924 - ETA: 0s - loss: 0.0249 - acc: 0.9926 - ETA: 0s - loss: 0.0249 - acc: 0.9927 - ETA: 0s - loss: 0.0255 - acc: 0.9926 - ETA: 0s - loss: 0.0258 - acc: 0.9926 - ETA: 0s - loss: 0.0269 - acc: 0.9919 - ETA: 0s - loss: 0.0268 - acc: 0.9921 - ETA: 0s - loss: 0.0275 - acc: 0.9919 - ETA: 0s - loss: 0.0282 - acc: 0.9918Epoch 00009: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0284 - acc: 0.9918 - val_loss: 0.7294 - val_acc: 0.8240
Epoch 11/20
6620/6680 [============================>.] - ETA: 3s - loss: 0.0150 - acc: 1.0000 - ETA: 3s - loss: 0.0145 - acc: 0.9917 - ETA: 3s - loss: 0.0128 - acc: 0.9955 - ETA: 3s - loss: 0.0121 - acc: 0.9969 - ETA: 3s - loss: 0.0106 - acc: 0.9976 - ETA: 3s - loss: 0.0095 - acc: 0.9981 - ETA: 3s - loss: 0.0097 - acc: 0.9984 - ETA: 3s - loss: 0.0103 - acc: 0.9986 - ETA: 3s - loss: 0.0166 - acc: 0.9976 - ETA: 3s - loss: 0.0155 - acc: 0.9978 - ETA: 3s - loss: 0.0152 - acc: 0.9980 - ETA: 3s - loss: 0.0163 - acc: 0.9982 - ETA: 3s - loss: 0.0175 - acc: 0.9967 - ETA: 2s - loss: 0.0172 - acc: 0.9962 - ETA: 2s - loss: 0.0179 - acc: 0.9958 - ETA: 2s - loss: 0.0175 - acc: 0.9961 - ETA: 2s - loss: 0.0175 - acc: 0.9963 - ETA: 2s - loss: 0.0172 - acc: 0.9965 - ETA: 2s - loss: 0.0170 - acc: 0.9967 - ETA: 2s - loss: 0.0174 - acc: 0.9964 - ETA: 2s - loss: 0.0188 - acc: 0.9955 - ETA: 2s - loss: 0.0196 - acc: 0.9953 - ETA: 2s - loss: 0.0189 - acc: 0.9955 - ETA: 2s - loss: 0.0191 - acc: 0.9957 - ETA: 2s - loss: 0.0186 - acc: 0.9959 - ETA: 2s - loss: 0.0182 - acc: 0.9960 - ETA: 2s - loss: 0.0190 - acc: 0.9958 - ETA: 2s - loss: 0.0194 - acc: 0.9955 - ETA: 2s - loss: 0.0195 - acc: 0.9953 - ETA: 2s - loss: 0.0203 - acc: 0.9951 - ETA: 2s - loss: 0.0209 - acc: 0.9950 - ETA: 2s - loss: 0.0219 - acc: 0.9948 - ETA: 1s - loss: 0.0215 - acc: 0.9950 - ETA: 1s - loss: 0.0210 - acc: 0.9951 - ETA: 1s - loss: 0.0208 - acc: 0.9953 - ETA: 1s - loss: 0.0217 - acc: 0.9951 - ETA: 1s - loss: 0.0217 - acc: 0.9950 - ETA: 1s - loss: 0.0214 - acc: 0.9951 - ETA: 1s - loss: 0.0209 - acc: 0.9952 - ETA: 1s - loss: 0.0212 - acc: 0.9951 - ETA: 1s - loss: 0.0210 - acc: 0.9950 - ETA: 1s - loss: 0.0211 - acc: 0.9951 - ETA: 1s - loss: 0.0207 - acc: 0.9952 - ETA: 1s - loss: 0.0205 - acc: 0.9953 - ETA: 1s - loss: 0.0203 - acc: 0.9954 - ETA: 1s - loss: 0.0200 - acc: 0.9955 - ETA: 1s - loss: 0.0200 - acc: 0.9954 - ETA: 1s - loss: 0.0206 - acc: 0.9950 - ETA: 1s - loss: 0.0209 - acc: 0.9949 - ETA: 1s - loss: 0.0216 - acc: 0.9948 - ETA: 0s - loss: 0.0215 - acc: 0.9947 - ETA: 0s - loss: 0.0213 - acc: 0.9948 - ETA: 0s - loss: 0.0213 - acc: 0.9947 - ETA: 0s - loss: 0.0210 - acc: 0.9948 - ETA: 0s - loss: 0.0217 - acc: 0.9944 - ETA: 0s - loss: 0.0215 - acc: 0.9945 - ETA: 0s - loss: 0.0213 - acc: 0.9946 - ETA: 0s - loss: 0.0213 - acc: 0.9945 - ETA: 0s - loss: 0.0211 - acc: 0.9946 - ETA: 0s - loss: 0.0209 - acc: 0.9947 - ETA: 0s - loss: 0.0213 - acc: 0.9946 - ETA: 0s - loss: 0.0211 - acc: 0.9947 - ETA: 0s - loss: 0.0219 - acc: 0.9944 - ETA: 0s - loss: 0.0220 - acc: 0.9944 - ETA: 0s - loss: 0.0218 - acc: 0.9945 - ETA: 0s - loss: 0.0216 - acc: 0.9945 - ETA: 0s - loss: 0.0218 - acc: 0.9943 - ETA: 0s - loss: 0.0216 - acc: 0.9944Epoch 00010: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0215 - acc: 0.9945 - val_loss: 0.7583 - val_acc: 0.8204
Epoch 12/20
6660/6680 [============================>.] - ETA: 3s - loss: 0.0017 - acc: 1.0000 - ETA: 3s - loss: 0.0138 - acc: 1.0000 - ETA: 3s - loss: 0.0081 - acc: 1.0000 - ETA: 3s - loss: 0.0075 - acc: 1.0000 - ETA: 3s - loss: 0.0071 - acc: 1.0000 - ETA: 3s - loss: 0.0064 - acc: 1.0000 - ETA: 3s - loss: 0.0061 - acc: 1.0000 - ETA: 3s - loss: 0.0064 - acc: 1.0000 - ETA: 3s - loss: 0.0071 - acc: 1.0000 - ETA: 3s - loss: 0.0071 - acc: 1.0000 - ETA: 3s - loss: 0.0073 - acc: 1.0000 - ETA: 3s - loss: 0.0071 - acc: 1.0000 - ETA: 3s - loss: 0.0074 - acc: 1.0000 - ETA: 3s - loss: 0.0095 - acc: 0.9992 - ETA: 3s - loss: 0.0105 - acc: 0.9985 - ETA: 3s - loss: 0.0098 - acc: 0.9986 - ETA: 3s - loss: 0.0100 - acc: 0.9980 - ETA: 2s - loss: 0.0102 - acc: 0.9976 - ETA: 2s - loss: 0.0101 - acc: 0.9977 - ETA: 2s - loss: 0.0103 - acc: 0.9978 - ETA: 2s - loss: 0.0105 - acc: 0.9975 - ETA: 2s - loss: 0.0108 - acc: 0.9976 - ETA: 2s - loss: 0.0108 - acc: 0.9972 - ETA: 2s - loss: 0.0106 - acc: 0.9974 - ETA: 2s - loss: 0.0103 - acc: 0.9975 - ETA: 2s - loss: 0.0099 - acc: 0.9976 - ETA: 2s - loss: 0.0101 - acc: 0.9973 - ETA: 2s - loss: 0.0108 - acc: 0.9971 - ETA: 2s - loss: 0.0106 - acc: 0.9972 - ETA: 1s - loss: 0.0105 - acc: 0.9973 - ETA: 1s - loss: 0.0115 - acc: 0.9971 - ETA: 1s - loss: 0.0128 - acc: 0.9969 - ETA: 1s - loss: 0.0131 - acc: 0.9967 - ETA: 1s - loss: 0.0131 - acc: 0.9965 - ETA: 1s - loss: 0.0136 - acc: 0.9963 - ETA: 1s - loss: 0.0152 - acc: 0.9962 - ETA: 1s - loss: 0.0156 - acc: 0.9958 - ETA: 1s - loss: 0.0154 - acc: 0.9959 - ETA: 1s - loss: 0.0154 - acc: 0.9957 - ETA: 1s - loss: 0.0151 - acc: 0.9959 - ETA: 1s - loss: 0.0162 - acc: 0.9958 - ETA: 1s - loss: 0.0161 - acc: 0.9959 - ETA: 1s - loss: 0.0162 - acc: 0.9959 - ETA: 1s - loss: 0.0166 - acc: 0.9958 - ETA: 1s - loss: 0.0164 - acc: 0.9957 - ETA: 0s - loss: 0.0167 - acc: 0.9956 - ETA: 0s - loss: 0.0166 - acc: 0.9957 - ETA: 0s - loss: 0.0165 - acc: 0.9958 - ETA: 0s - loss: 0.0167 - acc: 0.9957 - ETA: 0s - loss: 0.0167 - acc: 0.9956 - ETA: 0s - loss: 0.0167 - acc: 0.9955 - ETA: 0s - loss: 0.0170 - acc: 0.9953 - ETA: 0s - loss: 0.0176 - acc: 0.9950 - ETA: 0s - loss: 0.0178 - acc: 0.9949 - ETA: 0s - loss: 0.0179 - acc: 0.9949 - ETA: 0s - loss: 0.0176 - acc: 0.9950 - ETA: 0s - loss: 0.0175 - acc: 0.9951 - ETA: 0s - loss: 0.0175 - acc: 0.9950 - ETA: 0s - loss: 0.0174 - acc: 0.9951 - ETA: 0s - loss: 0.0173 - acc: 0.9950 - ETA: 0s - loss: 0.0171 - acc: 0.9951 - ETA: 0s - loss: 0.0174 - acc: 0.9950Epoch 00011: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0174 - acc: 0.9951 - val_loss: 0.7895 - val_acc: 0.8323
Epoch 13/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.0051 - acc: 1.0000 - ETA: 3s - loss: 0.0300 - acc: 0.9917 - ETA: 3s - loss: 0.0178 - acc: 0.9955 - ETA: 3s - loss: 0.0165 - acc: 0.9937 - ETA: 3s - loss: 0.0134 - acc: 0.9952 - ETA: 3s - loss: 0.0143 - acc: 0.9942 - ETA: 3s - loss: 0.0124 - acc: 0.9952 - ETA: 3s - loss: 0.0112 - acc: 0.9958 - ETA: 3s - loss: 0.0101 - acc: 0.9964 - ETA: 2s - loss: 0.0098 - acc: 0.9968 - ETA: 2s - loss: 0.0097 - acc: 0.9972 - ETA: 2s - loss: 0.0092 - acc: 0.9974 - ETA: 2s - loss: 0.0087 - acc: 0.9976 - ETA: 2s - loss: 0.0094 - acc: 0.9971 - ETA: 2s - loss: 0.0090 - acc: 0.9973 - ETA: 2s - loss: 0.0086 - acc: 0.9974 - ETA: 2s - loss: 0.0092 - acc: 0.9970 - ETA: 2s - loss: 0.0092 - acc: 0.9972 - ETA: 2s - loss: 0.0094 - acc: 0.9973 - ETA: 2s - loss: 0.0097 - acc: 0.9969 - ETA: 2s - loss: 0.0094 - acc: 0.9971 - ETA: 2s - loss: 0.0094 - acc: 0.9972 - ETA: 2s - loss: 0.0101 - acc: 0.9969 - ETA: 2s - loss: 0.0098 - acc: 0.9970 - ETA: 2s - loss: 0.0099 - acc: 0.9971 - ETA: 2s - loss: 0.0097 - acc: 0.9972 - ETA: 2s - loss: 0.0095 - acc: 0.9973 - ETA: 2s - loss: 0.0093 - acc: 0.9974 - ETA: 2s - loss: 0.0099 - acc: 0.9971 - ETA: 2s - loss: 0.0097 - acc: 0.9972 - ETA: 2s - loss: 0.0106 - acc: 0.9970 - ETA: 2s - loss: 0.0108 - acc: 0.9968 - ETA: 1s - loss: 0.0107 - acc: 0.9969 - ETA: 1s - loss: 0.0113 - acc: 0.9967 - ETA: 1s - loss: 0.0111 - acc: 0.9967 - ETA: 1s - loss: 0.0111 - acc: 0.9968 - ETA: 1s - loss: 0.0109 - acc: 0.9969 - ETA: 1s - loss: 0.0116 - acc: 0.9967 - ETA: 1s - loss: 0.0118 - acc: 0.9966 - ETA: 1s - loss: 0.0126 - acc: 0.9964 - ETA: 1s - loss: 0.0134 - acc: 0.9962 - ETA: 1s - loss: 0.0131 - acc: 0.9963 - ETA: 1s - loss: 0.0131 - acc: 0.9964 - ETA: 1s - loss: 0.0128 - acc: 0.9965 - ETA: 1s - loss: 0.0131 - acc: 0.9963 - ETA: 1s - loss: 0.0129 - acc: 0.9964 - ETA: 1s - loss: 0.0144 - acc: 0.9959 - ETA: 1s - loss: 0.0142 - acc: 0.9959 - ETA: 1s - loss: 0.0158 - acc: 0.9956 - ETA: 1s - loss: 0.0157 - acc: 0.9957 - ETA: 0s - loss: 0.0155 - acc: 0.9958 - ETA: 0s - loss: 0.0153 - acc: 0.9959 - ETA: 0s - loss: 0.0151 - acc: 0.9959 - ETA: 0s - loss: 0.0149 - acc: 0.9960 - ETA: 0s - loss: 0.0149 - acc: 0.9959 - ETA: 0s - loss: 0.0148 - acc: 0.9960 - ETA: 0s - loss: 0.0147 - acc: 0.9961 - ETA: 0s - loss: 0.0145 - acc: 0.9961 - ETA: 0s - loss: 0.0145 - acc: 0.9960 - ETA: 0s - loss: 0.0144 - acc: 0.9961 - ETA: 0s - loss: 0.0145 - acc: 0.9960 - ETA: 0s - loss: 0.0144 - acc: 0.9961 - ETA: 0s - loss: 0.0144 - acc: 0.9959 - ETA: 0s - loss: 0.0145 - acc: 0.9958 - ETA: 0s - loss: 0.0144 - acc: 0.9959 - ETA: 0s - loss: 0.0144 - acc: 0.9958 - ETA: 0s - loss: 0.0144 - acc: 0.9957 - ETA: 0s - loss: 0.0142 - acc: 0.9958Epoch 00012: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0142 - acc: 0.9958 - val_loss: 0.7867 - val_acc: 0.8323
Epoch 14/20
6580/6680 [============================>.] - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 3s - loss: 0.0030 - acc: 1.0000 - ETA: 3s - loss: 0.0030 - acc: 1.0000 - ETA: 3s - loss: 0.0110 - acc: 0.9969 - ETA: 3s - loss: 0.0106 - acc: 0.9976 - ETA: 3s - loss: 0.0189 - acc: 0.9942 - ETA: 3s - loss: 0.0206 - acc: 0.9919 - ETA: 3s - loss: 0.0188 - acc: 0.9931 - ETA: 3s - loss: 0.0169 - acc: 0.9939 - ETA: 3s - loss: 0.0164 - acc: 0.9946 - ETA: 3s - loss: 0.0151 - acc: 0.9951 - ETA: 3s - loss: 0.0142 - acc: 0.9955 - ETA: 3s - loss: 0.0133 - acc: 0.9959 - ETA: 2s - loss: 0.0125 - acc: 0.9962 - ETA: 2s - loss: 0.0123 - acc: 0.9965 - ETA: 2s - loss: 0.0117 - acc: 0.9967 - ETA: 2s - loss: 0.0115 - acc: 0.9969 - ETA: 2s - loss: 0.0115 - acc: 0.9965 - ETA: 2s - loss: 0.0125 - acc: 0.9962 - ETA: 2s - loss: 0.0123 - acc: 0.9964 - ETA: 2s - loss: 0.0118 - acc: 0.9965 - ETA: 2s - loss: 0.0115 - acc: 0.9967 - ETA: 2s - loss: 0.0115 - acc: 0.9964 - ETA: 2s - loss: 0.0116 - acc: 0.9961 - ETA: 2s - loss: 0.0113 - acc: 0.9962 - ETA: 2s - loss: 0.0125 - acc: 0.9956 - ETA: 2s - loss: 0.0128 - acc: 0.9950 - ETA: 2s - loss: 0.0124 - acc: 0.9951 - ETA: 2s - loss: 0.0120 - acc: 0.9953 - ETA: 2s - loss: 0.0117 - acc: 0.9955 - ETA: 2s - loss: 0.0115 - acc: 0.9956 - ETA: 1s - loss: 0.0113 - acc: 0.9958 - ETA: 1s - loss: 0.0111 - acc: 0.9959 - ETA: 1s - loss: 0.0108 - acc: 0.9961 - ETA: 1s - loss: 0.0106 - acc: 0.9962 - ETA: 1s - loss: 0.0109 - acc: 0.9960 - ETA: 1s - loss: 0.0107 - acc: 0.9962 - ETA: 1s - loss: 0.0106 - acc: 0.9963 - ETA: 1s - loss: 0.0104 - acc: 0.9964 - ETA: 1s - loss: 0.0102 - acc: 0.9964 - ETA: 1s - loss: 0.0103 - acc: 0.9965 - ETA: 1s - loss: 0.0102 - acc: 0.9966 - ETA: 1s - loss: 0.0101 - acc: 0.9967 - ETA: 1s - loss: 0.0108 - acc: 0.9966 - ETA: 1s - loss: 0.0107 - acc: 0.9967 - ETA: 1s - loss: 0.0106 - acc: 0.9967 - ETA: 1s - loss: 0.0116 - acc: 0.9966 - ETA: 0s - loss: 0.0114 - acc: 0.9967 - ETA: 0s - loss: 0.0114 - acc: 0.9968 - ETA: 0s - loss: 0.0113 - acc: 0.9968 - ETA: 0s - loss: 0.0111 - acc: 0.9969 - ETA: 0s - loss: 0.0119 - acc: 0.9968 - ETA: 0s - loss: 0.0117 - acc: 0.9969 - ETA: 0s - loss: 0.0118 - acc: 0.9967 - ETA: 0s - loss: 0.0117 - acc: 0.9968 - ETA: 0s - loss: 0.0120 - acc: 0.9967 - ETA: 0s - loss: 0.0119 - acc: 0.9968 - ETA: 0s - loss: 0.0117 - acc: 0.9968 - ETA: 0s - loss: 0.0116 - acc: 0.9969 - ETA: 0s - loss: 0.0115 - acc: 0.9968 - ETA: 0s - loss: 0.0116 - acc: 0.9967 - ETA: 0s - loss: 0.0114 - acc: 0.9968 - ETA: 0s - loss: 0.0114 - acc: 0.9968Epoch 00013: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0113 - acc: 0.9969 - val_loss: 0.8175 - val_acc: 0.8216
Epoch 15/20
6620/6680 [============================>.] - ETA: 3s - loss: 8.6075e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0219 - acc: 0.9917     - ETA: 3s - loss: 0.0154 - acc: 0.9955 - ETA: 3s - loss: 0.0152 - acc: 0.9941 - ETA: 3s - loss: 0.0134 - acc: 0.9955 - ETA: 3s - loss: 0.0117 - acc: 0.9964 - ETA: 3s - loss: 0.0101 - acc: 0.9970 - ETA: 2s - loss: 0.0088 - acc: 0.9974 - ETA: 2s - loss: 0.0080 - acc: 0.9977 - ETA: 2s - loss: 0.0091 - acc: 0.9970 - ETA: 2s - loss: 0.0083 - acc: 0.9973 - ETA: 2s - loss: 0.0078 - acc: 0.9976 - ETA: 2s - loss: 0.0074 - acc: 0.9978 - ETA: 2s - loss: 0.0069 - acc: 0.9980 - ETA: 2s - loss: 0.0065 - acc: 0.9981 - ETA: 2s - loss: 0.0065 - acc: 0.9982 - ETA: 2s - loss: 0.0064 - acc: 0.9983 - ETA: 2s - loss: 0.0061 - acc: 0.9984 - ETA: 2s - loss: 0.0066 - acc: 0.9980 - ETA: 2s - loss: 0.0064 - acc: 0.9981 - ETA: 2s - loss: 0.0062 - acc: 0.9982 - ETA: 2s - loss: 0.0061 - acc: 0.9983 - ETA: 2s - loss: 0.0059 - acc: 0.9984 - ETA: 2s - loss: 0.0059 - acc: 0.9984 - ETA: 1s - loss: 0.0092 - acc: 0.9977 - ETA: 1s - loss: 0.0091 - acc: 0.9978 - ETA: 1s - loss: 0.0089 - acc: 0.9979 - ETA: 1s - loss: 0.0089 - acc: 0.9976 - ETA: 1s - loss: 0.0092 - acc: 0.9974 - ETA: 1s - loss: 0.0090 - acc: 0.9975 - ETA: 1s - loss: 0.0096 - acc: 0.9972 - ETA: 1s - loss: 0.0096 - acc: 0.9973 - ETA: 1s - loss: 0.0094 - acc: 0.9974 - ETA: 1s - loss: 0.0097 - acc: 0.9972 - ETA: 1s - loss: 0.0095 - acc: 0.9973 - ETA: 1s - loss: 0.0093 - acc: 0.9973 - ETA: 1s - loss: 0.0091 - acc: 0.9974 - ETA: 1s - loss: 0.0094 - acc: 0.9972 - ETA: 1s - loss: 0.0093 - acc: 0.9973 - ETA: 1s - loss: 0.0095 - acc: 0.9971 - ETA: 1s - loss: 0.0094 - acc: 0.9972 - ETA: 1s - loss: 0.0092 - acc: 0.9972 - ETA: 1s - loss: 0.0092 - acc: 0.9973 - ETA: 1s - loss: 0.0091 - acc: 0.9974 - ETA: 1s - loss: 0.0089 - acc: 0.9974 - ETA: 1s - loss: 0.0088 - acc: 0.9975 - ETA: 0s - loss: 0.0087 - acc: 0.9975 - ETA: 0s - loss: 0.0086 - acc: 0.9976 - ETA: 0s - loss: 0.0087 - acc: 0.9976 - ETA: 0s - loss: 0.0085 - acc: 0.9977 - ETA: 0s - loss: 0.0091 - acc: 0.9975 - ETA: 0s - loss: 0.0092 - acc: 0.9974 - ETA: 0s - loss: 0.0091 - acc: 0.9974 - ETA: 0s - loss: 0.0089 - acc: 0.9975 - ETA: 0s - loss: 0.0088 - acc: 0.9975 - ETA: 0s - loss: 0.0092 - acc: 0.9972 - ETA: 0s - loss: 0.0091 - acc: 0.9973 - ETA: 0s - loss: 0.0090 - acc: 0.9973 - ETA: 0s - loss: 0.0090 - acc: 0.9973 - ETA: 0s - loss: 0.0090 - acc: 0.9974 - ETA: 0s - loss: 0.0090 - acc: 0.9974 - ETA: 0s - loss: 0.0091 - acc: 0.9973 - ETA: 0s - loss: 0.0090 - acc: 0.9974 - ETA: 0s - loss: 0.0091 - acc: 0.9974 - ETA: 0s - loss: 0.0090 - acc: 0.9974Epoch 00014: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0090 - acc: 0.9975 - val_loss: 0.8363 - val_acc: 0.8311
Epoch 16/20
6580/6680 [============================>.] - ETA: 3s - loss: 7.5602e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0015 - acc: 1.0000     - ETA: 3s - loss: 0.0021 - acc: 1.0000 - ETA: 3s - loss: 0.0017 - acc: 1.0000 - ETA: 3s - loss: 0.0157 - acc: 0.9976 - ETA: 3s - loss: 0.0128 - acc: 0.9981 - ETA: 3s - loss: 0.0109 - acc: 0.9984 - ETA: 3s - loss: 0.0095 - acc: 0.9986 - ETA: 3s - loss: 0.0084 - acc: 0.9988 - ETA: 3s - loss: 0.0075 - acc: 0.9989 - ETA: 3s - loss: 0.0069 - acc: 0.9990 - ETA: 3s - loss: 0.0067 - acc: 0.9991 - ETA: 3s - loss: 0.0062 - acc: 0.9992 - ETA: 3s - loss: 0.0067 - acc: 0.9985 - ETA: 2s - loss: 0.0064 - acc: 0.9986 - ETA: 2s - loss: 0.0061 - acc: 0.9987 - ETA: 2s - loss: 0.0061 - acc: 0.9988 - ETA: 2s - loss: 0.0059 - acc: 0.9988 - ETA: 2s - loss: 0.0059 - acc: 0.9989 - ETA: 2s - loss: 0.0057 - acc: 0.9990 - ETA: 2s - loss: 0.0057 - acc: 0.9990 - ETA: 2s - loss: 0.0061 - acc: 0.9991 - ETA: 2s - loss: 0.0059 - acc: 0.9991 - ETA: 2s - loss: 0.0057 - acc: 0.9991 - ETA: 2s - loss: 0.0056 - acc: 0.9992 - ETA: 2s - loss: 0.0054 - acc: 0.9992 - ETA: 2s - loss: 0.0055 - acc: 0.9988 - ETA: 2s - loss: 0.0054 - acc: 0.9989 - ETA: 2s - loss: 0.0053 - acc: 0.9989 - ETA: 2s - loss: 0.0051 - acc: 0.9989 - ETA: 2s - loss: 0.0051 - acc: 0.9990 - ETA: 2s - loss: 0.0051 - acc: 0.9990 - ETA: 2s - loss: 0.0050 - acc: 0.9990 - ETA: 2s - loss: 0.0051 - acc: 0.9987 - ETA: 1s - loss: 0.0050 - acc: 0.9988 - ETA: 1s - loss: 0.0049 - acc: 0.9988 - ETA: 1s - loss: 0.0049 - acc: 0.9989 - ETA: 1s - loss: 0.0060 - acc: 0.9986 - ETA: 1s - loss: 0.0071 - acc: 0.9984 - ETA: 1s - loss: 0.0072 - acc: 0.9982 - ETA: 1s - loss: 0.0093 - acc: 0.9979 - ETA: 1s - loss: 0.0092 - acc: 0.9980 - ETA: 1s - loss: 0.0093 - acc: 0.9978 - ETA: 1s - loss: 0.0092 - acc: 0.9978 - ETA: 1s - loss: 0.0090 - acc: 0.9979 - ETA: 1s - loss: 0.0088 - acc: 0.9979 - ETA: 1s - loss: 0.0093 - acc: 0.9975 - ETA: 1s - loss: 0.0092 - acc: 0.9976 - ETA: 1s - loss: 0.0091 - acc: 0.9976 - ETA: 1s - loss: 0.0089 - acc: 0.9977 - ETA: 1s - loss: 0.0088 - acc: 0.9977 - ETA: 1s - loss: 0.0087 - acc: 0.9978 - ETA: 0s - loss: 0.0086 - acc: 0.9978 - ETA: 0s - loss: 0.0085 - acc: 0.9979 - ETA: 0s - loss: 0.0084 - acc: 0.9979 - ETA: 0s - loss: 0.0087 - acc: 0.9978 - ETA: 0s - loss: 0.0086 - acc: 0.9978 - ETA: 0s - loss: 0.0090 - acc: 0.9976 - ETA: 0s - loss: 0.0089 - acc: 0.9977 - ETA: 0s - loss: 0.0088 - acc: 0.9977 - ETA: 0s - loss: 0.0087 - acc: 0.9977 - ETA: 0s - loss: 0.0087 - acc: 0.9978 - ETA: 0s - loss: 0.0090 - acc: 0.9976 - ETA: 0s - loss: 0.0089 - acc: 0.9977 - ETA: 0s - loss: 0.0088 - acc: 0.9977 - ETA: 0s - loss: 0.0087 - acc: 0.9977 - ETA: 0s - loss: 0.0086 - acc: 0.9978 - ETA: 0s - loss: 0.0085 - acc: 0.9978 - ETA: 0s - loss: 0.0084 - acc: 0.9978 - ETA: 0s - loss: 0.0084 - acc: 0.9979Epoch 00015: val_loss did not improve
6680/6680 [==============================] - 4s - loss: 0.0083 - acc: 0.9979 - val_loss: 0.8458 - val_acc: 0.8359
Epoch 17/20
6600/6680 [============================>.] - ETA: 3s - loss: 1.8027e-04 - acc: 1.0000 - ETA: 3s - loss: 4.9539e-04 - acc: 1.0000 - ETA: 3s - loss: 5.9305e-04 - acc: 1.0000 - ETA: 3s - loss: 9.1264e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0010 - acc: 1.0000     - ETA: 3s - loss: 8.7961e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0011 - acc: 1.0000     - ETA: 3s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0013 - acc: 1.0000 - ETA: 2s - loss: 0.0013 - acc: 1.0000 - ETA: 2s - loss: 0.0013 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0015 - acc: 1.0000 - ETA: 2s - loss: 0.0016 - acc: 1.0000 - ETA: 2s - loss: 0.0020 - acc: 1.0000 - ETA: 2s - loss: 0.0058 - acc: 0.9994 - ETA: 2s - loss: 0.0058 - acc: 0.9995 - ETA: 2s - loss: 0.0057 - acc: 0.9995 - ETA: 2s - loss: 0.0055 - acc: 0.9995 - ETA: 2s - loss: 0.0052 - acc: 0.9995 - ETA: 2s - loss: 0.0051 - acc: 0.9996 - ETA: 2s - loss: 0.0051 - acc: 0.9996 - ETA: 2s - loss: 0.0049 - acc: 0.9996 - ETA: 2s - loss: 0.0048 - acc: 0.9996 - ETA: 1s - loss: 0.0046 - acc: 0.9996 - ETA: 1s - loss: 0.0048 - acc: 0.9993 - ETA: 1s - loss: 0.0051 - acc: 0.9990 - ETA: 1s - loss: 0.0060 - acc: 0.9987 - ETA: 1s - loss: 0.0065 - acc: 0.9985 - ETA: 1s - loss: 0.0067 - acc: 0.9982 - ETA: 1s - loss: 0.0066 - acc: 0.9983 - ETA: 1s - loss: 0.0065 - acc: 0.9983 - ETA: 1s - loss: 0.0064 - acc: 0.9984 - ETA: 1s - loss: 0.0065 - acc: 0.9982 - ETA: 1s - loss: 0.0063 - acc: 0.9982 - ETA: 1s - loss: 0.0062 - acc: 0.9983 - ETA: 1s - loss: 0.0061 - acc: 0.9983 - ETA: 1s - loss: 0.0061 - acc: 0.9984 - ETA: 1s - loss: 0.0064 - acc: 0.9982 - ETA: 1s - loss: 0.0063 - acc: 0.9982 - ETA: 1s - loss: 0.0067 - acc: 0.9980 - ETA: 0s - loss: 0.0066 - acc: 0.9981 - ETA: 0s - loss: 0.0072 - acc: 0.9979 - ETA: 0s - loss: 0.0072 - acc: 0.9980 - ETA: 0s - loss: 0.0075 - acc: 0.9978 - ETA: 0s - loss: 0.0074 - acc: 0.9979 - ETA: 0s - loss: 0.0073 - acc: 0.9979 - ETA: 0s - loss: 0.0073 - acc: 0.9980 - ETA: 0s - loss: 0.0074 - acc: 0.9980 - ETA: 0s - loss: 0.0073 - acc: 0.9981 - ETA: 0s - loss: 0.0077 - acc: 0.9979 - ETA: 0s - loss: 0.0076 - acc: 0.9980 - ETA: 0s - loss: 0.0075 - acc: 0.9980 - ETA: 0s - loss: 0.0075 - acc: 0.9980 - ETA: 0s - loss: 0.0074 - acc: 0.9981 - ETA: 0s - loss: 0.0073 - acc: 0.9981 - ETA: 0s - loss: 0.0072 - acc: 0.9981 - ETA: 0s - loss: 0.0072 - acc: 0.9982 - ETA: 0s - loss: 0.0078 - acc: 0.9980Epoch 00016: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0077 - acc: 0.9981 - val_loss: 0.8752 - val_acc: 0.8084
Epoch 18/20
6600/6680 [============================>.] - ETA: 3s - loss: 0.0077 - acc: 1.0000 - ETA: 3s - loss: 0.0019 - acc: 1.0000 - ETA: 3s - loss: 0.0013 - acc: 1.0000 - ETA: 3s - loss: 0.0016 - acc: 1.0000 - ETA: 3s - loss: 0.0039 - acc: 0.9976 - ETA: 3s - loss: 0.0039 - acc: 0.9981 - ETA: 3s - loss: 0.0107 - acc: 0.9968 - ETA: 3s - loss: 0.0092 - acc: 0.9972 - ETA: 3s - loss: 0.0084 - acc: 0.9976 - ETA: 3s - loss: 0.0095 - acc: 0.9967 - ETA: 2s - loss: 0.0087 - acc: 0.9971 - ETA: 2s - loss: 0.0081 - acc: 0.9973 - ETA: 2s - loss: 0.0075 - acc: 0.9975 - ETA: 2s - loss: 0.0069 - acc: 0.9977 - ETA: 2s - loss: 0.0068 - acc: 0.9979 - ETA: 2s - loss: 0.0064 - acc: 0.9980 - ETA: 2s - loss: 0.0089 - acc: 0.9970 - ETA: 2s - loss: 0.0083 - acc: 0.9972 - ETA: 2s - loss: 0.0079 - acc: 0.9973 - ETA: 2s - loss: 0.0076 - acc: 0.9974 - ETA: 2s - loss: 0.0073 - acc: 0.9976 - ETA: 2s - loss: 0.0070 - acc: 0.9977 - ETA: 2s - loss: 0.0067 - acc: 0.9978 - ETA: 2s - loss: 0.0066 - acc: 0.9979 - ETA: 2s - loss: 0.0063 - acc: 0.9980 - ETA: 2s - loss: 0.0061 - acc: 0.9980 - ETA: 2s - loss: 0.0059 - acc: 0.9981 - ETA: 2s - loss: 0.0058 - acc: 0.9982 - ETA: 2s - loss: 0.0056 - acc: 0.9983 - ETA: 1s - loss: 0.0054 - acc: 0.9983 - ETA: 1s - loss: 0.0053 - acc: 0.9984 - ETA: 1s - loss: 0.0052 - acc: 0.9984 - ETA: 1s - loss: 0.0051 - acc: 0.9985 - ETA: 1s - loss: 0.0057 - acc: 0.9982 - ETA: 1s - loss: 0.0056 - acc: 0.9983 - ETA: 1s - loss: 0.0057 - acc: 0.9981 - ETA: 1s - loss: 0.0056 - acc: 0.9981 - ETA: 1s - loss: 0.0055 - acc: 0.9982 - ETA: 1s - loss: 0.0054 - acc: 0.9982 - ETA: 1s - loss: 0.0059 - acc: 0.9980 - ETA: 1s - loss: 0.0058 - acc: 0.9980 - ETA: 1s - loss: 0.0057 - acc: 0.9981 - ETA: 1s - loss: 0.0056 - acc: 0.9981 - ETA: 1s - loss: 0.0057 - acc: 0.9980 - ETA: 1s - loss: 0.0058 - acc: 0.9978 - ETA: 1s - loss: 0.0061 - acc: 0.9976 - ETA: 0s - loss: 0.0060 - acc: 0.9977 - ETA: 0s - loss: 0.0058 - acc: 0.9977 - ETA: 0s - loss: 0.0057 - acc: 0.9978 - ETA: 0s - loss: 0.0057 - acc: 0.9979 - ETA: 0s - loss: 0.0056 - acc: 0.9979 - ETA: 0s - loss: 0.0054 - acc: 0.9979 - ETA: 0s - loss: 0.0053 - acc: 0.9980 - ETA: 0s - loss: 0.0053 - acc: 0.9980 - ETA: 0s - loss: 0.0054 - acc: 0.9979 - ETA: 0s - loss: 0.0069 - acc: 0.9978 - ETA: 0s - loss: 0.0068 - acc: 0.9978 - ETA: 0s - loss: 0.0067 - acc: 0.9978 - ETA: 0s - loss: 0.0066 - acc: 0.9979 - ETA: 0s - loss: 0.0066 - acc: 0.9979 - ETA: 0s - loss: 0.0065 - acc: 0.9979 - ETA: 0s - loss: 0.0066 - acc: 0.9978 - ETA: 0s - loss: 0.0065 - acc: 0.9978 - ETA: 0s - loss: 0.0065 - acc: 0.9979Epoch 00017: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0064 - acc: 0.9979 - val_loss: 0.8824 - val_acc: 0.8275
Epoch 19/20
6640/6680 [============================>.] - ETA: 3s - loss: 0.0018 - acc: 1.0000 - ETA: 3s - loss: 5.1354e-04 - acc: 1.0000 - ETA: 3s - loss: 6.6561e-04 - acc: 1.0000 - ETA: 3s - loss: 7.1112e-04 - acc: 1.0000 - ETA: 3s - loss: 7.0701e-04 - acc: 1.0000 - ETA: 3s - loss: 6.5139e-04 - acc: 1.0000 - ETA: 3s - loss: 6.2779e-04 - acc: 1.0000 - ETA: 3s - loss: 5.7711e-04 - acc: 1.0000 - ETA: 3s - loss: 5.8424e-04 - acc: 1.0000 - ETA: 3s - loss: 6.1187e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0011 - acc: 1.0000     - ETA: 3s - loss: 0.0011 - acc: 1.0000 - ETA: 3s - loss: 0.0011 - acc: 1.0000 - ETA: 3s - loss: 0.0010 - acc: 1.0000 - ETA: 3s - loss: 9.9680e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0010 - acc: 1.0000     - ETA: 3s - loss: 9.7379e-04 - acc: 1.0000 - ETA: 3s - loss: 9.8334e-04 - acc: 1.0000 - ETA: 3s - loss: 9.7417e-04 - acc: 1.0000 - ETA: 3s - loss: 9.9064e-04 - acc: 1.0000 - ETA: 2s - loss: 9.5125e-04 - acc: 1.0000 - ETA: 2s - loss: 9.5403e-04 - acc: 1.0000 - ETA: 2s - loss: 9.8594e-04 - acc: 1.0000 - ETA: 2s - loss: 9.5794e-04 - acc: 1.0000 - ETA: 2s - loss: 9.6268e-04 - acc: 1.0000 - ETA: 2s - loss: 9.3818e-04 - acc: 1.0000 - ETA: 2s - loss: 9.1576e-04 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000     - ETA: 2s - loss: 0.0011 - acc: 1.0000 - ETA: 2s - loss: 0.0011 - acc: 1.0000 - ETA: 2s - loss: 0.0011 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 2s - loss: 0.0012 - acc: 1.0000 - ETA: 1s - loss: 0.0015 - acc: 0.9997 - ETA: 1s - loss: 0.0016 - acc: 0.9997 - ETA: 1s - loss: 0.0016 - acc: 0.9997 - ETA: 1s - loss: 0.0016 - acc: 0.9997 - ETA: 1s - loss: 0.0034 - acc: 0.9995 - ETA: 1s - loss: 0.0034 - acc: 0.9995 - ETA: 1s - loss: 0.0054 - acc: 0.9990 - ETA: 1s - loss: 0.0053 - acc: 0.9990 - ETA: 1s - loss: 0.0052 - acc: 0.9990 - ETA: 1s - loss: 0.0051 - acc: 0.9991 - ETA: 1s - loss: 0.0050 - acc: 0.9991 - ETA: 1s - loss: 0.0049 - acc: 0.9991 - ETA: 1s - loss: 0.0049 - acc: 0.9991 - ETA: 1s - loss: 0.0048 - acc: 0.9991 - ETA: 1s - loss: 0.0047 - acc: 0.9992 - ETA: 1s - loss: 0.0047 - acc: 0.9992 - ETA: 1s - loss: 0.0049 - acc: 0.9990 - ETA: 0s - loss: 0.0056 - acc: 0.9988 - ETA: 0s - loss: 0.0055 - acc: 0.9988 - ETA: 0s - loss: 0.0056 - acc: 0.9989 - ETA: 0s - loss: 0.0055 - acc: 0.9989 - ETA: 0s - loss: 0.0054 - acc: 0.9989 - ETA: 0s - loss: 0.0053 - acc: 0.9989 - ETA: 0s - loss: 0.0052 - acc: 0.9989 - ETA: 0s - loss: 0.0052 - acc: 0.9990 - ETA: 0s - loss: 0.0051 - acc: 0.9990 - ETA: 0s - loss: 0.0054 - acc: 0.9988 - ETA: 0s - loss: 0.0053 - acc: 0.9988 - ETA: 0s - loss: 0.0052 - acc: 0.9989 - ETA: 0s - loss: 0.0053 - acc: 0.9987 - ETA: 0s - loss: 0.0053 - acc: 0.9987 - ETA: 0s - loss: 0.0052 - acc: 0.9988 - ETA: 0s - loss: 0.0057 - acc: 0.9986 - ETA: 0s - loss: 0.0057 - acc: 0.9986Epoch 00018: val_loss did not improve
6680/6680 [==============================] - 4s - loss: 0.0057 - acc: 0.9987 - val_loss: 0.8890 - val_acc: 0.8228
Epoch 20/20
6660/6680 [============================>.] - ETA: 3s - loss: 5.0399e-04 - acc: 1.0000 - ETA: 3s - loss: 0.0127 - acc: 0.9917     - ETA: 3s - loss: 0.0095 - acc: 0.9955 - ETA: 3s - loss: 0.0066 - acc: 0.9969 - ETA: 3s - loss: 0.0079 - acc: 0.9952 - ETA: 3s - loss: 0.0067 - acc: 0.9962 - ETA: 3s - loss: 0.0057 - acc: 0.9968 - ETA: 3s - loss: 0.0056 - acc: 0.9972 - ETA: 3s - loss: 0.0050 - acc: 0.9976 - ETA: 3s - loss: 0.0046 - acc: 0.9978 - ETA: 3s - loss: 0.0044 - acc: 0.9980 - ETA: 3s - loss: 0.0072 - acc: 0.9973 - ETA: 3s - loss: 0.0066 - acc: 0.9975 - ETA: 3s - loss: 0.0061 - acc: 0.9977 - ETA: 2s - loss: 0.0057 - acc: 0.9979 - ETA: 2s - loss: 0.0054 - acc: 0.9980 - ETA: 2s - loss: 0.0051 - acc: 0.9981 - ETA: 2s - loss: 0.0049 - acc: 0.9982 - ETA: 2s - loss: 0.0046 - acc: 0.9983 - ETA: 2s - loss: 0.0048 - acc: 0.9984 - ETA: 2s - loss: 0.0045 - acc: 0.9985 - ETA: 2s - loss: 0.0044 - acc: 0.9986 - ETA: 2s - loss: 0.0042 - acc: 0.9986 - ETA: 2s - loss: 0.0040 - acc: 0.9987 - ETA: 2s - loss: 0.0081 - acc: 0.9979 - ETA: 2s - loss: 0.0089 - acc: 0.9976 - ETA: 2s - loss: 0.0087 - acc: 0.9977 - ETA: 2s - loss: 0.0085 - acc: 0.9977 - ETA: 2s - loss: 0.0082 - acc: 0.9978 - ETA: 2s - loss: 0.0080 - acc: 0.9979 - ETA: 2s - loss: 0.0077 - acc: 0.9980 - ETA: 2s - loss: 0.0081 - acc: 0.9977 - ETA: 1s - loss: 0.0090 - acc: 0.9975 - ETA: 1s - loss: 0.0087 - acc: 0.9976 - ETA: 1s - loss: 0.0084 - acc: 0.9977 - ETA: 1s - loss: 0.0081 - acc: 0.9978 - ETA: 1s - loss: 0.0091 - acc: 0.9976 - ETA: 1s - loss: 0.0089 - acc: 0.9976 - ETA: 1s - loss: 0.0086 - acc: 0.9977 - ETA: 1s - loss: 0.0084 - acc: 0.9978 - ETA: 1s - loss: 0.0081 - acc: 0.9978 - ETA: 1s - loss: 0.0079 - acc: 0.9979 - ETA: 1s - loss: 0.0078 - acc: 0.9980 - ETA: 1s - loss: 0.0076 - acc: 0.9980 - ETA: 1s - loss: 0.0077 - acc: 0.9978 - ETA: 1s - loss: 0.0075 - acc: 0.9979 - ETA: 0s - loss: 0.0073 - acc: 0.9980 - ETA: 0s - loss: 0.0072 - acc: 0.9980 - ETA: 0s - loss: 0.0070 - acc: 0.9980 - ETA: 0s - loss: 0.0069 - acc: 0.9981 - ETA: 0s - loss: 0.0068 - acc: 0.9981 - ETA: 0s - loss: 0.0066 - acc: 0.9982 - ETA: 0s - loss: 0.0072 - acc: 0.9980 - ETA: 0s - loss: 0.0071 - acc: 0.9981 - ETA: 0s - loss: 0.0070 - acc: 0.9981 - ETA: 0s - loss: 0.0068 - acc: 0.9981 - ETA: 0s - loss: 0.0067 - acc: 0.9982 - ETA: 0s - loss: 0.0066 - acc: 0.9982 - ETA: 0s - loss: 0.0066 - acc: 0.9983 - ETA: 0s - loss: 0.0064 - acc: 0.9983 - ETA: 0s - loss: 0.0063 - acc: 0.9983 - ETA: 0s - loss: 0.0062 - acc: 0.9983Epoch 00019: val_loss did not improve
6680/6680 [==============================] - 3s - loss: 0.0062 - acc: 0.9984 - val_loss: 0.8825 - val_acc: 0.8287
Out[57]:
<keras.callbacks.History at 0x219999e1588>

(IMPLEMENTATION) Load the Model with the Best Validation Loss


In [58]:
### TODO: Load the model weights with the best validation loss.
Resnet_model.load_weights('saved_models/weights.best.resnet.hdf5')

(IMPLEMENTATION) Test the Model

Try out your model on the test dataset of dog images. Ensure that your test accuracy is greater than 60%.


In [59]:
### TODO: Calculate classification accuracy on the test dataset.
Resnet_predictions = [np.argmax(Resnet_model.predict(np.expand_dims(feature, axis=0))) for feature in test_resnet]

# report test accuracy
test_accuracy = 100*np.sum(np.array(Resnet_predictions)==np.argmax(test_targets, axis=1))/len(Resnet_predictions)
print('Test accuracy: %.4f%%' % test_accuracy)


Test accuracy: 77.7512%

(IMPLEMENTATION) Predict Dog Breed with the Model

Write a function that takes an image path as input and returns the dog breed (Affenpinscher, Afghan_hound, etc) that is predicted by your model.

Similar to the analogous function in Step 5, your function should have three steps:

  1. Extract the bottleneck features corresponding to the chosen CNN model.
  2. Supply the bottleneck features as input to the model to return the predicted vector. Note that the argmax of this prediction vector gives the index of the predicted dog breed.
  3. Use the dog_names array defined in Step 0 of this notebook to return the corresponding breed.

The functions to extract the bottleneck features can be found in extract_bottleneck_features.py, and they have been imported in an earlier code cell. To obtain the bottleneck features corresponding to your chosen CNN architecture, you need to use the function

extract_{network}

where {network}, in the above filename, should be one of VGG19, Resnet50, InceptionV3, or Xception.


In [85]:
### TODO: Write a function that takes a path to an image as input
### and returns the dog breed that is predicted by the model.
from extract_bottleneck_features import *

def Resnet_predict_breed(img_path):
    # extract bottleneck features
    bottleneck_feature = extract_Resnet50(path_to_tensor(img_path))
    # obtain predicted vector
    predicted_vector = Resnet_model.predict(bottleneck_feature)
    # return dog breed that is predicted by the model
    return dog_names[np.argmax(predicted_vector)]

Step 6: Write your Algorithm

Write an algorithm that accepts a file path to an image and first determines whether the image contains a human, dog, or neither. Then,

  • if a dog is detected in the image, return the predicted breed.
  • if a human is detected in the image, return the resembling dog breed.
  • if neither is detected in the image, provide output that indicates an error.

You are welcome to write your own functions for detecting humans and dogs in images, but feel free to use the face_detector and dog_detector functions developed above. You are required to use your CNN from Step 5 to predict dog breed.

Some sample output for our algorithm is provided below, but feel free to design your own user experience!

(IMPLEMENTATION) Write your Algorithm


In [97]:
def show_image(img_path):
    img = cv2.imread(img_path)
    img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
    plt.imshow(img)
    plt.show()

In [98]:
### TODO: Write your algorithm.
### Feel free to use as many code cells as needed.
def predict_breed(img_path):
    if(face_detector(img_path) == True):
        print("\nHello Human!")
        show_image(img_path);
        print("You look like a...\n", Resnet_predict_breed(img_path))
        
    elif(dog_detector(img_path)):
        print("\nHello Dog!")
        print("Your predicted breed is...\n", Resnet_predict_breed(img_path))
        show_image(img_path);
    else:
        print("Error: could not detect human or dog!")

In [100]:
predict_breed('images/Curly-coated_retriever_03896.jpg')


Hello Dog!
Your predicted breed is...
 Curly-coated_retriever

Step 7: Test Your Algorithm

In this section, you will take your new algorithm for a spin! What kind of dog does the algorithm think that you look like? If you have a dog, does it predict your dog's breed accurately? If you have a cat, does it mistakenly think that your cat is a dog?

(IMPLEMENTATION) Test Your Algorithm on Sample Images!

Test your algorithm at least six images on your computer. Feel free to use any images you like. Use at least two human and two dog images.

Question 6: Is the output better than you expected :) ? Or worse :( ? Provide at least three possible points of improvement for your algorithm.

Answer: I have tried testing the model with 3 dogs and 3 humans and it seems that:

  • model is able to correctly classify two dog breeds but fails to classify one out of three dogs.
  • model tried finding dogs who resembles to given human.

I believe we can improve the model as follows:

  • Have more samples of each breeds
  • Augmenting the training data
  • We can add more layers instead of using just once dense layer in Transfer Lerarning
  • We can try different loss function or optimizers of the model

In [105]:
## TODO: Execute your algorithm from Step 6 on
## at least 6 images on your computer.
## Feel free to use as many code cells as needed.
img_paths = ['images/Curly-coated_retriever_03896.jpg', 'images/VKV.jpg', 'images/ARJ.jpg', 'images/KYA.jpg',
             'images/American_water_spaniel_00648.jpg', 'images/Labrador_retriever_06449.jpg']
for path in img_paths:
    predict_breed(path)


Hello Dog!
Your predicted breed is...
 Curly-coated_retriever
Hello Human!
You look like a...
 Silky_terrier

Hello Human!
You look like a...
 Xoloitzcuintli

Hello Human!
You look like a...
 Basenji

Hello Dog!
Your predicted breed is...
 Boykin_spaniel
Hello Dog!
Your predicted breed is...
 Labrador_retriever

References: