Initial test coverage for new configuration system

This commit is contained in:
Anne Carlson
2015-02-26 18:50:20 -05:00
committed by Madison May
parent 6b9251f4f5
commit dc47fe5b0a
7 changed files with 192 additions and 112 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ def normalize(array, distribution=1, norm_range=(0, 1), **kwargs):
def image_preprocess(image, batch=False):
"""
Takes an image and prepares it for sending to the api including
Takes an image and prepares it for sending to the api including
resizing and image data/structure standardizing.
"""
if batch:
@@ -137,4 +137,4 @@ def image_preprocess(image, batch=False):
image = image[:,:,:3]
image = resize(image,(64,64))
image = image.tolist()
return image
return image