13de22d42ecbc51ea19bdd571262959eb29804d9,frcnn/roi_pool.py,ROIPoolingLayer,_roi_crop,#ROIPoolingLayer#Any#Any#,39

Before Change



        bboxes = self._get_bboxes(rois, pretrained)
        // TODO: Why?!!?
        batch_ids = tf.squeeze(tf.slice(rois, [0, 0], [-1, 1], name="batch_id"), [1])

        crops = tf.image.crop_and_resize(
            pretrained, bboxes, tf.to_int32(batch_ids),
            [self._pooled_width * 2, self._pooled_height * 2], name="crops"

After Change


        // TODO: Why?!!?
        // batch_ids = tf.squeeze(tf.slice(roi_proposals, [0, 0], [-1, 1], name="batch_id"), [1])
        bboxes_shape = tf.shape(bboxes)
        batch_ids = tf.zeros((bboxes_shape[0], ), dtype=tf.int32)
        crops = tf.image.crop_and_resize(
            pretrained, bboxes, batch_ids,
            [self._pooled_width * 2, self._pooled_height * 2], name="crops"
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: tryolabs/luminoth
Commit Name: 13de22d42ecbc51ea19bdd571262959eb29804d9
Time: 2017-06-18
Author: javirey@gmail.com
File Name: frcnn/roi_pool.py
Class Name: ROIPoolingLayer
Method Name: _roi_crop


Project Name: chainer/chainercv
Commit Name: 0599501151013a97f39081ff5a74b21592e31695
Time: 2017-05-15
Author: yuyuniitani@gmail.com
File Name: tests/links_tests/model_tests/faster_rcnn_tests/test_faster_rcnn.py
Class Name: DummyRegionProposalNetwork
Method Name: __call__


Project Name: chainer/chainercv
Commit Name: 0599501151013a97f39081ff5a74b21592e31695
Time: 2017-05-15
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/faster_rcnn/utils/proposal_creator.py
Class Name: ProposalCreator
Method Name: __call__


Project Name: deepmind/sonnet
Commit Name: 62386f9bdb92662267f18fcf766c84ef6d0e7124
Time: 2018-07-17
Author: noreply@google.com
File Name: sonnet/python/modules/conv_test.py
Class Name: SharedConvTest
Method Name: SharedConvTest_1