提交 f8a4485a 编写于 作者: G gaotingquan 提交者: Tingquan Gao

debug: should not use == to check None obj

上级 c1a8ce4c
......@@ -751,7 +751,7 @@ class PaddleClas(object):
prediction result(s) is zipped as a dict, that includs topk "class_ids", "scores" and "label_names".
The format of batch prediction result(s) is as follow: [{"class_ids": [...], "scores": [...], "label_names": [...]}, ...]
"""
if input_data == None and self._config.Global.infer_imgs:
if input_data is None and self._config.Global.infer_imgs:
input_data = self._config.Global.infer_imgs
if isinstance(input_data, np.ndarray):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册