output both scores and image features
This commit is contained in:
@@ -327,9 +327,11 @@ class OutfitMaterTypeAware(OutfitMatcher):
|
||||
# 输出集
|
||||
outputs = [
|
||||
httpclient.InferRequestedOutput("output__0", binary_data=True),
|
||||
httpclient.InferRequestedOutput("output__1", binary_data=True),
|
||||
]
|
||||
results = client.infer(model_name="outfit_matcher_type_aware", inputs=inputs, outputs=outputs)
|
||||
# 推理
|
||||
# 取结果
|
||||
scores = torch.from_numpy(results.as_numpy("output__0"))
|
||||
return scores # Shape (N, 1)
|
||||
scores = torch.from_numpy(results.as_numpy("output__0")) # Shape (N, 1)
|
||||
features = torch.from_numpy(results.as_numpy("output__1")) # Shape (N, -1, 64)
|
||||
return scores, features
|
||||
|
||||
Reference in New Issue
Block a user