Preserve underscores in option values which differ from init_model
@@ -251,7 +251,7 @@ def compare_init_model_opts(opt: Opt, curr_opt: Opt):
)
different_strs = [
- '--{} {}'.format(k, v).replace('_', '-') for k, v in different_opts.items()
+ '--{} {}'.format(k.replace('_', '-'), v) for k, v in different_opts.items()
]
if different_strs:
logging.warn(
