from __future__ import absolute_import, division, print_function, unicode_literals# Set up custom environment before nearly anything else is imported# NOTE: this should be the first import (no not reorder)from fcos_core.utils.env import setup_environment # noqa F401 isort:skipimport env_tests.env as env_testsimport osimport copyfrom fcos_core.config import cfg as g_cfgdef get_config_root_path():return env_tests.get_config_root_path()def load_config(rel_path):''' Load config from file path specified as path relative to config_root '''cfg_path = os.path.join(env_tests.get_config_root_path(), rel_path)return load_config_from_file(cfg_path)def load_config_from_file(file_path):''' Load config from file path specified as absolute path '''ret = copy.deepcopy(g_cfg)ret.merge_from_file(file_path)return ret
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。