Commit d09464be authored by myhloli's avatar myhloli
Browse files

feat(ocr): update OCR utility and dependencies

- Update the default configuration path in pytorchocr_utility.py
- Add required dependencies for paddleocr2pytorch in setup.py:
  - shapely
  - pyclipper
  - omegaconf
parent c45a706c
...@@ -7,7 +7,7 @@ import argparse ...@@ -7,7 +7,7 @@ import argparse
root_dir = Path(__file__).resolve().parent.parent.parent root_dir = Path(__file__).resolve().parent.parent.parent
DEFAULT_CFG_PATH = root_dir / "pytorchocr" / "modeling" / "arch_config.yaml" DEFAULT_CFG_PATH = root_dir / "pytorchocr" / "utils" / "resources" / "arch_config.yaml"
def init_args(): def init_args():
......
...@@ -47,6 +47,9 @@ if __name__ == '__main__': ...@@ -47,6 +47,9 @@ if __name__ == '__main__':
"PyYAML", # yaml "PyYAML", # yaml
"ftfy", # unimernet_hf "ftfy", # unimernet_hf
"openai", # openai SDK "openai", # openai SDK
"shapely", # imgaug-paddleocr2pytorch
"pyclipper", # paddleocr2pytorch
"omegaconf", # paddleocr2pytorch
], ],
"old_linux":[ "old_linux":[
"albumentations<=1.4.20", # 1.4.21引入的simsimd不支持2019年及更早的linux系统 "albumentations<=1.4.20", # 1.4.21引入的simsimd不支持2019年及更早的linux系统
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment