From 4978849f80d9e69364a1a3a3af1aba62766d7f35 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 14 Sep 2020 03:02:49 +0000 Subject: [PATCH] fix imagenet demo --- python/examples/imagenet/resnet50_web_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/examples/imagenet/resnet50_web_service.py b/python/examples/imagenet/resnet50_web_service.py index a3f4709c..d38dcc0f 100644 --- a/python/examples/imagenet/resnet50_web_service.py +++ b/python/examples/imagenet/resnet50_web_service.py @@ -30,7 +30,7 @@ else: class ImageService(WebService): def init_imagenet_setting(self): self.seq = Sequential([ - Base64ToImage(), Resize(256), CenterCrop(224), RGB2BGR(), Transpose( + URL2Image(), Resize(256), CenterCrop(224), RGB2BGR(), Transpose( (2, 0, 1)), Div(255), Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225], True) ]) -- GitLab