Skip to content

Commit

Permalink
Merge pull request #304 from breezedeus/dev
Browse files Browse the repository at this point in the history
fix: onnx providers for ppocr
  • Loading branch information
breezedeus authored Dec 26, 2023
2 parents 3a7b102 + e516eda commit acf8a97
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cnocr/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# specific language governing permissions and limitations
# under the License.

__version__ = '2.3'
__version__ = '2.3.0.1'
2 changes: 1 addition & 1 deletion cnocr/ppocr/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def create_predictor(model_dir, mode, ort_providers=None):
if not os.path.exists(model_file_path):
raise ValueError("not find model file path {}".format(
model_file_path))
if ort_providers is not None:
if ort_providers is None:
ort_providers = get_default_ort_providers()
logger.debug(f'ort providers: {ort_providers}')
sess = ort.InferenceSession(model_file_path, providers=ort_providers)
Expand Down
6 changes: 6 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

### Update 2023.12.26:发布 V2.3.0.1

主要变更:

* 修复使用 ppocr ONNX 模型时传入的 providers 参数的逻辑问题。

### Update 2023.12.24:发布 V2.3

主要变更:
Expand Down

0 comments on commit acf8a97

Please sign in to comment.