未验证 提交 b273cf27 编写于 作者: S shangliang Xu 提交者: GitHub

add merge_config (#3938)

上级 6333db86
...@@ -103,6 +103,8 @@ def main(): ...@@ -103,6 +103,8 @@ def main():
if FLAGS.slim_config: if FLAGS.slim_config:
cfg = build_slim_model(cfg, FLAGS.slim_config, mode='test') cfg = build_slim_model(cfg, FLAGS.slim_config, mode='test')
# FIXME: Temporarily solve the priority problem of FLAGS.opt
merge_config(FLAGS.opt)
check_config(cfg) check_config(cfg)
check_gpu(cfg.use_gpu) check_gpu(cfg.use_gpu)
check_version() check_version()
......
...@@ -128,6 +128,8 @@ def main(): ...@@ -128,6 +128,8 @@ def main():
if FLAGS.slim_config: if FLAGS.slim_config:
cfg = build_slim_model(cfg, FLAGS.slim_config) cfg = build_slim_model(cfg, FLAGS.slim_config)
# FIXME: Temporarily solve the priority problem of FLAGS.opt
merge_config(FLAGS.opt)
check.check_config(cfg) check.check_config(cfg)
check.check_gpu(cfg.use_gpu) check.check_gpu(cfg.use_gpu)
check.check_version() check.check_version()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册