This project focuses on Natural Language Visual Reasoning (NLVR2), where a model determines whether a natural language statement is true or false based on two images.
The project compares a traditional machine learning baseline with a state-of-the-art multimodal transformer model.
The original NLVR2 dataset files (train.json and dev.json) are not included in this repository because they exceed GitHub's file size limitations for web uploads.
The dataset can be downloaded from the following Google Drive folder:
Google Drive Link:
https://drive.google.com/drive/folders/1i6G_r8gqHjGzbhcIT9sGCg1uLOW2HTBu?usp=sharing
After downloading:
- Place
train.jsonanddev.jsoninside the following folder in Google Drive:
MyDrive/
└── NLVR2_Project/
├── train.json
└── dev.json
- Open the notebook in Google Colab.
- Run the Mount Google Drive cell.
- Execute the remaining notebook cells.
The notebook is already configured to load the dataset directly from Google Drive.
- Dataset: NLVR2
- Task: Binary Classification (True / False)
- Input:
- One sentence
- Two images
- Output:
- True (1)
- False (0)
GitHub may display "Invalid Notebook" when previewing ML_Project_NLVR2.ipynb.
This is a GitHub notebook rendering issue and does not affect the notebook itself.
The notebook opens and executes normally in:
- Google Colab
- Jupyter Notebook
- JupyterLab
- TF-IDF Vectorizer
- Logistic Regression
- ViLT (Vision-and-Language Transformer)
- Pretrained model from Hugging Face
- Accuracy
- Precision
- Recall
- F1-score
- Python
- Google Colab
- PyTorch
- Hugging Face Transformers
- Scikit-learn
- Pandas
- NumPy
- Matplotlib
ML_Project_NLVR2.ipynb– Complete notebook implementation.
- Mithilesh Babu
- Parvathy Rajendran Nair
- Joshua Rufus Mukku