Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sayakpaul/multimodal-entailment-baseline
This repository shows how to implement a basic model for multimodal entailment.
https://github.com/sayakpaul/multimodal-entailment-baseline
entailment keras multi-modal-learning tensorflow
Last synced: 11 days ago
JSON representation
This repository shows how to implement a basic model for multimodal entailment.
- Host: GitHub
- URL: https://github.com/sayakpaul/multimodal-entailment-baseline
- Owner: sayakpaul
- License: apache-2.0
- Created: 2021-08-07T09:07:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T03:47:12.000Z (over 3 years ago)
- Last Synced: 2025-01-10T15:22:12.245Z (14 days ago)
- Topics: entailment, keras, multi-modal-learning, tensorflow
- Language: Jupyter Notebook
- Homepage: https://keras.io/examples/nlp/multimodal_entailment/
- Size: 3.17 MB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multimodal-Entailment-Baseline
This repository shows how to implement baseline models for [multimodal entailment](https://multimodal-entailment.github.io/). One
of these models looks like so:![](figures/model_architecture.png)
High-resolution version is available [here](https://github.com/sayakpaul/Multimodal-Entailment-Baseline/blob/main/figures/model_architecture.png).
These models use the multimodal entailment dataset introduced [here](https://github.com/google-research-datasets/recognizing-multimodal-entailment). This
repository is best followed along with this blog post on keras.io: [Multimodal entailment](https://keras.io/examples/nlp/multimodal_entailment/). The
blog post goes over additional details, thought experiments, notes, etc.### A fun fact
The accompanying blog post [marks](https://github.com/keras-team/keras-io/pull/581#issuecomment-899003346) the 100th example on keras.io.
## About the notebooks
* `Multimodal entailment.ipynb`: Shows how to train the model shown in above figure.
* `multimodal_entailment_attn.ipynb`: Shows how to train a similar model with cross-attention (Luong style).
* `text_entailment.ipynb`: Uses only text inputs to train a BERT-based model for the enatailment problem.## Acknowledgements
Thanks to the [ML-GDE program](https://developers.google.com/programs/experts/) for providing GCP credits.
Thanks to [Nilabhra Roy Chowdhury](https://de.linkedin.com/in/nilabhraroychowdhury) who worked on preparing the image data.