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

Method build

easyocr/DBNet/model/detector.py:29–33  ·  view source on GitHub ↗
(self, device, distributed=False, local_rank: int = 0)

Source from the content-addressed store, hash-verified

27 return self.model + '-' + getattr(structure_model, self.model).model_name(self.model_args)
28
29 def build(self, device, distributed=False, local_rank: int = 0):
30 Model = getattr(structure_model, self.model)
31 model = Model(self.model_args, device,
32 distributed=distributed, local_rank=local_rank)
33 return model
34
35class Detector(Configurable):
36 structure = State(autoload=False)

Callers 2

construct_modelMethod · 0.45
__init__Method · 0.45

Calls 1

ModelClass · 0.70

Tested by

no test coverage detected