Skip to content

Commit d15e243

Browse files
YunYang1994YunYang1994
YunYang1994
authored and
YunYang1994
committed
rpn score
1 parent 6fd0f0a commit d15e243

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

4-Object_Detection/RPN/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
image_data = np.expand_dims(raw_image / 255., 0)
3535
pred_scores, pred_bboxes = model(image_data)
3636
pred_scores = tf.nn.softmax(pred_scores, axis=-1)
37-
pred_scores, pred_bboxes = decode_output(pred_bboxes, pred_scores, 0.7)
37+
pred_scores, pred_bboxes = decode_output(pred_bboxes, pred_scores, 0.9)
3838
pred_bboxes = nms(pred_bboxes, pred_scores, 0.5)
3939
plot_boxes_on_image(raw_image, pred_bboxes)
4040
save_path = os.path.join(prediction_result_path, str(idx)+".jpg")

4-Object_Detection/RPN/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def compute_regression(box1, box2):
101101

102102
return target_reg
103103

104-
def decode_output(pred_bboxes, pred_scores, score_thresh=0.):
104+
def decode_output(pred_bboxes, pred_scores, score_thresh=0.5):
105105
"""
106106
pred_bboxes shape: [1, 45, 60, 9, 4]
107107
pred_scores shape: [1, 45, 60, 9, 2]

0 commit comments

Comments
 (0)