未验证 提交 6b88946f 编写于 作者: W wangguanzhong 提交者: GitHub

update yolo_box (#1616)

上级 5bee2353
...@@ -401,9 +401,8 @@ class YOLOBox(object): ...@@ -401,9 +401,8 @@ class YOLOBox(object):
self.clip_bbox = clip_bbox self.clip_bbox = clip_bbox
def __call__(self, x, img_size, anchors, num_classes, stage=0): def __call__(self, x, img_size, anchors, num_classes, stage=0):
outs = fluid.layers.yolo_box(x, img_size, anchors, num_classes, outs = ops.yolo_box(x, img_size, anchors, num_classes, self.conf_thresh,
self.conf_thresh, self.downsample_ratio // self.downsample_ratio // 2**stage, self.clip_bbox)
2**stage, self.clip_bbox)
return outs return outs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册