Commit 9aebc711 authored by tholor's avatar tholor
Browse files

adjust error message related to args.do_eval

parent 4a450b25
...@@ -501,8 +501,8 @@ def main(): ...@@ -501,8 +501,8 @@ def main():
if n_gpu > 0: if n_gpu > 0:
torch.cuda.manual_seed_all(args.seed) torch.cuda.manual_seed_all(args.seed)
if not args.do_train and not args.do_eval: if not args.do_train:
raise ValueError("At least one of `do_train` or `do_eval` must be True.") raise ValueError("Training is currently the only implemented execution option. Please set `do_train`.")
if os.path.exists(args.output_dir) and os.listdir(args.output_dir): if os.path.exists(args.output_dir) and os.listdir(args.output_dir):
raise ValueError("Output directory ({}) already exists and is not empty.".format(args.output_dir)) raise ValueError("Output directory ({}) already exists and is not empty.".format(args.output_dir))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment