fe8fee4f05e08a6448d46b8f70d960f02ef048b8,rastervision_core/rastervision/core/data/label_store/semantic_segmentation_label_store.py,SemanticSegmentationLabelStore,get_labels,#SemanticSegmentationLabelStore#,58

Before Change


        labels = SemanticSegmentationLabels()
        extent = self.source.get_extent()
        raw_labels = self.source.get_raw_chip(extent)
        label_arr = (np.squeeze(raw_labels) if self.class_trans is None else
                     self.class_trans.rgb_to_class(raw_labels))
        labels.set_label_arr(extent, label_arr)
        return labels

After Change


        extent = self.label_raster_source.get_extent()
        raw_labels = self.label_raster_source.get_raw_chip(extent)
        if self.class_transformer is None:
            label_arr = np.squeeze(raw_labels)
        else:
            label_arr = self.class_transformer.rgb_to_class(raw_labels)

        labels = self.empty_labels()
        labels[extent] = label_arr
        return labels

    def get_scores(self) -> SemanticSegmentationLabels:
        Get all scores.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: azavea/raster-vision
Commit Name: fe8fee4f05e08a6448d46b8f70d960f02ef048b8
Time: 2021-01-08
Author: AdeelH@users.noreply.github.com
File Name: rastervision_core/rastervision/core/data/label_store/semantic_segmentation_label_store.py
Class Name: SemanticSegmentationLabelStore
Method Name: get_labels


Project Name: MaybeShewill-CV/lanenet-lane-detection
Commit Name: d11bc29f11e9c5466912ae6111fda50ef3db84d8
Time: 2018-05-30
Author: luoyao@baidu.com
File Name: lanenet_model/lanenet_merge_model.py
Class Name: LaneNet
Method Name: compute_loss


Project Name: mariogeiger/se3cnn
Commit Name: 598bde9c69839bb8001ef7cc588a9d96e1c6887a
Time: 2018-04-01
Author: mweiler@dta160174.science.uva.nl
File Name: se3_cnn/datasets/mri.py
Class Name: MRISegmentation
Method Name: __init__


Project Name: keras-team/keras
Commit Name: ab4bf447c658636cc2f6ae53cf9f0e639b6a4595
Time: 2016-06-09
Author: sharker81@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: squeeze


Project Name: bethgelab/foolbox
Commit Name: d032ee03dcb302a5c71919ad43434eb327522de3
Time: 2018-07-08
Author: git@jonasrauber.de
File Name: foolbox/models/mxnet_gluon.py
Class Name: MXNetGluonModel
Method Name: predictions_and_gradient


Project Name: sentinel-hub/eo-learn
Commit Name: 3c0483bd26e0bb7654472c514c0b2106906ca050
Time: 2019-10-15
Author: benosircelj@gmail.com
File Name: features/eolearn/features/doubly_logistic_approximation.py
Class Name: DoublyLogisticApproximationTask
Method Name: execute