Exemple #1
0
 def test_cityscapes_semantic_segmentation_dataset(self):
     assert_is_semantic_segmentation_dataset(self.dataset,
                                             self.n_class,
                                             n_example=10)
 def test_assert_is_semantic_segmentation_dataset(self):
     if self.valid:
         assert_is_semantic_segmentation_dataset(self.dataset, 21)
     else:
         with self.assertRaises(AssertionError):
             assert_is_semantic_segmentation_dataset(self.dataset, 21)
 def test_voc_semantic_segmentation_dataset(self):
     assert_is_semantic_segmentation_dataset(
         self.dataset,
         len(voc_semantic_segmentation_label_names),
         n_example=10)
 def test_voc_semantic_segmentation_dataset(self):
     assert_is_semantic_segmentation_dataset(
         self.dataset,
         len(voc_semantic_segmentation_label_names),
         n_example=10)
 def test_assert_is_semantic_segmentation_dataset(self):
     if self.valid:
         assert_is_semantic_segmentation_dataset(self.dataset, 21)
     else:
         with self.assertRaises(AssertionError):
             assert_is_semantic_segmentation_dataset(self.dataset, 21)