detection.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ssd_pytorch 作者: miraclebiu 项目源码 文件源码
def __init__(self, num_classes, bkg_label, top_k, conf_thresh, nms_thresh):
        self.num_classes = num_classes
        self.background_label = bkg_label
        self.top_k = top_k
        # Parameters used in nms.
        self.nms_thresh = nms_thresh
        if nms_thresh <= 0:
            raise ValueError('nms_threshold must be non negative.')
        self.conf_thresh = conf_thresh
        self.variance = cfg['variance']
        self.output = torch.zeros(1, self.num_classes, self.top_k, 5)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号