Skip to content

Commit

Permalink
remove custom eval script
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jan 18, 2019
1 parent 36b6613 commit f27b4b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vqa_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ def parse_args():
data = args.data
data_subtype = args.data_subtype

ann_file = args.annotations or '{args.data_dir}/Annotations/{args.version}_{args.data}_{args.data_subtype}_annotations.json'.format(args=args)
ques_file = args.questions or '{args.data_dir}/Questions/{args.version}_{args.task}_{args.data}_{args.data_subtype}_questions.json'.format(args=args)
ann_file = args.annotations or '{args.data_dir}/Annotations/{args.version}_{args.data}_{args.data_subtype}_annotations.json'.format(
args=args)
ques_file = args.questions or '{args.data_dir}/Questions/{args.version}_{args.task}_{args.data}_{args.data_subtype}_questions.json'.format(
args=args)

img_dir = args.image_dir or '{args.data_dir}/Images/{args.data}/{args.data_subtype}/'.format(args=args)
img_dir = args.image_dir or '{args.data_dir}/Images/{args.data}/{args.data_subtype}/'.format(
args=args)
file_types = ['results', 'accuracy', 'evalQA', 'evalQuesType', 'evalAnsType']

# An example result json file has been provided in './Results' folder.
Expand Down

0 comments on commit f27b4b9

Please sign in to comment.