Skip to content

Commit

Permalink
fix(tensorrt_yolox): resolve all output labels become unknown (#3064)
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
  • Loading branch information
ktro2828 authored Mar 13, 2023
1 parent b2790e9 commit be0929b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perception/tensorrt_yolox/src/tensorrt_yolox_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ void TrtYoloXNode::replaceLabelMap()
if (label == "PERSON") {
label = "PEDESTRIAN";
} else if (
label != "CAR" || label != "PEDESTRIAN" || label != "BUS" || label != "TRUCK" ||
label != "BICYCLE" || label != "MOTORCYCLE") {
label != "CAR" && label != "PEDESTRIAN" && label != "BUS" && label != "TRUCK" &&
label != "BICYCLE" && label != "MOTORCYCLE") {
label = "UNKNOWN";
}
}
Expand Down

0 comments on commit be0929b

Please sign in to comment.