mirror of
https://github.com/JDAI-CV/fast-reid.git
synced 2025-06-03 14:50:47 +08:00
do not save eval_only to config.yaml
This commit is contained in:
parent
3cad97418b
commit
d1f8dbb308
@ -24,14 +24,15 @@ def setup(args):
|
|||||||
cfg = get_cfg()
|
cfg = get_cfg()
|
||||||
cfg.merge_from_file(args.config_file)
|
cfg.merge_from_file(args.config_file)
|
||||||
cfg.merge_from_list(args.opts)
|
cfg.merge_from_list(args.opts)
|
||||||
setattr(cfg, 'eval_only', args.eval_only)
|
|
||||||
cfg.freeze()
|
|
||||||
default_setup(cfg, args)
|
default_setup(cfg, args)
|
||||||
return cfg
|
return cfg
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
cfg = setup(args)
|
cfg = setup(args)
|
||||||
|
cfg.defrost()
|
||||||
|
setattr(cfg, 'eval_only', args.eval_only)
|
||||||
|
cfg.freeze()
|
||||||
|
|
||||||
if args.eval_only:
|
if args.eval_only:
|
||||||
cfg.defrost()
|
cfg.defrost()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user