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
476c51a7
Commit
476c51a7
authored
May 10, 2020
by
tink2123
Browse files
mv dataset in config
parent
56c6c3ae
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
configs/rec/rec_chinese_lite_train.yml
configs/rec/rec_chinese_lite_train.yml
+0
-1
set_env.sh
set_env.sh
+12
-0
tools/eval.py
tools/eval.py
+2
-3
No files found.
configs/rec/rec_chinese_lite_train.yml
View file @
476c51a7
Global
:
algorithm
:
CRNN
dataset
:
common
use_gpu
:
true
epoch_num
:
300
log_smooth_window
:
20
...
...
set_env.sh
0 → 100644
View file @
476c51a7
#. /paddle/set_env.sh↩
export
CUDA_VISIBLE_DEVICES
=
"0,1,2,3"
↩
export
PYTHONPATH
=
$PYTHONPATH
:.↩
export
FLAGS_fraction_of_gpu_memory_to_use
=
1.0↩
↩
python_bin_dir
=
"/opt/_internal/cpython-3.7.0/bin/"
↩
alias
python
=
$python_bin_dir
"python3.7"
↩
alias
pip
=
$python_bin_dir
"pip3.7"
↩
alias
ipython
=
$python_bin_dir
"ipython3"
↩
export
LD_LIBRARY_PATH
=
/opt/_internal/cpython-3.7.0/lib:
$LD_LIBRARY_PATH
↩
export
PYTHONPATH
=
$PYTHONPATH
:.↩
ldconfig↩
tools/eval.py
View file @
476c51a7
...
...
@@ -79,9 +79,8 @@ def main():
'fetch_varname_list'
:
eval_fetch_varname_list
}
metrics
=
eval_det_run
(
exe
,
config
,
eval_info_dict
,
"test"
)
else
:
dataset
=
config
[
'Global'
][
'dataset'
]
assert
dataset
in
[
'lmdb'
,
'common'
]
if
dataset
==
'common'
:
reader_type
=
config
[
'Global'
][
'reader_yml'
]
if
"chinese"
in
reader_type
:
eval_reader
=
reader_main
(
config
=
config
,
mode
=
"eval"
)
eval_info_dict
=
{
'program'
:
eval_program
,
\
'reader'
:
eval_reader
,
\
...
...
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