Skip to content

[feat] Add UNITER pretraining heads#1126

Closed
Ryan-Qiyu-Jiang wants to merge 11 commits intogh/ryan-qiyu-jiang/14/basefrom
gh/ryan-qiyu-jiang/14/head
Closed

[feat] Add UNITER pretraining heads#1126
Ryan-Qiyu-Jiang wants to merge 11 commits intogh/ryan-qiyu-jiang/14/basefrom
gh/ryan-qiyu-jiang/14/head

Conversation

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang Ryan-Qiyu-Jiang commented Oct 19, 2021

Add MRC, MRFR, WRA heads for UNITER pretraining.

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 19, 2021
@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Add MRC, MRFR, WRA heads for UNITER pretraining.

Differential Revision: [D31768455](https://our.internmc.facebook.com/intern/diff/D31768455)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@Ryan-Qiyu-Jiang has updated the pull request. You must reimport the pull request before landing.

@Ryan-Qiyu-Jiang
Copy link
Copy Markdown
Contributor Author

@Ryan-Qiyu-Jiang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Nov 26, 2021
Summary:
Pull Request resolved: #1126

Add MRC, MRFR, WRA heads for UNITER pretraining.
MRC = Masked Region Classification.
MRFR = Masked Region Feature Regression.
WRA = Word Region Alignment.

Heads forward return a dict with `losses`.
These heads can be used as pretraining tasks
for other VL models.
Details at https://arxiv.org/abs/1909.11740

Test Plan:
**Unit tests**
Test direct instantiation and forward pass for each head.
Instantiation through build() and configs is tested in unit tests in later diffs by the models that use these heads.

Tested as part of UNITER pretraining on masked COCO

Reviewed By: ebsmothers

Differential Revision: D31768455

Pulled By: Ryan-Qiyu-Jiang

fbshipit-source-id: 9b48f81c472cd1859f32bc813484296208e206f5
@facebook-github-bot facebook-github-bot deleted the gh/ryan-qiyu-jiang/14/head branch December 27, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants