In [2]:
%matplotlib inline

from keras.models import Sequential
from keras.layers import *
from keras.preprocessing.image import ImageDataGenerator

from keras.utils import np_utils
from scipy import io
import numpy as np
from sklearn.cross_validation import train_test_split
import string
import cv2
import os
import sys

import matplotlib.pyplot as plt

import seaborn as sns
sns.set_style("white")


/home/ertadm/PycharmProjects/tryponet2/venv/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)

In [3]:
import progressbar

def load_folder(folder):
    bar = progressbar.ProgressBar()
    images = []
    i = 0
    for file in bar(os.listdir(folder)):
        image = cv2.imread(os.path.join(folder, file))
        if(image is not None):
            image = cv2.resize(image, (resolution_x, resolution_y), interpolation=cv2.INTER_LINEAR)
            image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
            images.append(image)
    return np.array(images)

In [7]:
fobia_folder = "/home/ert/Pobrane/rips_old/trypophobic/train"
normal_folder = "/home/ert/Pobrane/rips_old/data_train/reddit_sub_pics"
fobia_folder_val = "/home/ert/Pobrane/rips_old/trypophobic/valid"
normal_folder_val = "/home/ert/Pobrane/rips_old/data_valid/reddit_sub_pics"
resolution_x = 250
resolution_y = 250
fobia_images = load_folder(fobia_folder) /255.
normal_images = load_folder(normal_folder) /255.
fobia_images_val = load_folder(fobia_folder_val) /255.
normal_images_val = load_folder(normal_folder_val) /255.


---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-7-c2157a51fe6a> in <module>()
      5 resolution_x = 250
      6 resolution_y = 250
----> 7 fobia_images = load_folder(fobia_folder) /255.
      8 normal_images = load_folder(normal_folder) /255.
      9 fobia_images_val = load_folder(fobia_folder_val) /255.

<ipython-input-3-ba9dfd40f627> in load_folder(folder)
      5     images = []
      6     i = 0
----> 7     for file in bar(os.listdir(folder)):
      8         image = cv2.imread(os.path.join(folder, file))
      9         if(image is not None):

FileNotFoundError: [Errno 2] No such file or directory: '/home/ert/Pobrane/rips_old/trypophobic/train'

In [5]:
def image_to_X_Y(fobia_images, normal_images):
    X_train = [] 
    Y_train = [] # 1,0 -> fobia | 0,1 -> normal
    for img in fobia_images:
        X_train.append(img)
        Y_train.append([1,0])
    for img in normal_images:
        X_train.append(img)
        Y_train.append([0,1])
    X_train = np.array(X_train)
    Y_train = np.array(Y_train)
    return X_train, Y_train

X_train, Y_train = image_to_X_Y(fobia_images, normal_images)
X_test, Y_test = image_to_X_Y(fobia_images_val, normal_images_val)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-5-59d44d591149> in <module>()
     12     return X_train, Y_train
     13 
---> 14 X_train, Y_train = image_to_X_Y(fobia_images, normal_images)
     15 X_test, Y_test = image_to_X_Y(fobia_images_val, normal_images_val)

NameError: name 'fobia_images' is not defined

In [5]:
model = Sequential()
model.add(Convolution2D(8, 3, 3, border_mode='same',
          input_shape=(resolution_x, resolution_y, 3)))
#model.add(Convolution2D(8, 3, 3, border_mode='same'))
#model.add(Convolution2D(16, 3, 3, border_mode='same'))
#model.add(Activation('relu'))
model.add(Convolution2D(32, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Convolution2D(50, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(Convolution2D(50, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Convolution2D(80, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(Convolution2D(80, 3, 3, border_mode='same'))
model.add(Activation('relu'))
#model.add(MaxPooling2D(pool_size=(2, 2)))
#model.add(Convolution2D(128, 1, 1, border_mode='same'))
#model.add(Activation('relu'))
#model.add(Convolution2D(128, 3, 3, border_mode='same'))
#model.add(Activation('relu'))
#model.add(Convolution2D(128, 3, 3, border_mode='same'))
#model.add(Activation('relu'))
#model.add(Dropout(0.25))
model.add(GlobalAveragePooling2D())
#model.add(Flatten())
#for i in range(1):
#    model.add(Dense(128))
#    model.add(Activation('relu'))
#    #model.add(Dropout(0.1))
#for i in range(1):
#    model.add(Dense(32))
#    model.add(Activation('relu'))
model.add(Dense(2))
model.add(Activation('softmax'))
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

In [6]:
from keras_sequential_ascii import sequential_model_to_ascii_printout
sequential_model_to_ascii_printout(model)


      OPERATION           DATA DIMENSIONS   WEIGHTS(N)   WEIGHTS(%)

          Input   #####   (250, 250, 3)
  Convolution2D    \|/  -------------------       224     0.2%
                  #####   (250, 250, 8)
  Convolution2D    \|/  -------------------      2336     1.8%
           relu   #####   (250, 250, 32)
   MaxPooling2D   YYYYY -------------------         0     0.0%
                  #####   (125, 125, 32)
  Convolution2D    \|/  -------------------     14450    10.8%
           relu   #####   (125, 125, 50)
  Convolution2D    \|/  -------------------     22550    16.9%
           relu   #####   (125, 125, 50)
   MaxPooling2D   YYYYY -------------------         0     0.0%
                  #####   (62, 62, 50)
  Convolution2D    \|/  -------------------     36080    27.0%
           relu   #####   (62, 62, 80)
  Convolution2D    \|/  -------------------     57680    43.2%
           relu   #####   (62, 62, 80)
GlobalAveragePooling2D   ????? -------------------         0     0.0%
                  #####   (80,)
          Dense   XXXXX -------------------       162     0.1%
        softmax   #####   (2,)

In [13]:
history = model.fit(X_train, Y_train,
                    nb_epoch=50,
                    batch_size=32,
                    validation_data=(X_test, Y_test))


Train on 1440 samples, validate on 290 samples
Epoch 1/50
1440/1440 [==============================] - 96s - loss: 0.3547 - acc: 0.8549 - val_loss: 0.3885 - val_acc: 0.8172
Epoch 2/50
1440/1440 [==============================] - 87s - loss: 0.3249 - acc: 0.8639 - val_loss: 0.3030 - val_acc: 0.8828
Epoch 3/50
1440/1440 [==============================] - 87s - loss: 0.3132 - acc: 0.8722 - val_loss: 0.3032 - val_acc: 0.8724
Epoch 4/50
1440/1440 [==============================] - 87s - loss: 0.3219 - acc: 0.8660 - val_loss: 0.3389 - val_acc: 0.8517
Epoch 5/50
1440/1440 [==============================] - 87s - loss: 0.3199 - acc: 0.8722 - val_loss: 0.3256 - val_acc: 0.8414
Epoch 6/50
1440/1440 [==============================] - 87s - loss: 0.3334 - acc: 0.8542 - val_loss: 0.3037 - val_acc: 0.8759
Epoch 7/50
1440/1440 [==============================] - 87s - loss: 0.3293 - acc: 0.8535 - val_loss: 0.3022 - val_acc: 0.8759
Epoch 8/50
1440/1440 [==============================] - 87s - loss: 0.3362 - acc: 0.8632 - val_loss: 0.3478 - val_acc: 0.8724
Epoch 9/50
1440/1440 [==============================] - 87s - loss: 0.3262 - acc: 0.8660 - val_loss: 0.3023 - val_acc: 0.8759
Epoch 10/50
1440/1440 [==============================] - 87s - loss: 0.3204 - acc: 0.8708 - val_loss: 0.2994 - val_acc: 0.8655
Epoch 11/50
1440/1440 [==============================] - 87s - loss: 0.3160 - acc: 0.8757 - val_loss: 0.2937 - val_acc: 0.8690
Epoch 12/50
1440/1440 [==============================] - 87s - loss: 0.3199 - acc: 0.8708 - val_loss: 0.3203 - val_acc: 0.8759
Epoch 13/50
1440/1440 [==============================] - 87s - loss: 0.3106 - acc: 0.8750 - val_loss: 0.2985 - val_acc: 0.8759
Epoch 14/50
1440/1440 [==============================] - 87s - loss: 0.3102 - acc: 0.8708 - val_loss: 0.3030 - val_acc: 0.8621
Epoch 15/50
1440/1440 [==============================] - 87s - loss: 0.3049 - acc: 0.8722 - val_loss: 0.3276 - val_acc: 0.8690
Epoch 16/50
1440/1440 [==============================] - 87s - loss: 0.3189 - acc: 0.8667 - val_loss: 0.3258 - val_acc: 0.8448
Epoch 17/50
1440/1440 [==============================] - 87s - loss: 0.3220 - acc: 0.8653 - val_loss: 0.2905 - val_acc: 0.8759
Epoch 18/50
1440/1440 [==============================] - 87s - loss: 0.3131 - acc: 0.8715 - val_loss: 0.2898 - val_acc: 0.8862
Epoch 19/50
1440/1440 [==============================] - 87s - loss: 0.3133 - acc: 0.8694 - val_loss: 0.2980 - val_acc: 0.8690
Epoch 20/50
1440/1440 [==============================] - 87s - loss: 0.2936 - acc: 0.8708 - val_loss: 0.2908 - val_acc: 0.8655
Epoch 21/50
1440/1440 [==============================] - 87s - loss: 0.3034 - acc: 0.8715 - val_loss: 0.3192 - val_acc: 0.8655
Epoch 22/50
1440/1440 [==============================] - 87s - loss: 0.3073 - acc: 0.8785 - val_loss: 0.3050 - val_acc: 0.8759
Epoch 23/50
1440/1440 [==============================] - 87s - loss: 0.3057 - acc: 0.8715 - val_loss: 0.2914 - val_acc: 0.8828
Epoch 24/50
1440/1440 [==============================] - 87s - loss: 0.3064 - acc: 0.8715 - val_loss: 0.2832 - val_acc: 0.8724
Epoch 25/50
1440/1440 [==============================] - 87s - loss: 0.2929 - acc: 0.8889 - val_loss: 0.2768 - val_acc: 0.8828
Epoch 26/50
1440/1440 [==============================] - 87s - loss: 0.2803 - acc: 0.8924 - val_loss: 0.2907 - val_acc: 0.8586
Epoch 27/50
1440/1440 [==============================] - 87s - loss: 0.2834 - acc: 0.8833 - val_loss: 0.2904 - val_acc: 0.8793
Epoch 28/50
1440/1440 [==============================] - 87s - loss: 0.2865 - acc: 0.8847 - val_loss: 0.2830 - val_acc: 0.9000
Epoch 29/50
1440/1440 [==============================] - 87s - loss: 0.2863 - acc: 0.8826 - val_loss: 0.2947 - val_acc: 0.8793
Epoch 30/50
1408/1440 [============================>.] - ETA: 1s - loss: 0.2839 - acc: 0.8786 
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-13-fa8deb0d7700> in <module>()
      2                     nb_epoch=50,
      3                     batch_size=32,
----> 4                     validation_data=(X_test, Y_test))

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/keras/models.py in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, **kwargs)
    662                               shuffle=shuffle,
    663                               class_weight=class_weight,
--> 664                               sample_weight=sample_weight)
    665 
    666     def evaluate(self, x, y, batch_size=32, verbose=1,

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/keras/engine/training.py in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch)
   1141                               val_f=val_f, val_ins=val_ins, shuffle=shuffle,
   1142                               callback_metrics=callback_metrics,
-> 1143                               initial_epoch=initial_epoch)
   1144 
   1145     def evaluate(self, x, y, batch_size=32, verbose=1, sample_weight=None):

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/keras/engine/training.py in _fit_loop(self, f, ins, out_labels, batch_size, nb_epoch, verbose, callbacks, val_f, val_ins, shuffle, callback_metrics, initial_epoch)
    855                         val_outs = self._test_loop(val_f, val_ins,
    856                                                    batch_size=batch_size,
--> 857                                                    verbose=0)
    858                         if not isinstance(val_outs, list):
    859                             val_outs = [val_outs]

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/keras/engine/training.py in _test_loop(self, f, ins, batch_size, verbose)
    940                 ins_batch = slice_X(ins, batch_ids)
    941 
--> 942             batch_outs = f(ins_batch)
    943             if isinstance(batch_outs, list):
    944                 if batch_index == 0:

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py in __call__(self, inputs)
   1601         session = get_session()
   1602         updated = session.run(self.outputs + [self.updates_op],
-> 1603                               feed_dict=feed_dict)
   1604         return updated[:len(self.outputs)]
   1605 

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
    764     try:
    765       result = self._run(None, fetches, feed_dict, options_ptr,
--> 766                          run_metadata_ptr)
    767       if run_metadata:
    768         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
    962     if final_fetches or final_targets:
    963       results = self._do_run(handle, final_targets, final_fetches,
--> 964                              feed_dict_string, options, run_metadata)
    965     else:
    966       results = []

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
   1012     if handle is None:
   1013       return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
-> 1014                            target_list, options, run_metadata)
   1015     else:
   1016       return self._do_call(_prun_fn, self._session, handle, feed_dict,

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args)
   1019   def _do_call(self, fn, *args):
   1020     try:
-> 1021       return fn(*args)
   1022     except errors.OpError as e:
   1023       message = compat.as_text(e.message)

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
   1001         return tf_session.TF_Run(session, options,
   1002                                  feed_dict, fetch_list, target_list,
-> 1003                                  status, run_metadata)
   1004 
   1005     def _prun_fn(session, handle, feed_dict, fetch_list):

KeyboardInterrupt: 

In [10]:
#model.save("model_simple_85p_wyciete")

In [40]:
# util function to convert a tensor into a valid image
def deprocess_image(x):
    # normalize tensor: center on 0., ensure std is 0.1
    x.transpose((2, 0, 1))
    x -= x.mean()
    x /= (x.std() + 1e-5)
    x *= 0.1

    # clip to [0, 1]
    x += 0.5
    x = np.clip(x, 0, 1)

    # convert to RGB array
    x *= 255
    #x = x.transpose((2, 1, 0))
    x = np.clip(x, 0, 255).astype('uint8')
    return x

def draw_layer_conv(layer,model=model, filter_index=0):
    first_layer = model.layers[0]
    # this is a placeholder tensor that will contain our generated images
    input_img = first_layer.input
    # build a loss function that maximizes the activation
    # of the nth filter of the layer considered
    layer_output = layer.output
    loss = K.mean(layer_output[:, filter_index, :, :])
    # compute the gradient of the input picture wrt this loss
    grads = K.gradients(loss, input_img)[0]
    # normalization trick: we normalize the gradient
    grads /= (K.sqrt(K.mean(K.square(grads))) + 1e-5)
    # this function returns the loss and grads given the input picture
    iterate = K.function([input_img], [loss, grads])
    
    # we start from a gray image with some noise
    input_img_data = np.random.random((1, resolution_x, resolution_y, 3)) * 20 + 128.
    # run gradient ascent for 20 steps
    for i in range(50):
        loss_value, grads_value = iterate([input_img_data])
        input_img_data += grads_value * 10
        
    img = input_img_data[0]
    img = deprocess_image(img)
    return img

def draw_layer_dense(layer, model=model, filter_index=0):
    first_layer = model.layers[0]
    # this is a placeholder tensor that will contain our generated images
    input_img = first_layer.input
    # build a loss function that maximizes the activation
    layer_output = layer.output
    loss = K.mean(layer_output)
    # compute the gradient of the input picture wrt this loss
    grads = K.gradients(loss, input_img)[0]
    # normalization trick: we normalize the gradient
    grads /= (K.sqrt(K.mean(K.square(grads))) + 1e-5)
    # this function returns the loss and grads given the input picture
    iterate = K.function([input_img], [loss, grads])
    
    # we start from a gray image with some noise
    input_img_data = np.random.random((1, resolution_x, resolution_y, 3)) * 20 + 128.
    # run gradient ascent for 20 steps
    for i in range(100):
        loss_value, grads_value = iterate([input_img_data])
        input_img_data += grads_value * 0.5
        
    img = input_img_data[0]
    img = deprocess_image(img)
    return img

In [26]:
import matplotlib.pyplot as plt
#print(model.layers[13].shape)
plt.figure(figsize=(20,20))
for i in range(9,18):
    plt.subplot(3,3,(i%9)+1)
    plt.imshow(draw_layer_conv(model.layers[11],i))



In [17]:
len(model.layers)


Out[17]:
16

In [28]:
plt.figure(figsize=(15,15))
plt.imshow(draw_layer_dense(model.layers[13]))


Out[28]:
<matplotlib.image.AxesImage at 0x7ff6fe043c18>

In [ ]:
model = load_model("model_simple_85p_wyciete")
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

In [6]:
from quiver_engine import server
server.launch(model2,input_folder="/home/ert/Pobrane/rips/data_valid/reddit_sub_trypophobia/")


Starting webserver from: /home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine
::1 - - [2017-01-19 22:37:06] "GET / HTTP/1.1" 200 802 0.015767
::1 - - [2017-01-19 22:37:12] "GET /model HTTP/1.1" 200 10318 0.019681
::1 - - [2017-01-19 22:37:12] "GET /inputs HTTP/1.1" 200 5650 0.003682
::1 - - [2017-01-19 22:38:42] "GET /layer/convolution2d_30/5huoew-9ead379813714a469a2bb41e51c91560.jpg HTTP/1.1" 200 2502 2.713046
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
[2017-01-19 22:38:44,560] ERROR in app: Exception on /predict/5huoew-9ead379813714a469a2bb41e51c91560.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
::1 - - [2017-01-19 22:38:45] "GET /predict/5huoew-9ead379813714a469a2bb41e51c91560.jpg HTTP/1.1" 500 444 2.374158
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_0_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 997 0.018438
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_1_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1000 0.001530
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_2_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1010 0.001348
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_3_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 995 0.001174
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_4_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 993 0.001640
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_10_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1006 0.001378
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_26_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 977 0.002733
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_20_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 984 0.003243
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_13_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1009 0.002612
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_6_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 996 0.003469
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_17_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1045 0.001342
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_5_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1001 0.001159
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_18_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 999 0.002138
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_28_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1069 0.001139
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_11_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 984 0.000868
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_22_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1011 0.000832
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_14_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1045 0.000916
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_15_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 991 0.004963
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_29_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1025 0.001395
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_31_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1008 0.001569
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_12_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 989 0.001972
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_27_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1006 0.002010
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_9_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1013 0.002091
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_23_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1001 0.002294
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_21_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 989 0.002111
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_30_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 999 0.001012
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_16_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1002 0.001584
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_24_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1009 0.002963
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_7_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1021 0.001564
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_8_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1068 0.001665
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_19_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 983 0.001675
::1 - - [2017-01-19 22:38:45] "GET /temp-file/convolution2d_30_25_5huoew-9ead379813714a469a2bb41e51c91560.jpg.png HTTP/1.1" 200 1003 0.002727
[2017-01-19 22:38:50,318] ERROR in app: Exception on /predict/5o9zgw-this-buttery-english-muffin-photo-u1.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:38:50] "GET /predict/5o9zgw-this-buttery-english-muffin-photo-u1.jpg HTTP/1.1" 500 444 0.064240
::1 - - [2017-01-19 22:38:50] "GET /layer/convolution2d_30/5o9zgw-this-buttery-english-muffin-photo-u1.jpg HTTP/1.1" 200 2630 0.229968
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_0_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1122 0.001741
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_1_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1092 0.001766
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_2_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1146 0.001849
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_3_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1141 0.001698
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_4_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1115 0.001789
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_5_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1148 0.001972
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_6_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1116 0.001707
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_7_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1085 0.001898
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_10_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1139 0.003271
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_9_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1118 0.003327
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_8_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1156 0.001823
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_11_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1116 0.002018
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_12_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1118 0.002320
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_27_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1116 0.002685
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_19_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1105 0.001598
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_24_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1093 0.002627
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_29_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1111 0.002264
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_14_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1130 0.001989
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_13_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1130 0.005516
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_15_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1128 0.001632
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_25_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1117 0.002350
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_18_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1130 0.002728
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_28_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1126 0.003097
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_23_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1092 0.002043
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_16_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1131 0.003600
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_20_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1115 0.001830
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_17_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1170 0.001730
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_26_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1117 0.001581
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_21_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1098 0.001585
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_22_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1126 0.001924
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_31_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1150 0.001611
::1 - - [2017-01-19 22:38:50] "GET /temp-file/convolution2d_30_30_5o9zgw-this-buttery-english-muffin-photo-u1.jpg.png HTTP/1.1" 200 1115 0.001660
[2017-01-19 22:38:54,819] ERROR in app: Exception on /predict/5eg9ni-afk1ugpmxbzx.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:38:54] "GET /predict/5eg9ni-afk1ugpmxbzx.jpg HTTP/1.1" 500 444 0.387702
::1 - - [2017-01-19 22:38:55] "GET /layer/convolution2d_30/5eg9ni-afk1ugpmxbzx.jpg HTTP/1.1" 200 1862 0.479633
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_0_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1012 0.001631
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_5_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1038 0.001743
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_4_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1018 0.001625
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_3_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1020 0.001608
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_2_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1038 0.001633
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_1_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1040 0.007016
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_6_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1015 0.001570
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_8_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1085 0.001633
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_7_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 999 0.001735
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_9_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1037 0.001657
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_11_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1030 0.001600
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_10_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1038 0.002754
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_12_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1000 0.001631
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_13_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1020 0.001570
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_14_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1037 0.001603
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_15_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1008 0.001546
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_16_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1045 0.001631
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_21_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1001 0.003559
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_18_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1023 0.004715
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_17_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1095 0.001575
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_24_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1055 0.001729
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_30_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1002 0.001704
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_23_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1009 0.002761
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_29_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1048 0.001781
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_20_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1028 0.004691
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_22_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1022 0.001607
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_19_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1002 0.002431
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_27_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1004 0.002331
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_31_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1038 0.001538
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_25_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1024 0.002583
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_28_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1027 0.001491
::1 - - [2017-01-19 22:38:55] "GET /temp-file/convolution2d_30_26_5eg9ni-afk1ugpmxbzx.jpg.png HTTP/1.1" 200 1005 0.001621
[2017-01-19 22:39:09,376] ERROR in app: Exception on /layer/globalaveragepooling2d_3/5eg9ni-afk1ugpmxbzx.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 112, in get_layer_outputs
    for z in range(0, layer_outputs.shape[2]):
