cnocr 2.3__tar.gz → 2.3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cnocr-2.3 → cnocr-2.3.0.1}/PKG-INFO +1 -1
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/__version__.py +1 -1
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/utility.py +1 -1
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/PKG-INFO +1 -1
- {cnocr-2.3 → cnocr-2.3.0.1}/LICENSE +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/README.md +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/app.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/classification/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/classification/dataset.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/classification/image_classifier.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/clf_cli.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/cli.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/cn_ocr.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/consts.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/data_utils/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/data_utils/aug.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/data_utils/block_shuffle.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/data_utils/transforms.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/data_utils/utils.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/dataset.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/dataset_utils.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/gradio_app.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/gradio_app2.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/label_cn.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/label_number.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/line_split.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/lr_scheduler.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/models/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/models/ctc.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/models/densenet.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/models/mobilenet.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/models/ocr_model.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/consts.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/postprocess/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/postprocess/rec_postprocess.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/pp_recognizer.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/utils/__init__.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/utils/chinese_cht_dict.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/utils/en_dict.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/ppocr/utils/ppocr_keys_v1.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/recognizer.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/serve.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/trainer.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr/utils.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/SOURCES.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/dependency_links.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/entry_points.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/not-zip-safe +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/requires.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/cnocr.egg-info/top_level.txt +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/setup.cfg +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/setup.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_cnocr.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_dataset.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_models.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_ppocr.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_pytorch.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_trainer.py +0 -0
- {cnocr-2.3 → cnocr-2.3.0.1}/tests/test_transforms.py +0 -0
|
@@ -167,7 +167,7 @@ def create_predictor(model_dir, mode, ort_providers=None):
|
|
|
167
167
|
if not os.path.exists(model_file_path):
|
|
168
168
|
raise ValueError("not find model file path {}".format(
|
|
169
169
|
model_file_path))
|
|
170
|
-
if ort_providers is
|
|
170
|
+
if ort_providers is None:
|
|
171
171
|
ort_providers = get_default_ort_providers()
|
|
172
172
|
logger.debug(f'ort providers: {ort_providers}')
|
|
173
173
|
sess = ort.InferenceSession(model_file_path, providers=ort_providers)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|