MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / get

Method get

tools/utils/stats.py:42–50  ·  view source on GitHub ↗
(self, extras=None)

Source from the content-addressed store, hash-verified

40 self.smoothed_losses_and_metrics[k].add_value(v)
41
42 def get(self, extras=None):
43 stats = collections.OrderedDict()
44 if extras:
45 for k, v in extras.items():
46 stats[k] = v
47 for k, v in self.smoothed_losses_and_metrics.items():
48 stats[k] = round(v.get_median_value(), 6)
49
50 return stats
51
52 def log(self, extras=None):
53 d = self.get(extras)

Callers 15

logMethod · 0.95
trainMethod · 0.95
__init__Method · 0.80
get_example_images_pathFunction · 0.80
_handle_headingMethod · 0.80
convertMethod · 0.80
__init__Method · 0.80
__call__Method · 0.80
mainFunction · 0.80
crop_by_boxesMethod · 0.80
postprocessMethod · 0.80
__call__Method · 0.80

Calls 1

get_median_valueMethod · 0.80

Tested by 13

__init__Method · 0.64
__init__Method · 0.64
get_wh_ratioMethod · 0.64
get_lmdb_sample_infoMethod · 0.64
__init__Method · 0.64
get_wh_ratioMethod · 0.64
get_lmdb_sample_infoMethod · 0.64
__init__Method · 0.64
_preprocess_labelsMethod · 0.64
__getitem__Method · 0.64