mirror of
https://github.com/sml2h3/ddddocr.git
synced 2025-05-02 11:32:06 +08:00
修复在训练程序在single模式下,推理结果为None的问题
This commit is contained in:
parent
262b017339
commit
db75d4ac99
12
README.md
12
README.md
@ -8,8 +8,6 @@ DdddOcr、最简依赖的理念,尽量减少用户的配置和使用成本,
|
||||
|
||||
项目地址: [点我传送](https://github.com/sml2h3/ddddocr)
|
||||
|
||||
### 自营GPT聚合平台: [点我传送](https://juxiangyun.com/)
|
||||
|
||||
<!-- PROJECT SHIELDS -->
|
||||
|
||||
[![Contributors][contributors-shield]][contributors-url]
|
||||
@ -22,20 +20,18 @@ DdddOcr、最简依赖的理念,尽量减少用户的配置和使用成本,
|
||||
<br />
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/shaojintian/Best_README_template/">
|
||||
<a href="https://github.com/sml2h3/ddddocr/">
|
||||
<img src="https://cdn.wenanzhe.com/img/logo.png!/crop/700x500a400a500" alt="Logo">
|
||||
</a>
|
||||
<p align="center">
|
||||
一个容易使用的通用验证码识别python库
|
||||
<br />
|
||||
<a href="https://github.com/shaojintian/Best_README_template"><strong>探索本项目的文档 »</strong></a>
|
||||
<a href="https://github.com/sml2h3/ddddocr/"><strong>探索本项目的文档 »</strong></a>
|
||||
<br />
|
||||
<br />
|
||||
·
|
||||
<a href="https://github.com/sml2h3/ddddocr/issues">报告Bug</a>
|
||||
·
|
||||
<a href="https://github.com/sml2h3/ddddocr-fastapi">一键API服务</a>
|
||||
·
|
||||
<a href="https://github.com/sml2h3/ddddocr/issues">提出新特性</a>
|
||||
</p>
|
||||
|
||||
@ -125,10 +121,6 @@ ddddocr
|
||||
|
||||
```
|
||||
|
||||
**iii. 一键启动**
|
||||
<a href="https://github.com/sml2h3/ddddocr-fastapi">一键API服务</a>
|
||||
|
||||
|
||||
### 项目底层支持
|
||||
|
||||
本项目基于[dddd_trainer](https://github.com/sml2h3/dddd_trainer) 训练所得,训练底层框架位pytorch,ddddocr推理底层抵赖于[onnxruntime](https://pypi.org/project/onnxruntime/),故本项目的最大兼容性与python版本支持主要取决于[onnxruntime](https://pypi.org/project/onnxruntime/)。
|
||||
|
@ -20,13 +20,13 @@ DdddOcr、最简依赖的理念,尽量减少用户的配置和使用成本,
|
||||
<br />
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/shaojintian/Best_README_template/">
|
||||
<a href="https://github.com/sml2h3/ddddocr/">
|
||||
<img src="https://cdn.wenanzhe.com/img/logo.png!/crop/700x500a400a500" alt="Logo">
|
||||
</a>
|
||||
<p align="center">
|
||||
一个容易使用的通用验证码识别python库
|
||||
<br />
|
||||
<a href="https://github.com/shaojintian/Best_README_template"><strong>探索本项目的文档 »</strong></a>
|
||||
<a href="https://github.com/sml2h3/ddddocr/"><strong>探索本项目的文档 »</strong></a>
|
||||
<br />
|
||||
<br />
|
||||
·
|
||||
|
@ -2648,6 +2648,7 @@ class DdddOcr(object):
|
||||
if self.__word:
|
||||
for item in ort_outs[1]:
|
||||
result.append(self.__charset[item])
|
||||
return ''.join(result)
|
||||
else:
|
||||
if not self.use_import_onnx:
|
||||
# 概率输出仅限于使用官方模型
|
||||
|
Loading…
Reference in New Issue
Block a user