d52eb0bf3d6df25c70933321a841dac157806479,luminoth/models/ssd/ssd.py,SSD,_build,#SSD#,69

Before Change


            //       them in image scale from the start instead of scaling
            //       them to their feature map size.
            feat_map_shape = feat_map.get_shape().as_list()[1:3]
            adjusted_bboxes = adjust_bboxes(
                self.anchors[feat_map_name],
                tf.cast(feat_map_shape[0], tf.float32),
                tf.cast(feat_map_shape[1], tf.float32),
                tf.cast(tf.shape(image)[1], tf.float32),
                tf.cast(tf.shape(image)[2], tf.float32)
            )
            // Clip anchors to the image.
            adjusted_bboxes = clip_boxes(
                adjusted_bboxes, tf.cast(tf.shape(image)[1:3], tf.int32))
            all_anchors_list.append(adjusted_bboxes)

After Change


            feat_map_shape = feat_map.shape.as_list()[1:3]
            scaled_bboxes = adjust_bboxes(
                raw_anchors_per_featmap[feat_map_name], feat_map_shape[0],
                feat_map_shape[1], self.image_shape[0], self.image_shape[1]
            )
            clipped_bboxes = clip_boxes(scaled_bboxes, self.image_shape)
            all_anchors_list.append(clipped_bboxes)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tryolabs/luminoth
Commit Name: d52eb0bf3d6df25c70933321a841dac157806479
Time: 2018-03-20
Author: joaquin.alori@gmail.com
File Name: luminoth/models/ssd/ssd.py
Class Name: SSD
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: fgnt/pb_bss
Commit Name: 49a3ebf5f465bf4310cc55dc7e81ec2994c10154
Time: 2019-03-14
Author: heitkaemper@nt.upb.de
File Name: paderbox/speech_enhancement/beamformer.py
Class Name:
Method Name: get_wmwf_vector