未验证 提交 d4ad4848 编写于 作者: Q qingqing01 提交者: GitHub

Merge pull request #5 from qingqing01/small_clean

Remove print_total_cfg in tools/eval.py and tools/infer.py
...@@ -26,8 +26,6 @@ script: ...@@ -26,8 +26,6 @@ script:
- .travis/precommit.sh || exit_code=$(( exit_code | $? )) - .travis/precommit.sh || exit_code=$(( exit_code | $? ))
- docker run -i --rm -v "$PWD:/py_unittest" paddlepaddle/paddle:latest /bin/bash -c - 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 | $? )) 'cd /py_unittest; sh .travis/unittest.sh' || exit_code=$(( exit_code | $? ))
- |
script/deploy_doc.sh
notifications: notifications:
email: email:
......
...@@ -39,7 +39,6 @@ from ppdet.utils.check import check_gpu ...@@ -39,7 +39,6 @@ from ppdet.utils.check import check_gpu
from ppdet.modeling.model_input import create_feed from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader from ppdet.data.data_feed import create_reader
from ppdet.core.workspace import load_config, merge_config, create from ppdet.core.workspace import load_config, merge_config, create
from ppdet.utils.cli import print_total_cfg
from ppdet.utils.cli import ArgsParser from ppdet.utils.cli import ArgsParser
import logging import logging
...@@ -61,7 +60,6 @@ def main(): ...@@ -61,7 +60,6 @@ def main():
merge_config(FLAGS.opt) merge_config(FLAGS.opt)
# check if set use_gpu=True in paddlepaddle cpu version # check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu) check_gpu(cfg.use_gpu)
print_total_cfg(cfg)
if 'eval_feed' not in cfg: if 'eval_feed' not in cfg:
eval_feed = create(main_arch + 'EvalFeed') eval_feed = create(main_arch + 'EvalFeed')
......
...@@ -37,7 +37,6 @@ set_paddle_flags( ...@@ -37,7 +37,6 @@ set_paddle_flags(
from paddle import fluid from paddle import fluid
from ppdet.utils.cli import print_total_cfg
from ppdet.core.workspace import load_config, merge_config, create from ppdet.core.workspace import load_config, merge_config, create
from ppdet.modeling.model_input import create_feed from ppdet.modeling.model_input import create_feed
from ppdet.data.data_feed import create_reader from ppdet.data.data_feed import create_reader
...@@ -108,7 +107,6 @@ def main(): ...@@ -108,7 +107,6 @@ def main():
# check if set use_gpu=True in paddlepaddle cpu version # check if set use_gpu=True in paddlepaddle cpu version
check_gpu(cfg.use_gpu) check_gpu(cfg.use_gpu)
print_total_cfg(cfg)
if 'test_feed' not in cfg: if 'test_feed' not in cfg:
test_feed = create(main_arch + 'TestFeed') test_feed = create(main_arch + 'TestFeed')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册