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

Method save

tools/engine/config.py:154–158  ·  view source on GitHub ↗
(self, p, cfg=None)

Source from the content-addressed store, hash-verified

152 print_func('---------------------------------------------')
153
154 def save(self, p, cfg=None):
155 if cfg is None:
156 cfg = self.cfg
157 with open(p, 'w') as f:
158 yaml.dump(dict(cfg), f, default_flow_style=False, sort_keys=False)

Callers 5

process_imageFunction · 0.80
export_single_modelFunction · 0.80
save_ckptFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected