Skip to content

Commit

Permalink
remove lfs file
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoFANGUK committed Oct 7, 2023
1 parent 5eb4e31 commit f34695b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

7 changes: 5 additions & 2 deletions backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
# ×××××××××××××××××××× [不要改]判断是否使用GPU start ××××××××××××××××××××



# ×××××××××××××××××××× [不要改]读取语言、模型路径、字典路径 start ××××××××××××××××××××
# 设置识别语言
REC_CHAR_TYPE = settings_config['DEFAULT']['Language']
Expand All @@ -89,7 +88,7 @@
if MODE_TYPE == 'fast':
ACCURATE_MODE_ON = False
# 模型文件目录
# 默认模型版本 V3
# 默认模型版本 V4
MODEL_VERSION = 'V4'
# 文本检测模型
DET_MODEL_BASE = os.path.join(BASE_DIR, 'models')
Expand Down Expand Up @@ -169,6 +168,10 @@
if 'inference.pdiparams' not in (os.listdir(REC_MODEL_PATH)):
fs = Filesplit()
fs.merge(input_dir=REC_MODEL_PATH)
# 查看该路径下是否有文本模型识别完整文件,没有的话合并小文件生成完整文件
if 'inference.pdiparams' not in (os.listdir(DET_MODEL_PATH)):
fs = Filesplit()
fs.merge(input_dir=DET_MODEL_PATH)
# ×××××××××××××××××××× [不要改]读取语言、模型路径、字典路径 end ××××××××××××××××××××


Expand Down
4 changes: 4 additions & 0 deletions backend/models/V4/ch_det/fs_manifest.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
filename,filesize,encoding,header
inference_1.pdiparams,50000000,,
inference_2.pdiparams,50000000,,
inference_3.pdiparams,13295054,,
3 changes: 0 additions & 3 deletions backend/models/V4/ch_det/inference.pdiparams

This file was deleted.

Binary file added backend/models/V4/ch_det/inference_1.pdiparams
Binary file not shown.
Binary file added backend/models/V4/ch_det/inference_2.pdiparams
Binary file not shown.
Binary file added backend/models/V4/ch_det/inference_3.pdiparams
Binary file not shown.

0 comments on commit f34695b

Please sign in to comment.