mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-07-07 00:06:46 +08:00
Initial test coverage for new configuration system
This commit is contained in:
committed by
Madison May
parent
6b9251f4f5
commit
dc47fe5b0a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user