a40e9a6f1400e15076cfed54c33bf556cec8cd28,luminoth/models/fasterrcnn/rcnn_target_test.py,RCNNTargetTest,testMultipleOverlap,#RCNNTargetTest#,102
Before Change
proposed_boxes)
// Assertions
not_ignored_number = 0
for i, label in enumerate(proposals_label):
if label >= 1:
not_ignored_number += 1
self.assertIn(i, [1, 2, 3, 5])
self.assertEqual(not_ignored_number, 1)
if __name__ == "__main__":
After Change
proposed_boxes)
// Assertions
foreground_number = proposals_label[proposals_label >= 1].shape[0]
background_number = proposals_label[proposals_label == 0].shape[0]
foreground_fraction = self._config.foreground_fraction
self.assertAlmostEqual(foreground_number,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tryolabs/luminoth
Commit Name: a40e9a6f1400e15076cfed54c33bf556cec8cd28
Time: 2017-08-11
Author: iangtayler@gmail.com
File Name: luminoth/models/fasterrcnn/rcnn_target_test.py
Class Name: RCNNTargetTest
Method Name: testMultipleOverlap
Project Name: NifTK/NiftyNet
Commit Name: fd8ca0c975e380dfcd7239408258b5852be33f06
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_grid.py
Class Name: GridSampler
Method Name: layer_op
Project Name: chainer/chainercv
Commit Name: 827e12f3b9506e0f78cc79445441cd9d1f25c055
Time: 2018-04-24
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/yolo/yolov3.py
Class Name: YOLOv3
Method Name: __call__