ml.postprocessing.edgeimpulse --- Edge Impulse¶
ml.postprocessing.edgeimpulse 模块包含用于 Edge Impulse 模型的后处理类。
class Fomo -- Fast Objects More Objects¶
FOMO(Fast Objects More Objects)模型输出的后处理器。
- class ml.postprocessing.edgeimpulse.Fomo(threshold: float = 0.4, w_scale: float = 1.414214, h_scale: float = 1.414214, nms_threshold: float = 0.1, nms_sigma: float = 0.001)¶
创建一个 FOMO 后处理器。
threshold保留一个检测结果所需的最低分数。w_scale在非极大值抑制之前应用于网格单元宽度的水平缩放因子。较大的值会导致相邻单元被合并为单个检测结果。h_scale在非极大值抑制之前应用于网格单元高度的垂直缩放因子。较大的值会导致相邻单元被合并为单个检测结果。nms_threshold传递给非极大值抑制的 IoU 阈值。nms_sigma传递给非极大值抑制(soft-NMS)的 sigma 值。