Skip to content
Permalink
Browse files

fix(test): fix broken code

  • Loading branch information...
hanxiao committed Aug 2, 2019
1 parent e35b31c commit a0fdad36d4f5d139012cdc540266bb836c2ebf41
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/test_onnx_image_encoder.py
@@ -8,7 +8,6 @@
from gnes.preprocessor.image.sliding_window import VanillaSlidingPreprocessor
from gnes.proto import gnes_pb2, blob2array


def img_process_for_test(dirname):
zipfile_ = zipfile.ZipFile(os.path.join(dirname, 'imgs/test.zip'))
all_bytes = [zipfile_.open(v).read() for v in zipfile_.namelist()]
@@ -28,8 +27,8 @@ def img_process_for_test(dirname):
for img in test_img_copy:
preprocessor.apply(img)
test_img_all_preprocessor.append([blob2array(chunk.blob)
for img in

for img in test_img_copy for chunk in img.chunks])
return test_img_all_preprocessor

class TestONNXImageEncoder(unittest.TestCase):

0 comments on commit a0fdad3

Please sign in to comment.
You can’t perform that action at this time.