nn/nn_processor.py
def load_results(self):
        """
        load all the results computed by this process
        :return: tile based iou, field based iou and overall iou
        """
        print('Summary of results:')
        result_name = os.path.join(self.score_save_dir, 'result.txt')
        result = ersa_utils.load_file(result_name)
        tile_dict, field_dict, overall = nn_utils.read_iou_from_file(result)
        for key, val in field_dict.items():
            field_str = ersa_utils.make_center_string('=', 50, '{}={:.2f}'.format(key, val * 100))
            print(field_str)
            for key_tile, val_tile in tile_dict.items():
                if key in key_tile:
                    print('{}={:.2f}'.format(key_tile, val_tile * 100))
        print(ersa_utils.make_center_string('=', 50, 'Overall={:.2f}'.format(overall * 100)))
        return tile_dict, field_dict, overall

        load all the results computed by this process
        :return: tile based iou, field based iou and overall iou
        
load all the results computed by this process
load all the results computed by this process
def load_results(self):
        print('Summary of results:')
        result_name = os.path.join(self.score_save_dir, 'result.txt')
        result = ersa_utils.load_file(result_name)
        tile_dict, field_dict, overall = nn_utils.read_iou_from_file(result)
        for key, val in field_dict.items():
            field_str = ersa_utils.make_center_string('=', 50, '{}={:.2f}'.format(key, val * 100))
            print(field_str)
            for key_tile, val_tile in tile_dict.items():
                if key in key_tile:
                    print('{}={:.2f}'.format(key_tile, val_tile * 100))
        print(ersa_utils.make_center_string('=', 50, 'Overall={:.2f}'.format(overall * 100)))
        return tile_dict, field_dict, overall
def load_results ( self ) : print ( 'Summary of results:' ) result_name = os . path . join ( self . score_save_dir , 'result.txt' ) result = ersa_utils . load_file ( result_name ) tile_dict , field_dict , overall = nn_utils . read_iou_from_file ( result ) for key , val in field_dict . items ( ) : field_str = ersa_utils . make_center_string ( '=' , 50 , '{}={:.2f}' . format ( key , val * 100 ) ) print ( field_str ) for key_tile , val_tile in tile_dict . items ( ) : if key in key_tile : print ( '{}={:.2f}' . format ( key_tile , val_tile * 100 ) ) print ( ersa_utils . make_center_string ( '=' , 50 , 'Overall={:.2f}' . format ( overall * 100 ) ) ) return tile_dict , field_dict , overall
load all the results computed by this process
load all the results computed by this process
"""
        load all the results computed by this process
        :return: tile based iou, field based iou and overall iou
        """
None
self