You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I follow ur instrumentation,but when I wanna train.
absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'cfg'. Did you mean: cfg_path ?
This problem troubled me.
How to solve this problem.hope to get ur answer.
thanks
The text was updated successfully, but these errors were encountered:
flags = tf.compat.v1.app.flags
if not os.path.exists(cfg_path):
raise RuntimeError(
"[!] Configuration path {} does not exist.".format(cfg_path))
if os.path.isdir(cfg_path):
cfg_path = os.path.join(cfg_path, 'cfg.yml')
with open(cfg_path, 'r') as f:
cfg = yaml.safe_load(f)
else:
with open(cfg_path, 'r') as f:
loaded_cfg = yaml.safe_load(f)
base_dir = os.path.dirname(cfg_path)
with open(os.path.join(base_dir, 'default.yml'), 'r') as f:
cfg = yaml.safe_load(f)
cfg.update(loaded_cfg)
with open(os.path.join('experiments/cfgs', 'key_doc.yml')) as f:
docs = yaml.safe_load(f)
flags.DEFINE_string('cfg_path', cfg_path, 'config path.')
I follow ur instrumentation,but when I wanna train.
absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'cfg'. Did you mean: cfg_path ?
This problem troubled me.
How to solve this problem.hope to get ur answer.
thanks
The text was updated successfully, but these errors were encountered: