logo
Browse Source

Update the test script

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 3 years ago
parent
commit
8c9dafe2b4
  1. 5
      test_image_embedding_pipeline_yaml.py

5
test_image_embedding_pipeline_yaml.py

@ -3,5 +3,6 @@ from towhee import pipeline
def test_image_embedding_resnet50(repo_name='towhee/image-embedding-pipeline-template', img_path='./test_data/test.jpg', dimension=2048):
embedding_pipeline = pipeline(repo_name)
embedding = embedding_pipeline(img_path)
assert (1, dimension)==embedding[0].shape
(embedding,) = embedding_pipeline(img_path)
# get the output shape in README
assert (dimension,)==embedding[0].shape

Loading…
Cancel
Save