Skip to content

Commit

Permalink
修改部分备注
Browse files Browse the repository at this point in the history
  • Loading branch information
yizt committed Apr 14, 2019
1 parent 6b962f8 commit 22bdee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ctpn/layers/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def ctpn_cls_loss(predict_cls_ids, true_cls_ids, indices):
ctpn分类损失
:param predict_cls_ids: 预测的anchors类别,(batch_num,anchors_num,2) fg or bg
:param true_cls_ids:实际的anchors类别,(batch_num,rpn_train_anchors,(class_id,tag))
tag 1:正样本,0:负样本,-1 padding
tag 1:正负样本,0 padding
:param indices: 正负样本索引,(batch_num,rpn_train_anchors,(idx,tag)),
idx:指定anchor索引位置,tag 1:正样本,0:负样本,-1 padding
idx:指定anchor索引位置,tag 1:正样本,-1:负样本,0 padding
:return:
"""
# 去除padding
Expand Down
2 changes: 1 addition & 1 deletion ctpn/layers/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def ctpn_target_graph(gt_boxes, gt_cls, anchors, valid_anchors_indices, train_an
:param positive_ratios
:param max_gt_num
:return:
deltas:[train_anchors_num, (dy,dh,dx,tag)],anchor边框回归目标,tag=1为正样本,tag=0为padding
deltas:[train_anchors_num, (dy,dh,dx,tag)],anchor边框回归目标,tag=1为正负样本,tag=0为padding
class_id:[train_anchors_num,(class_id,tag)]
indices: [train_anchors_num,(anchors_index,tag)] tag=1为正样本,tag=0为padding,-1为负样本
"""
Expand Down

0 comments on commit 22bdee3

Please sign in to comment.