9087f87adf5983e10f5dcb88ed60b6b80ad367e8,luminoth/models/fasterrcnn/rpn_anchor_target_test.py,RPNAnchorTargetTest,setUp,#RPNAnchorTargetTest#,10

Before Change


        super(RPNAnchorTargetTest, self).setUp()
        // Setup anchors
        self.anchor_scales = np.array([8, 16, 32])
        self.anchor_ratios = np.array([0.5, 1, 2])
        self.anchors = generate_anchors(
            ratios=self.anchor_ratios, scales=self.anchor_scales)

    def testBasic(self):
        model = RPNAnchorTarget(self.anchors)
        rpn_cls_score_shape = (1, 32, 32, model._num_anchors * 2)

After Change


        super(RPNAnchorTargetTest, self).setUp()
        // Setup
        self.gt_boxes = np.array([[200, 0, 400, 400]])
        self.im_size = (600, 600)
        self.all_anchors = np.array(
            [[200, 100, 400, 400],  // foreground
             [300, 300, 400, 400],  // background, must be ignored
             [200, 380, 300, 500],  // background
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: 9087f87adf5983e10f5dcb88ed60b6b80ad367e8
Time: 2017-08-11
Author: gaston@Gastons-MacBook-Pro.local
File Name: luminoth/models/fasterrcnn/rpn_anchor_target_test.py
Class Name: RPNAnchorTargetTest
Method Name: setUp


Project Name: microsoft/nni
Commit Name: 89fa23cb77746d36b4f1ff6cd4fcefbab18c7d70
Time: 2020-06-11
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/tests/test_compressor.py
Class Name: CompressorTestCase
Method Name: test_torch_l1filter_pruner


Project Name: uber/ludwig
Commit Name: 66866187ee32e7ec2f1e93cbd39a21a0afd1ccd3
Time: 2020-05-09
Author: w4nderlust@gmail.com
File Name: ludwig/models/modules/embedding_modules.py
Class Name: EmbedSparse
Method Name: call


Project Name: uber/ludwig
Commit Name: 15bc4baff9c2dfa2e42947a417e45a159ab50dad
Time: 2020-05-14
Author: w4nderlust@gmail.com
File Name: ludwig/models/modules/embedding_modules.py
Class Name: EmbedSparse
Method Name: __call__