Skip to content

Commit d11c36a

Browse files
committed
minor modifications
1 parent ff1ea1c commit d11c36a

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

model.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ def loss_layer(self, feature_map_i, y_true, anchors):
215215
best_iou = tf.reduce_max(iou, axis=-1)
216216

217217
# get_ignore_mask
218-
# TODO: some explainments
219218
ignore_mask = tf.cast(best_iou < 0.5, tf.float32)
220219
# shape: [N, 13, 13, 3, 1]
221220
ignore_mask = tf.expand_dims(ignore_mask, -1)
@@ -321,8 +320,3 @@ def broadcast_iou(self, true_box_xy, true_box_wh, pred_box_xy, pred_box_wh):
321320
iou = intersect_area / (pred_box_area + true_box_area - intersect_area)
322321

323322
return iou
324-
325-
326-
327-
328-

utils/data_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def parse_line(line):
1515
dimension are [x_min, y_min, x_max, y_max]
1616
'''
1717
s = line.strip().split(' ')
18-
# TODO: need reform
1918
pic_path = s[0]
2019
s = s[1:]
2120
box_cnt = len(s) / 5
@@ -75,7 +74,6 @@ def process_box(boxes, labels, img_size, class_num, anchors):
7574
# (width, height)
7675
box_sizes = boxes[:, 2:4] - boxes[:, 0:2]
7776

78-
# TODO: NUM_CLASS, IMAGE_SHAPE
7977
# [13, 13, 3, 3+num_class]
8078
y_true_13 = np.zeros((img_size[1] / 32, img_size[0] / 32, 3, 5 + class_num), np.float32)
8179
y_true_26 = np.zeros((img_size[1] / 16, img_size[0] / 16, 3, 5 + class_num), np.float32)

utils/nms_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def py_nms(boxes, scores, max_boxes=50, iou_thresh=0.5):
6363
x2 = boxes[:, 2]
6464
y2 = boxes[:, 3]
6565

66-
#TODO: +1?
6766
areas = (x2 - x1) * (y2 - y1)
6867
order = scores.argsort()[::-1]
6968

0 commit comments

Comments
 (0)