mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-10-03 12:00:44 +08:00
Initial test coverage for new configuration system
This commit is contained in:
1 parent
6b9251f4f5
commit
dc47fe5b0a
7 files changed
+192
-112
No files matched your search
@@ -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