Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#5 from qingqing01/small_clean
Browse files Browse the repository at this point in the history
Remove print_total_cfg in tools/eval.py and tools/infer.py
  • Loading branch information
qingqing01 committed Oct 30, 2019
2 parents cfd9dba + ecbf620 commit d4ad484
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ script:
- .travis/precommit.sh || exit_code=$(( exit_code | $? ))
- docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c
'cd /py_unittest; sh .travis/unittest.sh' || exit_code=$(( exit_code | $? ))
- |
script/deploy_doc.sh

notifications:
email:
Expand Down
2 changes: 0 additions & 2 deletions tools/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def set_paddle_flags(**kwargs):
from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader
from ppdet.core.workspace import load_config, merge_config, create
from ppdet.utils.cli import print_total_cfg
from ppdet.utils.cli import ArgsParser

import logging
Expand All @@ -61,7 +60,6 @@ def main():
merge_config(FLAGS.opt)
# check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu)
print_total_cfg(cfg)

if 'eval_feed' not in cfg:
eval_feed = create(main_arch + 'EvalFeed')
Expand Down
2 changes: 0 additions & 2 deletions tools/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def set_paddle_flags(**kwargs):

from paddle import fluid

from ppdet.utils.cli import print_total_cfg
from ppdet.core.workspace import load_config, merge_config, create
from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader
Expand Down Expand Up @@ -108,7 +107,6 @@ def main():

# check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu)
print_total_cfg(cfg)

if 'test_feed' not in cfg:
test_feed = create(main_arch + 'TestFeed')
Expand Down

0 comments on commit d4ad484

Please sign in to comment.