未验证 提交 5c87a7af 编写于 作者: X xiegegege 提交者: GitHub

update np.bool for numpy 1.24 (#7574)

上级 6f12fbb6
......@@ -785,7 +785,7 @@ class Gt2Solov2Target(BaseOperator):
ins_label = []
grid_order = []
cate_label = np.zeros([num_grid, num_grid], dtype=np.int64)
ins_ind_label = np.zeros([num_grid**2], dtype=np.bool)
ins_ind_label = np.zeros([num_grid**2], dtype=np.bool_)
if num_ins == 0:
ins_label = np.zeros(
......
......@@ -236,7 +236,7 @@ class SimOTAAssigner(object):
)] = match_fg_mask_inmatrix
assigned_gt_inds[match_fg_mask_inall.astype(
np.bool)] = match_gt_inds_to_fg + 1
np.bool_)] = match_gt_inds_to_fg + 1
pos_inds, neg_inds, pos_gt_bboxes, pos_assigned_gt_inds \
= self.get_sample(assigned_gt_inds, gt_bboxes.numpy())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册