Skip to content

Commit

Permalink
Refactor model classes (facebookresearch#180)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#180

Create new classes for phrase grounding and VQA tasks. Move contrastive alignment
projections out of the core model. Add new loss classes for VQA.

Test Plan:
Note that we modified the test results in test_mdetr, but it is just a revert to the numbers
prior to PR facebookresearch#138 (where we initially added the contrastive alignment projections to the model class).
```
python -m pytest -vv
```
E2E test in subsequent PRs

Reviewed By: RdoubleA

Differential Revision: D38160122

Pulled By: ebsmothers

fbshipit-source-id: 569643a35b15764d3f2dabec2026eee97c3ef251
  • Loading branch information
ebsmothers authored and facebook-github-bot committed Jul 28, 2022
1 parent 6587c87 commit d4813c6
Show file tree
Hide file tree
Showing 8 changed files with 739 additions and 174 deletions.
105 changes: 0 additions & 105 deletions examples/mdetr/contrastive_alignment_loss.py

This file was deleted.

Loading

0 comments on commit d4813c6

Please sign in to comment.