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
7da14fdd
"src/include/blockwise_direct_convolution.hip.hpp" did not exist on "3dbd47252c860af79aa93f66ac19c891cb347dec"
Commit
7da14fdd
authored
May 18, 2020
by
LDOUBLEV
Browse files
fix bug when running det eval
parent
516139e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
doc/detection.md
doc/detection.md
+2
-2
tools/eval.py
tools/eval.py
+2
-2
No files found.
doc/detection.md
View file @
7da14fdd
...
...
@@ -79,10 +79,10 @@ python3 tools/eval.py -c configs/det/det_mv3_db.yml -o Global.checkpoints="./ou
测试单张图像的检测效果
```
python3 tools/infer_det.py -c config/det/det_mv3_db.yml -o TestReader.single_img_path="./doc/imgs_en/img_10.jpg"
python3 tools/infer_det.py -c config/det/det_mv3_db.yml -o TestReader.single_img_path="./doc/imgs_en/img_10.jpg"
Global.checkpoints="./output/det_db/best_accuracy"
```
测试文件夹下所有图像的检测效果
```
python3 tools/infer_det.py -c config/det/det_mv3_db.yml -o TestReader.single_img_path="./doc/imgs_en/"
python3 tools/infer_det.py -c config/det/det_mv3_db.yml -o TestReader.single_img_path="./doc/imgs_en/"
Global.checkpoints="./output/det_db/best_accuracy"
```
tools/eval.py
View file @
7da14fdd
...
...
@@ -72,12 +72,12 @@ def main():
init_model
(
config
,
eval_program
,
exe
)
if
alg
in
[
'EAST'
,
'DB'
]:
eval_reader
=
reader_main
(
config
=
config
,
mode
=
"
test
"
)
eval_reader
=
reader_main
(
config
=
config
,
mode
=
"
eval
"
)
eval_info_dict
=
{
'program'
:
eval_program
,
\
'reader'
:
eval_reader
,
\
'fetch_name_list'
:
eval_fetch_name_list
,
\
'fetch_varname_list'
:
eval_fetch_varname_list
}
metrics
=
eval_det_run
(
exe
,
config
,
eval_info_dict
,
"
test
"
)
metrics
=
eval_det_run
(
exe
,
config
,
eval_info_dict
,
"
eval
"
)
else
:
reader_type
=
config
[
'Global'
][
'reader_yml'
]
if
"benchmark"
not
in
reader_type
:
...
...
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