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"
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: nipy/dipy
Commit Name: ba8bfb474b108565ac8f77544d0aeb8b1a9a0fdc
Time: 2011-02-09
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dandelion.py
Class Name: SphericalDandelion
Method Name: spherical_diffusivity
Project Name: geomstats/geomstats
Commit Name: 2e296adb05f62e4821c36b6f42b1470bdb10eaa6
Time: 2018-02-05
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: compose