MCPcopy
hub / github.com/JaidedAI/EasyOCR / load

Method load

easyocr/DBNet/model/constructor.py:56–64  ·  view source on GitHub ↗
(self, state_name, **kwargs)

Source from the content-addressed store, hash-verified

54 self.load(name, **kwargs)
55
56 def load(self, state_name, **kwargs):
57 # FIXME: kwargs should be filtered
58 # Args passed from command line
59 cmd = kwargs.pop('cmd', dict())
60 if state_name in kwargs:
61 setattr(self, state_name, self.create_member_from_config(
62 (kwargs[state_name], cmd)))
63 else:
64 setattr(self, state_name, self.states[state_name].default)
65
66 def create_member_from_config(self, conf):
67 args, cmd = conf

Callers 15

load_allMethod · 0.95
set_dataMethod · 0.80
get_detectorFunction · 0.80
__init__Method · 0.80
export_detectorFunction · 0.80
get_recognizerFunction · 0.80
load_weightMethod · 0.80
mobilenet_v3_largeFunction · 0.80
mobilenet_v3_smallFunction · 0.80
deform_pool.pyFile · 0.80
deform_conv.pyFile · 0.80
__init__Method · 0.80

Calls 1

Tested by 1

set_dataMethod · 0.64