9f0b230e1f59cb399e36210483bc075760b02eaf,gluonvision/model_zoo/ssd/ssd.py,SSD,hybrid_forward,#SSD#Any#Any#,154

Before Change


        cls_ids, scores = self.cls_decoder(F.softmax(cls_preds))
        result = F.concat(
            cls_ids.expand_dims(axis=-1), scores.expand_dims(axis=-1), bboxes, dim=-1)
        conf_mask = F.tile(scores.expand_dims(axis=-1) > 0.01, reps=(1, 1, 6))
        result = F.where(conf_mask, result, F.ones_like(result) * -1)
        if self.nms_thresh > 0 and self.nms_thresh < 1:
            result = F.contrib.box_nms(
                result, overlap_thresh=self.nms_thresh, topk=self.nms_topk,

After Change


                    per_result, overlap_thresh=self.nms_thresh, topk=self.nms_topk,
                    id_index=0, score_index=1, coord_start=2)
            results.append(per_result)
        result = F.concat(*results, dim=1)
        //
        // cls_ids, scores = self.cls_decoder(F.softmax(cls_preds))
        // result = F.concat(
        //     cls_ids.expand_dims(axis=-1), scores.expand_dims(axis=-1), bboxes, dim=-1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: 9f0b230e1f59cb399e36210483bc075760b02eaf
Time: 2018-04-11
Author: cheungchih@gmail.com
File Name: gluonvision/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: hybrid_forward


Project Name: NifTK/NiftyNet
Commit Name: ac2a794577087259da7200eefc792dbba40f8600
Time: 2017-11-02
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/sampler_pairwise/sampler_pairwise.py
Class Name: PairwiseSampler
Method Name: layer_op


Project Name: IndicoDataSolutions/finetune
Commit Name: e251500c1195f181331091e65deac0c2c5899696
Time: 2019-05-24
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/gpt/featurizer.py
Class Name:
Method Name: explain_mask_attn_weights