mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
Fixed the incorrect infer outputs
This commit is contained in:
parent
57504f2648
commit
6e6586f59b
@ -520,10 +520,11 @@ class Engine(object):
|
|||||||
out = out["logits"]
|
out = out["logits"]
|
||||||
if isinstance(out, dict) and "output" in out:
|
if isinstance(out, dict) and "output" in out:
|
||||||
out = out["output"]
|
out = out["output"]
|
||||||
result = self.postprocess_func(out, image_file_list)
|
|
||||||
print(result)
|
results.extend(self.postprocess_func(out, image_file_list))
|
||||||
batch_data.clear()
|
batch_data.clear()
|
||||||
image_file_list.clear()
|
image_file_list.clear()
|
||||||
|
return results
|
||||||
|
|
||||||
def export(self):
|
def export(self):
|
||||||
assert self.mode == "export"
|
assert self.mode == "export"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user