未验证 提交 8c6220bd 编写于 作者: S shangliang Xu 提交者: GitHub

[dev] fix serving python no_obj bug (#7513)

上级 b6cbb1a5
......@@ -202,6 +202,8 @@ class DetectorOp(Op):
result.append(
f"{int(line[0])} {line[1]} "
f"{line[2]} {line[3]} {line[4]} {line[5]}")
if len(result) == 0:
result = 'No object detected!'
results[img_name] = result
idx += num
return results
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册