Skip to content

Commit 8e029c5

Browse files
authored
add a pair of parentheses at line 43
1 parent 3e171db commit 8e029c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/roi_data_layer/minibatch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_minibatch(roidb, num_classes):
4040
gt_inds = np.where(roidb[0]['gt_classes'] != 0)[0]
4141
else:
4242
# For the COCO ground truth boxes, exclude the ones that are ''iscrowd''
43-
gt_inds = np.where(roidb[0]['gt_classes'] != 0 & np.all(roidb[0]['gt_overlaps'].toarray() > -1.0, axis=1))[0]
43+
gt_inds = np.where((roidb[0]['gt_classes'] != 0) & np.all(roidb[0]['gt_overlaps'].toarray() > -1.0, axis=1))[0]
4444
gt_boxes = np.empty((len(gt_inds), 5), dtype=np.float32)
4545
gt_boxes[:, 0:4] = roidb[0]['boxes'][gt_inds, :] * im_scales[0]
4646
gt_boxes[:, 4] = roidb[0]['gt_classes'][gt_inds]

0 commit comments

Comments
 (0)