mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-24 20:19:22 +01:00
[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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user