Skip to content

Commit a555474

Browse files
authored
Update default output file to {dataset}_{pretrained}_{model}_{language}_{task}.json, otherwise same result.json file overwritten (#140)
1 parent bc2a6f5 commit a555474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clip_benchmark/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_parser_args():
5959
parser_eval.add_argument('--dump_templates', default=False, action="store_true", help="dump templates to the results json file.")
6060

6161
parser_eval.add_argument('--language', default="en", type=str, nargs="+", help="language(s) of classname and prompts to use for zeroshot classification.")
62-
parser_eval.add_argument('--output', default="result.json", type=str, help="output file where to dump the metrics. Can be in form of a template, e.g., --output='{dataset}_{pretrained}_{model}_{language}_{task}.json'")
62+
parser_eval.add_argument('--output', default="{dataset}_{pretrained}_{model}_{language}_{task}.json", type=str, help="output file where to dump the metrics. Can be in form of a template, e.g., --output='{dataset}_{pretrained}_{model}_{language}_{task}.json'")
6363
parser_eval.add_argument('--quiet', dest='verbose', action="store_false", help="suppress verbose messages")
6464
parser_eval.add_argument('--save_clf', default=None, type=str, help="optionally save the classification layer output by the text tower")
6565
parser_eval.add_argument('--load_clfs', nargs='+', default=[], type=str, help="optionally load and average mutliple layers output by text towers.")

0 commit comments

Comments
 (0)