[to #42322933] modify img_embedding type for image_reid_person

modify img_embedding type for image_reid_person
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10477972
This commit is contained in:
lee.lcy
2022-10-20 21:12:14 +08:00
committed by yingda.chen
parent 2b49b322a2
commit 0bc9660fcc

View File

@@ -53,6 +53,7 @@ class ImageReidPersonPipeline(Pipeline):
def forward(self, input: Dict[str, Any]) -> Dict[str, Any]:
img = input['img']
img_embedding = self.model(img)
img_embedding = img_embedding.detach().cpu().numpy()
return {OutputKeys.IMG_EMBEDDING: img_embedding}
def postprocess(self, inputs: Dict[str, Any]) -> Dict[str, Any]: