77b8012989df60009c7a324de603c644f7aa86eb,luminoth/models/ssd/ssd_target.py,SSDTarget,_build,#SSDTarget#Any#Any#Any#Any#,31

Before Change


        // the greatest).

        // Transform to one-hot vector.
        cls_target_one_hot = tf.one_hot(
            tf.cast(best_proposals_gt_labels, tf.int32), depth=self._num_classes + 1,
            name="cls_target_one_hot"
        )

        // We get cross entropy loss of each proposal.
        cross_entropy_per_proposal = (
            tf.nn.softmax_cross_entropy_with_logits(
                labels=cls_target_one_hot, logits=probs
            )
        )

After Change



        // Use the worst backgrounds (the bgs which probability of being fg is
        // the greatest).
        cls_probs = probs[:, 1:]
        max_cls_probs = tf.reduce_max(cls_probs, axis=1)

        // Exclude boxes with IOU > `background_threshold_high` with any GT.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: 77b8012989df60009c7a324de603c644f7aa86eb
Time: 2018-03-20
Author: psoto23.ps@gmail.com
File Name: luminoth/models/ssd/ssd_target.py
Class Name: SSDTarget
Method Name: _build


Project Name: tryolabs/luminoth
Commit Name: 77b8012989df60009c7a324de603c644f7aa86eb
Time: 2018-03-20
Author: psoto23.ps@gmail.com
File Name: luminoth/models/ssd/ssd_target.py
Class Name: SSDTarget
Method Name: _build


Project Name: analysiscenter/batchflow
Commit Name: 6dad66511b8432570eb53b67b8fd889913ac15e3
Time: 2017-11-01
Author: rhudor@gmail.com
File Name: examples/opensets/mnist_model2.py
Class Name: MyModel
Method Name: _build


Project Name: tensorflow/cleverhans
Commit Name: c29b38a31956222003e14d6e968b5e74666c46ae
Time: 2019-04-11
Author: haojie.d.yuan@gmail.com
File Name: cleverhans/attacks/lbfgs.py
Class Name: LBFGS
Method Name: generate


Project Name: tensorflow/models
Commit Name: b045ce7d71c64336e34589d20993bbbed2399806
Time: 2019-10-03
Author: hongkuny@google.com
File Name: official/nlp/xlnet_modeling.py
Class Name: TransformerXLModel
Method Name: call