107af7f70e062ab29cb92d9ed5494047bd05678f,tests/data/label_source/test_semantic_segmentation_label_source.py,TestSemanticSegmentationLabelSource,test_get_labels_rgb,#TestSemanticSegmentationLabelSource#,89
Before Change
def test_get_labels_rgb(self):
data = np.zeros((10, 10, 3), dtype=np.uint8)
data[7:, 7:, :] = [1, 1, 1]
raster_source = MockRasterSource(data)
rgb_class_map = ClassMap([ClassItem(id=1, color="/")])
label_source = SemanticSegmentationLabelSource(
source=raster_source, rgb_class_map=rgb_class_map)
with label_source.activate():
After Change
def test_get_labels_rgb(self):
data = np.zeros((10, 10, 3), dtype=np.uint8)
data[7:, 7:, :] = [1, 1, 1]
raster_source = MockRasterSource([0, 1, 2], 3)
raster_source.set_raster(data)
rgb_class_map = ClassMap([ClassItem(id=1, color="/")])
label_source = SemanticSegmentationLabelSource(
source=raster_source, rgb_class_map=rgb_class_map)
with label_source.activate():
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_get_labels_rgb
Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_get_labels
Project Name: azavea/raster-vision
Commit Name: 099c4d7a17612040217e388c8d526ec96721addc
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/evaluation/test_semantic_segmentation_evaluation.py
Class Name: TestSemanticSegmentationEvaluation
Method Name: test_compute
Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_enough_target_pixels_true
Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_enough_target_pixels_false