026c1ea689b06dc15dfa689dcdb5279f5ecf74e6,tests/links_tests/model_tests/segnet_tests/test_segnet_basic.py,TestSegNetPretrained,test_pretrained,#TestSegNetPretrained#,56

Before Change



    @attr.slow
    def test_pretrained(self):
        SegNetBasic(pretrained_model="camvid")

    @attr.slow
    def test_pretrained_n_class(self):
        SegNetBasic(n_class=11, pretrained_model="camvid")

After Change


            valid = self.n_class is {None, 11}

        if valid:
            SegNetBasic(n_class=self.n_class,
                        pretrained_model=self.pretrained_model)
        else:
            with self.assertRaises(ValueError):
                SegNetBasic(n_class=self.n_class,
                            pretrained_model=self.pretrained_model)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainercv
Commit Name: 026c1ea689b06dc15dfa689dcdb5279f5ecf74e6
Time: 2018-05-09
Author: Hakuyume@users.noreply.github.com
File Name: tests/links_tests/model_tests/segnet_tests/test_segnet_basic.py
Class Name: TestSegNetPretrained
Method Name: test_pretrained


Project Name: chainer/chainercv
Commit Name: 6be23745a8f5e6043478711551c105e0d0173f37
Time: 2018-05-09
Author: Hakuyume@users.noreply.github.com
File Name: tests/links_tests/model_tests/segnet_tests/test_segnet_basic.py
Class Name: TestSegNetPretrained
Method Name: test_pretrained


Project Name: chainer/chainercv
Commit Name: e5543ff99b327b7c8dd3ddb8114053262fcddebb
Time: 2017-05-29
Author: yuyuniitani@gmail.com
File Name: examples/segnet/demo.py
Class Name:
Method Name: main