MCPcopy
hub / github.com/RapidAI/RapidOCR / load

Method load

python/rapidocr/utils/parse_parameters.py:26–32  ·  view source on GitHub ↗
(cls, file_path: Union[str, Path])

Source from the content-addressed store, hash-verified

24
25 @classmethod
26 def load(cls, file_path: Union[str, Path]) -> DictConfig:
27 cfg = OmegaConf.load(file_path)
28
29 cfg.Det = cls._convert_value_to_enum(cfg.Det)
30 cfg.Cls = cls._convert_value_to_enum(cfg.Cls)
31 cfg.Rec = cls._convert_value_to_enum(cfg.Rec)
32 return cfg
33
34 @classmethod
35 def update_batch(cls, cfg: DictConfig, params: Dict[str, Any]) -> DictConfig:

Callers 10

_load_configMethod · 0.80
download_modelsFunction · 0.80
font_cfgFunction · 0.80
InferSessionClass · 0.80
_load_arch_configMethod · 0.80
_build_and_load_modelMethod · 0.80
default_cfgFunction · 0.80

Calls 1

Tested by 4

default_cfgFunction · 0.64