Skip to content

Commit 58a2415

Browse files
committed
fix: update multiclass_nms op
1 parent 31c9da3 commit 58a2415

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/paddlejs-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@paddlejs/paddlejs-core",
3-
"version": "2.1.28",
3+
"version": "2.2.0",
44
"description": "",
55
"main": "lib/index",
66
"scripts": {

packages/paddlejs-core/src/postOps/multiclass_nms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default function compute(inputs, attrs) {
8484
// threshold, sort, slice
8585
const scoresMapList = getMaxScore(scores[i], score_threshold, nms_top_k);
8686
if (!scoresMapList || !scoresMapList.length) {
87-
return [];
87+
continue;
8888
}
8989
const maxScoreMap = scoresMapList.shift();
9090
const maxIndice = maxScoreMap.i;

0 commit comments

Comments
 (0)