IndexError: tuple index out of range
::1 - - [2017-01-19 22:39:09] "GET /layer/globalaveragepooling2d_3/5eg9ni-afk1ugpmxbzx.jpg HTTP/1.1" 500 444 0.480614
[2017-01-19 22:39:13,296] ERROR in app: Exception on /predict/5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:39:13] "GET /predict/5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg HTTP/1.1" 500 444 0.134118
[2017-01-19 22:39:13,503] ERROR in app: Exception on /layer/globalaveragepooling2d_3/5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 112, in get_layer_outputs
    for z in range(0, layer_outputs.shape[2]):
IndexError: tuple index out of range
::1 - - [2017-01-19 22:39:13] "GET /layer/globalaveragepooling2d_3/5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg HTTP/1.1" 500 444 0.208150
::1 - - [2017-01-19 22:39:15] "GET /layer/activation_28/5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg HTTP/1.1" 200 2406 0.225806
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_0_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.001798
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_1_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 1021 0.001836
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_3_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.002057
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_2_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.001869
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_4_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.001882
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_5_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.001836
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_6_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 373 0.001853
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_27_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001398
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_13_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001782
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_10_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.005017
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_11_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 378 0.001793
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_30_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.003021
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_19_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.006757
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_25_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001904
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_26_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001136
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_12_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001750
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_14_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.003115
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_21_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 565 0.001658
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_17_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 1017 0.001719
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_28_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 857 0.001050
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_8_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 391 0.002223
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_15_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001577
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_31_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.002099
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_24_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 927 0.001853
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_23_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 856 0.003455
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_16_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 526 0.001744
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_20_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001676
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_9_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 852 0.001665
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_29_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 844 0.003692
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_18_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.002570
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_7_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 574 0.001499
::1 - - [2017-01-19 22:39:15] "GET /temp-file/activation_28_22_5e7sqb-9d295ab488ca447c84bc97c3945c7c48.jpg.png HTTP/1.1" 200 372 0.001634
[2017-01-19 22:39:17,802] ERROR in app: Exception on /predict/5h26yg-TspzfEh.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:39:17] "GET /predict/5h26yg-TspzfEh.jpg HTTP/1.1" 500 444 0.449003
::1 - - [2017-01-19 22:39:18] "GET /layer/activation_28/5h26yg-TspzfEh.jpg HTTP/1.1" 200 1606 0.540237
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_0_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001742
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_1_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1141 0.001854
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_2_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001829
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_3_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001773
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_4_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001741
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_5_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001693
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_6_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.001643
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_24_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 519 0.001870
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_19_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.001679
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_11_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001709
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_14_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.003331
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_29_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 426 0.003253
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_10_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001739
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_18_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.002110
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_16_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 376 0.001427
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_12_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001690
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_21_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 380 0.001769
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_17_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 916 0.001537
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_13_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.002070
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_27_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.001907
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_20_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.002897
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_26_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.002885
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_9_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 430 0.001919
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_7_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 452 0.003703
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_25_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001791
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_30_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.004497
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_28_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 454 0.001923
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_31_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.001928
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_8_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 388 0.001897
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_23_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 401 0.001870
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_22_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 372 0.003070
::1 - - [2017-01-19 22:39:18] "GET /temp-file/activation_28_15_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 371 0.001814
::1 - - [2017-01-19 22:39:19] "GET /layer/convolution2d_29/5h26yg-TspzfEh.jpg HTTP/1.1" 200 3270 0.647794
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_0_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1153 0.001830
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_1_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1138 0.002354
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_2_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1128 0.002219
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_3_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1161 0.001677
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_4_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1159 0.001642
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_5_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1159 0.001795
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_6_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1140 0.003056
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_16_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1120 0.003074
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_9_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1130 0.001648
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_25_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1135 0.001544
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_20_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1190 0.001673
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_12_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1125 0.001611
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_15_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1126 0.001986
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_22_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1140 0.001640
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_27_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1159 0.002210
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_18_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1116 0.001743
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_30_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1164 0.001967
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_36_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1144 0.001816
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_19_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1120 0.001759
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_17_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1190 0.001699
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_37_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1126 0.001532
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_13_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1163 0.001576
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_8_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1156 0.001479
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_24_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1140 0.003493
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_39_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1090 0.001611
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_23_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1136 0.004109
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_33_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1135 0.002867
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_29_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1131 0.001617
::1 - - [2017-01-19 22:39:19] "GET /temp-file/convolution2d_29_11_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1158 0.001561
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_38_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1160 0.001957
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_10_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1091 0.001286
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_14_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1136 0.002803
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_31_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1131 0.001804
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_32_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1121 0.001493
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_35_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1179 0.001959
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_34_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1149 0.002105
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_26_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1147 0.001507
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_28_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1104 0.001499
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_21_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1129 0.001091
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_7_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1196 0.002858
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_40_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1117 0.001668
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_41_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1141 0.002353
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_42_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1130 0.001691
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_43_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1145 0.002104
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_44_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1152 0.001769
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_45_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1122 0.001402
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_46_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1091 0.001376
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_47_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1156 0.001783
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_48_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1093 0.002404
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_49_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1092 0.001666
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_50_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1126 0.001398
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_51_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1094 0.002070
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_52_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1143 0.002924
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_53_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1096 0.001619
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_54_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1151 0.002434
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_55_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1136 0.001531
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_56_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1132 0.003209
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_57_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1149 0.003746
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_58_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1142 0.001779
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_59_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1133 0.002629
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_60_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1158 0.001782
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_61_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1138 0.001815
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_62_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1088 0.001778
::1 - - [2017-01-19 22:39:20] "GET /temp-file/convolution2d_29_63_5h26yg-TspzfEh.jpg.png HTTP/1.1" 200 1112 0.005422
[2017-01-19 22:39:21,247] ERROR in app: Exception on /predict/5hs1bq-R4l8bHU.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:39:21] "GET /predict/5hs1bq-R4l8bHU.jpg HTTP/1.1" 500 444 0.132736
::1 - - [2017-01-19 22:39:21] "GET /layer/convolution2d_29/5hs1bq-R4l8bHU.jpg HTTP/1.1" 200 3270 0.204290
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_0_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1112 0.001061
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_1_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1125 0.001678
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_3_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1152 0.001675
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_2_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1091 0.001612
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_4_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1150 0.001657
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_6_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1170 0.001685
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_5_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1142 0.001687
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_7_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1146 0.003033
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_8_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1151 0.004900
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_9_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1093 0.002836
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_14_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1119 0.003871
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_13_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1140 0.002846
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_12_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1122 0.001831
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_11_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1126 0.001755
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_10_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1068 0.001988
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_15_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1092 0.001815
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_16_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1118 0.001742
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_17_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1166 0.003281
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_20_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1156 0.001421
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_19_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1129 0.000996
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_18_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1072 0.018468
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_21_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1105 0.002376
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_22_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1106 0.003583
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_25_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1111 0.001792
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_24_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1096 0.001617
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_23_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1109 0.002584
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_26_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1101 0.001981
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_27_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1123 0.001692
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_29_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1109 0.001617
::1 - - [2017-01-19 22:39:21] "GET /temp-file/convolution2d_29_28_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1072 0.001544
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_30_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1160 0.001740
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_38_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1123 0.002473
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_34_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1125 0.002043
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_33_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1103 0.001719
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_36_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1115 0.001678
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_35_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1175 0.003268
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_31_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1117 0.001709
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_37_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1093 0.003774
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_32_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1130 0.003603
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_39_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1061 0.002010
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_46_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1066 0.002912
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_44_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1103 0.001848
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_47_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1118 0.001662
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_45_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1096 0.001382
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_43_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1141 0.001516
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_48_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1071 0.001650
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_41_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1099 0.001822
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_49_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1087 0.001482
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_40_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1137 0.001611
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_52_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1123 0.003250
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_54_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1109 0.001782
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_53_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1069 0.001804
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_42_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1094 0.005938
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_50_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1115 0.002322
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_59_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1106 0.003044
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_55_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1111 0.001787
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_57_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1121 0.001652
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_58_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1181 0.001719
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_56_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1115 0.001753
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_51_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1059 0.001623
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_62_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1073 0.001670
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_63_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1076 0.001943
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_61_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1184 0.004801
::1 - - [2017-01-19 22:39:22] "GET /temp-file/convolution2d_29_60_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1112 0.002041
::1 - - [2017-01-19 22:39:30] "GET /layer/convolution2d_30/5hs1bq-R4l8bHU.jpg HTTP/1.1" 200 1702 0.198501
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_0_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1123 0.002860
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_4_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1111 0.002107
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_3_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1125 0.001788
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_2_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1132 0.001921
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_1_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1052 0.001694
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_13_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1110 0.001557
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_21_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1115 0.001544
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_19_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1104 0.001674
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_22_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1119 0.001558
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_8_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1161 0.001582
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_26_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1099 0.001499
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_5_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1130 0.001232
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_12_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1105 0.001637
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_27_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1115 0.001634
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_9_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1049 0.001611
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_20_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1113 0.001657
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_15_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1077 0.001783
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_16_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1085 0.002961
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_18_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1124 0.001194
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_17_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1034 0.001551
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_25_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1120 0.001234
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_23_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1064 0.001550
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_29_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1096 0.001575
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_14_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1121 0.001570
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_30_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1112 0.001242
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_7_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1108 0.001336
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_28_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1148 0.001372
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_11_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1100 0.003905
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_6_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1062 0.001819
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_31_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1132 0.001520
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_10_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1130 0.002471
::1 - - [2017-01-19 22:39:30] "GET /temp-file/convolution2d_30_24_5hs1bq-R4l8bHU.jpg.png HTTP/1.1" 200 1044 0.001446
[2017-01-19 22:39:32,462] ERROR in app: Exception on /predict/5gq5jz-mNQ6Xtp.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:39:32] "GET /predict/5gq5jz-mNQ6Xtp.jpg HTTP/1.1" 500 444 0.411089
::1 - - [2017-01-19 22:39:32] "GET /layer/convolution2d_30/5gq5jz-mNQ6Xtp.jpg HTTP/1.1" 200 1702 0.455546
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_0_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1077 0.001955
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_1_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1007 0.003389
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_2_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1058 0.001676
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_3_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1074 0.001622
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_4_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1066 0.001677
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_5_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1069 0.001684
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_6_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1086 0.001779
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_18_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1079 0.006857
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_9_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1059 0.001401
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_23_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1043 0.001501
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_28_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1040 0.002753
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_12_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1061 0.001551
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_11_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1068 0.002133
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_25_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1083 0.004107
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_17_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1054 0.001524
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_8_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1070 0.001777
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_7_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1024 0.002635
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_22_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1079 0.002434
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_20_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1066 0.002502
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_24_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1038 0.003752
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_27_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1069 0.003224
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_29_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1068 0.001539
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_15_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1082 0.001560
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_21_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1041 0.001574
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_10_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1079 0.002518
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_16_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1077 0.001629
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_31_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1068 0.005093
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_30_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1057 0.004416
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_13_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1076 0.001800
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_19_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1060 0.001745
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_26_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1057 0.002153
::1 - - [2017-01-19 22:39:33] "GET /temp-file/convolution2d_30_14_5gq5jz-mNQ6Xtp.jpg.png HTTP/1.1" 200 1098 0.005077
[2017-01-19 22:39:57,783] ERROR in app: Exception on /predict/58ymqc-E9osU20h.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:39:57] "GET /predict/58ymqc-E9osU20h.jpg HTTP/1.1" 500 444 0.039625
::1 - - [2017-01-19 22:39:57] "GET /layer/convolution2d_30/58ymqc-E9osU20h.jpg HTTP/1.1" 200 1734 0.207927
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_0_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 956 0.003351
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_1_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 953 0.002860
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_2_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 963 0.002023
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_3_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 966 0.001655
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_4_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 949 0.001689
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_6_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 963 0.002179
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_5_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 954 0.001580
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_7_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 984 0.001655
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_8_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 962 0.001630
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_9_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 966 0.001658
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_10_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 973 0.001827
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_11_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 958 0.002645
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_12_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 958 0.001706
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_13_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 961 0.002964
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_14_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 983 0.001578
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_15_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 954 0.001808
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_16_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 962 0.001722
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_17_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 988 0.001912
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_18_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 963 0.001838
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_19_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 951 0.001978
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_20_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 956 0.001858
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_21_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 954 0.001733
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_22_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 963 0.001663
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_23_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 962 0.001727
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_24_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 975 0.001751
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_25_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 960 0.001676
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_26_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 958 0.001925
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_27_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 959 0.001799
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_31_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 951 0.001631
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_30_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 946 0.001634
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_28_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 1007 0.001716
::1 - - [2017-01-19 22:39:58] "GET /temp-file/convolution2d_30_29_58ymqc-E9osU20h.jpg.png HTTP/1.1" 200 971 0.003604
[2017-01-19 22:40:03,405] ERROR in app: Exception on /predict/5a0o4c-WqPUosc.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:40:03] "GET /predict/5a0o4c-WqPUosc.jpg HTTP/1.1" 500 444 0.278449
::1 - - [2017-01-19 22:40:03] "GET /layer/convolution2d_30/5a0o4c-WqPUosc.jpg HTTP/1.1" 200 1702 0.335782
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_0_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1089 0.001612
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_1_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1088 0.001629
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_2_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1109 0.001748
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_3_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1096 0.001771
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_4_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1085 0.002655
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_5_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1095 0.001727
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_6_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1086 0.001712
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_7_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1053 0.001804
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_8_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1141 0.001979
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_9_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1045 0.001987
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_10_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1107 0.001736
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_11_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1065 0.001526
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_12_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1065 0.001625
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_13_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1083 0.002548
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_14_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1117 0.001689
::1 - - [2017-01-19 22:40:03] "GET /temp-file/convolution2d_30_15_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1092 0.001667
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_16_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1084 0.001477
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_17_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1068 0.001644
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_18_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1107 0.001370
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_19_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1051 0.001614
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_20_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1084 0.001857
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_21_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1027 0.002271
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_22_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1073 0.001803
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_23_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1021 0.001963
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_24_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1060 0.001728
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_27_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1085 0.001562
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_26_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1057 0.001478
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_25_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1075 0.001632
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_30_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1054 0.002772
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_28_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1072 0.001061
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_31_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1118 0.003452
::1 - - [2017-01-19 22:40:04] "GET /temp-file/convolution2d_30_29_5a0o4c-WqPUosc.jpg.png HTTP/1.1" 200 1058 0.001453
[2017-01-19 22:40:06,948] ERROR in app: Exception on /predict/5o9zgw-this-buttery-english-muffin-photo-u1.jpg [GET]
Traceback (most recent call last):
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 135, in get_prediction
    model.predict(input_img), classes, top
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py", line 176, in decode_predictions
    return decode_imagenet_predictions(preds, top)
  File "/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/imagenet_utils.py", line 42, in decode_imagenet_predictions
    'Found array with shape: ' + str(preds.shape))
ValueError: `decode_predictions` expects a batch of predictions (i.e. a 2D array of shape (samples, 1000)). Found array with shape: (1, 2)
Warning! you didn't pass your own set of classes for the model therefore imagenet classes are used
::1 - - [2017-01-19 22:40:06] "GET /predict/5o9zgw-this-buttery-english-muffin-photo-u1.jpg HTTP/1.1" 500 444 0.059088
::1 - - [2017-01-19 22:40:07] "GET /layer/convolution2d_30/5o9zgw-this-buttery-english-muffin-photo-u1.jpg HTTP/1.1" 200 2630 0.228698
KeyboardInterrupt
Thu Jan 19 22:40:14 2017
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-6-c40af43b74b0> in <module>()
      1 from quiver_engine import server
----> 2 server.launch(model2,input_folder="/home/ert/Pobrane/rips/data_valid/reddit_sub_trypophobia/")

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py in launch(model, classes, top, temp_folder, input_folder, port, html_base_dir)
    163         get_app(model, classes, top, html_base_dir=html_base_dir,
    164                 temp_folder=temp_folder, input_folder=input_folder),
--> 165         port
    166     )
    167 

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/quiver_engine/server.py in run_app(app, port)
    145     http_server = WSGIServer(('', port), app)
    146     webbrowser.open_new('http://localhost:' + str(port))
--> 147     http_server.serve_forever()
    148 
    149 

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/gevent/baseserver.py in serve_forever(self, stop_timeout)
    360             self.start()
    361         try:
--> 362             self._stop_event.wait()
    363         finally:
    364             Greenlet.spawn(self.stop, timeout=stop_timeout).join()

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/gevent/event.py in wait(self, timeout)
    217             noticeable when the *timeout* is present.
    218         """
--> 219         return self._wait(timeout)
    220 
    221     def _reset_internal_locks(self): # pragma: no cover

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/gevent/event.py in _wait(self, timeout)
    127             return self._wait_return_value(False, False)
    128 
--> 129         gotit = self._wait_core(timeout)
    130         return self._wait_return_value(True, gotit)
    131 

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/gevent/event.py in _wait_core(self, timeout, catch)
    104             try:
    105                 try:
--> 106                     result = self.hub.switch()
    107                     if result is not self: # pragma: no cover
    108                         raise InvalidSwitchError('Invalid switch into Event.wait(): %r' % (result, ))

/home/ert/.conda/envs/tensorflow/lib/python3.5/site-packages/gevent/hub.py in switch(self)
    628         if switch_out is not None:
    629             switch_out()
--> 630         return RawGreenlet.switch(self)
    631 
    632     def switch_out(self):

KeyboardInterrupt: 

In [1]:
from keras.models import load_model
model2 = load_model("model_92p_wyciete")


Using TensorFlow backend.
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-b876f86112e8> in <module>()
      1 from keras.models import load_model
----> 2 model2 = load_model("model_92p_wyciete")

~/PycharmProjects/tryponet2/venv/lib/python3.6/site-packages/keras/models.py in load_model(filepath, custom_objects, compile)
    231             return custom_objects[obj]
    232         return obj
--> 233     with h5py.File(filepath, mode='r') as f:
    234         # instantiate model
    235         model_config = f.attrs.get('model_config')

~/PycharmProjects/tryponet2/venv/lib/python3.6/site-packages/h5py/_hl/files.py in __init__(self, name, mode, driver, libver, userblock_size, swmr, **kwds)
    267             with phil:
    268                 fapl = make_fapl(driver, libver, **kwds)
--> 269                 fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
    270 
    271                 if swmr_support:

~/PycharmProjects/tryponet2/venv/lib/python3.6/site-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
     97         if swmr and swmr_support:
     98             flags |= h5f.ACC_SWMR_READ
---> 99         fid = h5f.open(name, flags, fapl=fapl)
    100     elif mode == 'r+':
    101         fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (unable to open file: name = 'model_92p_wyciete', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

In [31]:
len(model2.layers)


Out[31]:
27

In [50]:
plt.figure(figsize=(20,20))
for i in range(9,18):
    plt.subplot(3,3,(i%9)+1)
    plt.imshow(draw_layer_conv(model2.layers[15],model2,i))



In [5]:
plt.figure(figsize=(15,15))
plt.imshow(draw_layer_dense(model.layers[13]))


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-5-e8e475af07f1> in <module>()
----> 1 plt.figure(figsize=(15,15))
      2 plt.imshow(draw_layer_dense(model.layers[13]))

NameError: name 'plt' is not defined

In [1]:
draw_layer_dense(model.layers[13])


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-5c0ab3122944> in <module>()
----> 1 draw_layer_dense(model.layers[13])

NameError: name 'draw_layer_dense' is not defined

In [ ]: