classification
最后更新
depthai_nodes.node.parsers.utils.classification函数
compute_classification_scores
Python
1def compute_classification_scores(scores: np.ndarray, *, is_softmax: bool = True) -> np.ndarray:scores(np.ndarray): 模型分数张量。is_softmax(bool): 分数是否已包含概率。如果为 false,则应用 softmax。
np.ndarray: 一维数组,每个类别一个分数。