Skip to content

Commit

Permalink
Merge branch 'main' into feature/vqa
Browse files Browse the repository at this point in the history
  • Loading branch information
yangapku committed Apr 22, 2022
2 parents d9bf799 + ff8f992 commit 7f8c77b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/mm_tasks/refcoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ class RefcocoConfig(OFAConfig):
max_image_size: int = field(
default=512, metadata={"help": "max image size for normalization"}
)
scst: bool = field(
default=False, metadata={"help": "Self-critical sequence training"}
)
scst_args: str = field(
default='{}',
metadata={
"help": 'generation args for Self-critical sequence training, as JSON string'
},
)


@register_task("refcoco", dataclass=RefcocoConfig)
Expand Down

0 comments on commit 7f8c77b

Please sign in to comment.