aa7f5bc6fef400e5d7ef411d9af930637f62c547,src/rastervision/data/label_source/semantic_segmentation_raster_source.py,SemanticSegmentationRasterSource,get_labels,#SemanticSegmentationRasterSource#Any#,60
Before Change
if self.rgb:
return self.class_transformer.rgb_to_class(img)
else:
labels = img[:, :, 0].reshape(img.shape[0], img.shape[1])
return labels
After Change
if window is None:
raw_labels = self.source.get_raw_image_array()
else:
raw_labels = self.source.get_raw_chip(window)
if self.class_transformer is not None:
labels = self.class_transformer.rgb_to_class(raw_labels)
else:
labels = np.squeeze(raw_labels)
return labels
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: azavea/raster-vision
Commit Name: aa7f5bc6fef400e5d7ef411d9af930637f62c547
Time: 2018-10-05
Author: lewfish@gmail.com
File Name: src/rastervision/data/label_source/semantic_segmentation_raster_source.py
Class Name: SemanticSegmentationRasterSource
Method Name: get_labels
Project Name: azavea/raster-vision
Commit Name: aa7f5bc6fef400e5d7ef411d9af930637f62c547
Time: 2018-10-05
Author: lewfish@gmail.com
File Name: src/rastervision/data/label_source/semantic_segmentation_raster_source.py
Class Name: SemanticSegmentationRasterSource
Method Name: enough_target_pixels
Project Name: azavea/raster-vision
Commit Name: aa7f5bc6fef400e5d7ef411d9af930637f62c547
Time: 2018-10-05
Author: lewfish@gmail.com
File Name: src/rastervision/data/label_source/semantic_segmentation_raster_source.py
Class Name: SemanticSegmentationRasterSource
Method Name: get_labels
Project Name: azavea/raster-vision
Commit Name: 3ccd750d58669d19d9fdd8a6aad710e0792d6017
Time: 2018-10-07
Author: lewfish@gmail.com
File Name: rastervision/data/label_store/semantic_segmentation_raster_store.py
Class Name: SemanticSegmentationRasterStore
Method Name: get_labels