Skip to content
A modular framework for vision & language multimodal research from Facebook AI Research (FAIR)
Python Other
  1. Python 99.5%
  2. Other 0.5%
Branch: master
Clone or download

Latest commit

vedanuj and facebook-github-bot [mmf] Fblearner changes for Hateful Memes, HM sweep script, some fixes (
#281)

Summary:
Pull Request resolved: #281

Pull Request resolved: fairinternal/mmf-internal#121

- Added new squashfs hateful_memes.img to `/mnt/fair/hateful_memes.img` and `/mnt/fair-flash3-east/hateful_memes.img` . This contains all data files necessary for hateful memes v5
- Added Hateful Memes sweep script for mmbt. This can be modified to run with other models
- set env variable for `TORCH_HOME` to read cached files for models, tokenizer configs etc.
- add `projects` files to target so that fblearner can find relative configs
- fblearner fixes after file name was changed

Reviewed By: mamhamed

Differential Revision: D21759302

fbshipit-source-id: eec83b519a46b7e0c05c465836e1a9309e71031a
Latest commit d176851 May 29, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci [feat,refactor] build,visualize dataset; refactor MultiDataset, fix HM ( May 23, 2020
.github/ISSUE_TEMPLATE [refactor] Rename to MMF (#80) May 8, 2020
docs [docs] Update Quickstart documentation (#277) May 28, 2020
mmf [fix] Regression due to OmegaConf upgrade in pop (#275) May 26, 2020
mmf_cli [feat,refactor] build,visualize dataset; refactor MultiDataset, fix HM ( May 23, 2020
projects [fix] Regression due to OmegaConf upgrade in pop (#275) May 26, 2020
tests [fix] Regression due to OmegaConf upgrade in pop (#275) May 26, 2020
tools [mmf] Fblearner changes for Hateful Memes, HM sweep script, some fixes ( May 30, 2020
.editorconfig [enhancement] Cache CircleCI tests, add isort, black tests (#60) May 8, 2020
.flake8 [fix] Fix flake8 errors (#42) May 8, 2020
.gitignore [docs] Fix docs build and some refactoring (#98) May 8, 2020
.pre-commit-config.yaml [fix] Regression due to OmegaConf upgrade in pop (#275) May 26, 2020
CODE_OF_CONDUCT.md Update COC and Contributing Apr 22, 2019
CONTRIBUTING.md [refactor] Rename to MMF (#80) May 8, 2020
LICENSE [refactor] Rename to MMF (#80) May 8, 2020
NOTICES [chore] Add licenses to files missing it along with precommit hook (#270 May 23, 2020
README.md [chore] Add licenses to files missing it along with precommit hook (#270 May 23, 2020
pyproject.toml [docs] Add docs for configuration system, fix rtd build (#253) May 14, 2020
requirements.txt [feat,refactor] build,visualize dataset; refactor MultiDataset, fix HM ( May 23, 2020
setup.py [chores] Upgrade to Pytorch 1.5, torchvision 0.6 (#265) May 22, 2020

README.md

MMF

NOTE: MMF is still in beta mode and will replace Pythia framework. To get the latest Pythia code which doesn't contain MMF changes, please use the following command:

git clone --branch v0.3 https://github.com/facebookresearch/mmf pythia

MMF is a modular framework for vision and language multimodal research. Built on top of PyTorch, it features:

  • Model Zoo: Reference implementations for state-of-the-art vision and language model including LoRRA (SoTA on VQA and TextVQA), Pythia model (VQA 2018 challenge winner), BAN and BUTD.
  • Multi-Tasking: Support for multi-tasking which allows training on multiple dataset together.
  • Datasets: Includes support for various datasets built-in including VQA, VizWiz, TextVQA, VisualDialog and COCO Captioning.
  • Modules: Provides implementations for many commonly used layers in vision and language domain
  • Distributed: Support for distributed training based on DataParallel as well as DistributedDataParallel.
  • Unopinionated: Unopinionated about the dataset and model implementations built on top of it.
  • Customization: Custom losses, metrics, scheduling, optimizers, tensorboard; suits all your custom needs.

You can use MMF to bootstrap for your next vision and language multimodal research project.

MMF can also act as starter codebase for challenges around vision and language datasets (TextVQA challenge, VQA challenge). MMF was formerly known as Pythia.

MMF Examples

Installation

Follow installation instructions in the documentation.

Documentation

Learn more about MMF here.

Citation

If you use MMF in your work, please cite:

@inproceedings{singh2018pythia,
  title={Pythia-a platform for vision \& language research},
  author={Singh, Amanpreet and Goswami, Vedanuj and Natarajan, Vivek and Jiang, Yu and Chen, Xinlei and Shah, Meet and Rohrbach, Marcus and Batra, Dhruv and Parikh, Devi},
  booktitle={SysML Workshop, NeurIPS},
  volume={2018},
  year={2018}
}

License

MMF is licensed under BSD license available in LICENSE file

You can’t perform that action at this time.