ffb87f4cf73276ef53feb65195e6a262d8ee5bae,detectron/tests/test_cfg.py,TestCfg,test_deprecated_key_from_file,#TestCfg#,158
Before Change
with tempfile.NamedTemporaryFile() as f:
cfg2 = copy.deepcopy(cfg)
cfg2.MODEL.DILATION = 2
yaml.dump(cfg2, f)
with self.assertRaises(AttributeError):
_ = cfg.MODEL.DILATION // noqa
core_config.merge_cfg_from_file(f.name)
with self.assertRaises(AttributeError):
After Change
with tempfile.NamedTemporaryFile() as f:
cfg2 = copy.deepcopy(cfg)
cfg2.MODEL.DILATION = 2
envu.yaml_dump(cfg2, f)
with self.assertRaises(AttributeError):
_ = cfg.MODEL.DILATION // noqa
core_config.merge_cfg_from_file(f.name)
with self.assertRaises(AttributeError):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: facebookresearch/Detectron
Commit Name: ffb87f4cf73276ef53feb65195e6a262d8ee5bae
Time: 2018-10-29
Author: ilijar@fb.com
File Name: detectron/tests/test_cfg.py
Class Name: TestCfg
Method Name: test_deprecated_key_from_file
Project Name: facebookresearch/Detectron
Commit Name: ffb87f4cf73276ef53feb65195e6a262d8ee5bae
Time: 2018-10-29
Author: ilijar@fb.com
File Name: detectron/tests/test_cfg.py
Class Name: TestCfg
Method Name: test_renamed_key_from_file
Project Name: facebookresearch/Detectron
Commit Name: ffb87f4cf73276ef53feb65195e6a262d8ee5bae
Time: 2018-10-29
Author: ilijar@fb.com
File Name: detectron/utils/subprocess.py
Class Name:
Method Name: process_in_parallel
Project Name: facebookresearch/Detectron
Commit Name: ffb87f4cf73276ef53feb65195e6a262d8ee5bae
Time: 2018-10-29
Author: ilijar@fb.com
File Name: detectron/tests/test_cfg.py
Class Name: TestCfg
Method Name: test_merge_cfg_from_file