Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
60fb5a8e
Unverified
Commit
60fb5a8e
authored
Jun 26, 2020
by
MissPenguin
Committed by
GitHub
Jun 26, 2020
Browse files
Merge pull request #266 from littletomatodonkey/fix_init
fix ch comment to support py2 and some other typo
parents
824563c6
c25c636d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
70 additions
and
4 deletions
+70
-4
doc/doc_ch/recognition.md
doc/doc_ch/recognition.md
+1
-1
doc/doc_en/recognition_en.md
doc/doc_en/recognition_en.md
+1
-1
ppocr/modeling/architectures/__init__.py
ppocr/modeling/architectures/__init__.py
+13
-0
ppocr/modeling/backbones/__init__.py
ppocr/modeling/backbones/__init__.py
+13
-0
ppocr/modeling/heads/__init__.py
ppocr/modeling/heads/__init__.py
+13
-0
ppocr/modeling/losses/__init__.py
ppocr/modeling/losses/__init__.py
+13
-0
ppocr/modeling/stns/__init__.py
ppocr/modeling/stns/__init__.py
+13
-0
tools/eval_utils/eval_det_utils.py
tools/eval_utils/eval_det_utils.py
+2
-1
tools/eval_utils/eval_rec_utils.py
tools/eval_utils/eval_rec_utils.py
+1
-1
No files found.
doc/doc_ch/recognition.md
View file @
60fb5a8e
...
...
@@ -10,7 +10,7 @@ PaddleOCR 支持两种数据格式: `lmdb` 用于训练公开数据,调试算
训练数据的默认存储路径是
`PaddleOCR/train_data`
,如果您的磁盘上已有数据集,只需创建软链接至数据集目录:
```
ln -sf <path/to/dataset> <path/to/paddle_
detection
>/train_data/dataset
ln -sf <path/to/dataset> <path/to/paddle_
ocr
>/train_data/dataset
```
...
...
doc/doc_en/recognition_en.md
View file @
60fb5a8e
...
...
@@ -10,7 +10,7 @@ Please organize the dataset as follows:
The default storage path for training data is
`PaddleOCR/train_data`
, if you already have a dataset on your disk, just create a soft link to the dataset directory:
```
ln -sf <path/to/dataset> <path/to/paddle_
detection
>/train_data/dataset
ln -sf <path/to/dataset> <path/to/paddle_
ocr
>/train_data/dataset
```
...
...
ppocr/modeling/architectures/__init__.py
0 → 100755
View file @
60fb5a8e
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ppocr/modeling/backbones/__init__.py
0 → 100755
View file @
60fb5a8e
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ppocr/modeling/heads/__init__.py
0 → 100755
View file @
60fb5a8e
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ppocr/modeling/losses/__init__.py
0 → 100755
View file @
60fb5a8e
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ppocr/modeling/stns/__init__.py
0 → 100755
View file @
60fb5a8e
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
tools/eval_utils/eval_det_utils.py
View file @
60fb5a8e
...
...
@@ -65,6 +65,7 @@ def cal_det_res(exe, config, eval_info_dict):
err
=
"concatenate error usually caused by different input image shapes in evaluation or testing.
\n
\
Please set
\"
test_batch_size_per_card
\"
in main yml as 1
\n
\
or add
\"
test_image_shape: [h, w]
\"
in reader yml for EvalReader."
raise
Exception
(
err
)
outs
=
exe
.
run
(
eval_info_dict
[
'program'
],
\
feed
=
{
'image'
:
img_list
},
\
...
...
@@ -113,7 +114,7 @@ def cal_det_metrics(gt_label_path, save_res_path):
gt_label_path(string): The groundtruth detection label file path
save_res_path(string): The saved predicted detection label path
return:
claculated metrics including Hmean
、
precision and recall
claculated metrics including Hmean
,
precision and recall
"""
evaluator
=
DetectionIoUEvaluator
()
gt_label_infor
=
load_label_infor
(
gt_label_path
,
do_ignore
=
True
)
...
...
tools/eval_utils/eval_rec_utils.py
View file @
60fb5a8e
...
...
@@ -83,7 +83,7 @@ def eval_rec_run(exe, config, eval_info_dict, mode):
def
test_rec_benchmark
(
exe
,
config
,
eval_info_dict
):
"
评估lmdb 数据
"
"
Evaluate lmdb dataset
"
eval_data_list
=
[
'IIIT5k_3000'
,
'SVT'
,
'IC03_860'
,
'IC03_867'
,
\
'IC13_857'
,
'IC13_1015'
,
'IC15_1811'
,
'IC15_2077'
,
'SVTP'
,
'CUTE80'
]
eval_data_dir
=
config
[
'TestReader'
][
'lmdb_sets_dir'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment