Commit 5c858dc9 authored by dcuai's avatar dcuai
Browse files

Update label_ops.py—bool_

parent 8cb8274b
...@@ -62,7 +62,7 @@ class DetLabelEncode(object): ...@@ -62,7 +62,7 @@ class DetLabelEncode(object):
return None return None
boxes = self.expand_points_num(boxes) boxes = self.expand_points_num(boxes)
boxes = np.array(boxes, dtype=np.float32) boxes = np.array(boxes, dtype=np.float32)
txt_tags = np.array(txt_tags, dtype=np.bool) txt_tags = np.array(txt_tags, dtype=np.bool_)
data['polys'] = boxes data['polys'] = boxes
data['texts'] = txts data['texts'] = txts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment