f0b8fba7700a5e2a56b0d57af696118865e4b009,tests/extensions_tests/detection_tests/test_detection_vis_report.py,TestDetectionVisReport,setUp,#TestDetectionVisReport#,29

Before Change


        model = ConstantStubLink((
            np.random.uniform(size=(1,) + self.bbox_shape).astype(np.float32),
            np.random.uniform(size=(1,) + self.label_shape).astype(np.int32)))
        dataset = TupleDataset(
            np.random.uniform(size=(100, 3, 10, 10)).astype(np.float32),
            np.random.uniform(
                size=(100,) + self.bbox_shape).astype(np.float32),
            np.random.uniform(
                size=(100,) + (self.label_shape)).astype(np.int32))

        self.extension = DetectionVisReport(
            self.indices, dataset, model,
            filename_base="detection")

    def test_call(self):
        self.extension(self.trainer)
        if optional_modules:

After Change


        self.trainer.updater.iteration = 0

        self.link = _RandomDetectionStubLink()
        self.dataset = TupleDataset(
            np.random.uniform(size=(10, 3, 32, 48)),
            np.random.uniform(size=(10, 5, 4)),
            np.random.randint(0, 19, size=(10, 5)))

    def test_available(self):
        self.extension = DetectionVisReport(self.dataset, self.link)
        self.assertEqual(self.extension.available(), optional_modules)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: f0b8fba7700a5e2a56b0d57af696118865e4b009
Time: 2017-05-04
Author: Hakuyume@users.noreply.github.com
File Name: tests/extensions_tests/detection_tests/test_detection_vis_report.py
Class Name: TestDetectionVisReport
Method Name: setUp


Project Name: chainer/chainercv
Commit Name: 17b1cbf8ba982a870e4f280233ce155a1acb2ab4
Time: 2018-06-19
Author: shingogo@hotmail.co.jp
File Name: examples/fcis/train.py
Class Name: Transform
Method Name: __call__


Project Name: chainer/chainercv
Commit Name: 7bc13739e7cd4e6962873269ef8cd16358e61e58
Time: 2018-06-19
Author: shingogo@hotmail.co.jp
File Name: chainercv/experimental/links/model/fcis/utils/proposal_target_creator.py
Class Name: ProposalTargetCreator
Method Name: __call__


Project Name: catalyst-team/catalyst
Commit Name: 1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f
Time: 2020-08-11
Author: scitator@gmail.com
File Name: catalyst/data/scripts/project_embeddings.py
Class Name:
Method Name: main