Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VQA: add option for beam-search validation during fine-tuning #79

Merged
merged 6 commits into from
Apr 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
VQA: add option for beam-search validation during fine-tuning
  • Loading branch information
yangapku committed Apr 22, 2022
commit 0b152928e411282e5e2f9f4b7d4a6426b99905b9
2 changes: 1 addition & 1 deletion tasks/mm_tasks/vqa_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def build_model(self, cfg):
self.valid_constraint_masks_list += [constraint_mask_list[i:i+self.cfg.valid_batch_size]]
elif self.cfg.val_inference_type == "beamsearch":
gen_args = json.loads(self.cfg.eval_args)
self.sequence_generator = self.build_generator(
self.generator = self.build_generator(
[model], Namespace(**gen_args)
)
else:
Expand Down