We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e40aac commit 429f9cbCopy full SHA for 429f9cb
paddlex/inference/models/object_detection/predictor.py
@@ -245,7 +245,7 @@ def process(
245
boxes = self.post_op(
246
preds_list,
247
datas,
248
- threshold=threshold or self.threshold,
+ threshold=threshold if threshold is not None else self.threshold,
249
layout_nms=layout_nms or self.layout_nms,
250
layout_unclip_ratio=layout_unclip_ratio or self.layout_unclip_ratio,
251
layout_merge_bboxes_mode=layout_merge_bboxes_mode
0 commit comments