File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
official/projects/yolo/serving Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,23 @@ def main(_):
81
81
82
82
params = exp_factory .get_exp_config (FLAGS .experiment )
83
83
for config_file in FLAGS .config_file or []:
84
- params = hyperparams .override_params_dict (
85
- params , config_file , is_strict = True )
84
+ try :
85
+ params = hyperparams .override_params_dict (
86
+ params , config_file , is_strict = True
87
+ )
88
+ except KeyError :
89
+ params = hyperparams .override_params_dict (
90
+ params , config_file , is_strict = False
91
+ )
86
92
if FLAGS .params_override :
87
- params = hyperparams .override_params_dict (
88
- params , FLAGS .params_override , is_strict = True )
89
-
93
+ try :
94
+ params = hyperparams .override_params_dict (
95
+ params , FLAGS .params_override , is_strict = True
96
+ )
97
+ except KeyError :
98
+ params = hyperparams .override_params_dict (
99
+ params , FLAGS .params_override , is_strict = False
100
+ )
90
101
params .validate ()
91
102
params .lock ()
92
103
You can’t perform that action at this time.
0 commit comments