10c43c7c08cdce3583e68834133a89eb0dbfcf78,chainercv/links/model/ssd/multibox_coder.py,MultiboxCoder,encode,#MultiboxCoder#Any#Any#Any#,85

Before Change


        index[mask] = iou[mask].argmax(axis=1)

        mb_bbox = bbox[index]
        mb_loc = xp.hstack((
            ((mb_bbox[:, :2] + mb_bbox[:, 2:]) / 2
             - self._default_bbox[:, :2]) /
            (self._variance[0] * self._default_bbox[:, 2:]),
            xp.log((mb_bbox[:, 2:] - mb_bbox[:, :2])
                   / self._default_bbox[:, 2:]) /
            self._variance[1]))

        // [0, n_fg_class - 1] -> [1, n_fg_class]
        mb_label = label[index] + 1

After Change


        // (y_min, x_min, height, width) -> (center_y, center_x, height, width)
        mb_bbox[:, :2] += mb_bbox[:, 2:] / 2

        mb_loc = xp.empty_like(mb_bbox)
        mb_loc[:, :2] = (mb_bbox[:, :2] - self._default_bbox[:, :2]) / \
            (self._variance[0] * self._default_bbox[:, 2:])
        mb_loc[:, 2:] = xp.log(mb_bbox[:, 2:] / self._default_bbox[:, 2:]) / \
            self._variance[1]

        // [0, n_fg_class - 1] -> [1, n_fg_class]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: chainer/chainercv
Commit Name: 10c43c7c08cdce3583e68834133a89eb0dbfcf78
Time: 2017-06-19
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/ssd/multibox_coder.py
Class Name: MultiboxCoder
Method Name: encode


Project Name: chainer/chainercv
Commit Name: 10c43c7c08cdce3583e68834133a89eb0dbfcf78
Time: 2017-06-19
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/ssd/multibox_coder.py
Class Name: MultiboxCoder
Method Name: encode


Project Name: kymatio/kymatio
Commit Name: 26b1ee9edf41b235911a82fb7955cd2af880d7ba
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d


Project Name: matplotlib/matplotlib
Commit Name: 85853dafddaf2afa2a77fd9984c06b62f842509a
Time: 2017-11-26
Author: quantum.analyst@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: AitoffTransform
Method Name: transform_non_affine