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

Method __init__

tools/data/simple_dataset.py:176–180  ·  view source on GitHub ↗
(self, config, mode, logger, seed=None)

Source from the content-addressed store, hash-verified

174class MultiScaleDataSet(SimpleDataSet):
175
176 def __init__(self, config, mode, logger, seed=None):
177 super(MultiScaleDataSet, self).__init__(config, mode, logger, seed)
178 self.ds_width = config[mode]['dataset'].get('ds_width', False)
179 if self.ds_width:
180 self.wh_aware()
181
182 def wh_aware(self):
183 data_line_new = []

Callers

nothing calls this directly

Calls 3

wh_awareMethod · 0.95
getMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected