8dd1ec5bfef42af8ad75a38a4ac6d58e7d7763c9,luminoth/utils/image_vis.py,,draw_rpn_bbox_pred,#Any#Any#,598

Before Change


    
    logger.debug("RPN regression loss (bbox to original anchors, with the smoothL1Loss)")
    target = pred_dict["rpn_prediction"]["rpn_cls_target"]
    target = target.reshape([-1, 1])
    // Get anchors with positive label.
    positive_indices = np.nonzero(np.squeeze(target) > 0)[0]
    random_indices = np.random.choice(np.arange(len(positive_indices)), n)

After Change



    loss_per_anchor = pred_dict["rpn_prediction"]["reg_loss_per_anchor"]

    top_losses_idx = np.argsort(loss_per_anchor)[::-1][:top_k]

    loss_per_anchor = loss_per_anchor[top_losses_idx]
    bbox_pred = bbox_pred[top_losses_idx]
    all_anchors = all_anchors[top_losses_idx]

    bbox_final = decode(all_anchors, bbox_pred)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: 8dd1ec5bfef42af8ad75a38a4ac6d58e7d7763c9
Time: 2017-10-09
Author: javirey@gmail.com
File Name: luminoth/utils/image_vis.py
Class Name:
Method Name: draw_rpn_bbox_pred


Project Name: WheatonCS/Lexos
Commit Name: 70fcd3094baba3139afcda727683d58c2928261f
Time: 2017-08-04
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker


Project Name: WheatonCS/Lexos
Commit Name: ce5da48b8586d7cfdb392b8cad1988e6bfdd17d5
Time: 2017-08-03
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker