Downloads · 30 days
22
23% of all-time downloads
letuan/mblip-mt0-xl-vivqa
mblip-mt0-xl-vivqa is a machine learning model from letuan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
In Vietnamese, there is currently limited availability of datasets and methodologies for the Vietnamese Visual Question Answering task. In the VLSP 2023 challenge on Visual Reading Comprehension for Vietnamese, the Op…
Downloads · 30 days
22
23% of all-time downloads
All-time downloads
96
Public
Repo size
19.4 GB
Likes
0
Public
Click a slice to open those files.
.bin9.7 GB · 100%
From the Hugging Face model README
In Vietnamese, there is currently limited availability of datasets and methodologies for the Vietnamese Visual Question Answering task. In the VLSP 2023 challenge on Visual Reading Comprehension for Vietnamese, the OpenViVQA dataset is employed as the benchmark dataset. This is a challenging dataset with a wide variety of questions, encompassing both the content of the scenery and the text within the images. Notably, all the images are captured in Vietnam, giving this dataset distinct characteristics and cultural features unique to Vietnam. The texts contained within the images are mainly in Vietnamese. Therefore, the VQA system is required to have the capability to recognize and comprehend Vietnamese within the images. The responses are in open-ended format, requiring the VQA system to generate answers. This task is more challenging compared to selecting answers from a predefined list.
To address this challenging task, we propose an approach using three primary models: a Scene Text Recognition model, a Vision model, and a Language model. Particularly, the Scene Text Recognition model is responsible for extracting scene text from image, the Vision model is tasked with extracting visual features from image, and the Language model takes the output from the two aforementioned models as input and generates the corresponding answer for the question. Our approach has achieved a CIDEr score of 3.6384 in the private test set, ranking first among competing teams.
<p align="center"> <img width="800" alt="overview" src="https://raw.githubusercontent.com/tuanlt175/mblip_stqa/refs/heads/master/figures/overview.png"><br> Diagram of our proposed model </p>Our model is available at letuan/mblip-mt0-xl-vivqa . Please download model:
huggingface-cli download letuan/mblip-mt0-xl-vivqa --local-dir <the folder on your computer to store the model>
Clone project:
git clone https://github.com/tuanlt175/mblip_stqa.git
cd mblip_stqa/
Using Docker:
sudo docker build -t vivrc_mblip:dev -f Dockerfile .
Run a docker container:
sudo docker run --gpus all --network host \
--volume ${PWD}/icvrc:/code/icvrc \
--volume ${PWD}/data:/code/data \
--volume ${PWD}/models:/code/models \
--volume ${PWD}/deepspeed_train_mblip_bloomz.sh:/code/deepspeed_train_mblip_bloomz.sh \
--volume ${PWD}/deepspeed_train_mblip_mt0.sh:/code/deepspeed_train_mblip_mt0.sh \
--volume ${PWD}/deepspeed_config.json:/code/deepspeed_config.json \
-it vivrc_mblip:dev /bin/bash
Then, run the code below:
chmod +x deepspeed_train_mblip_mt0.sh
./deepspeed_train_mblip_mt0.sh
Run a docker container:
sudo docker run --gpus all --network host \
--volume ${PWD}/icvrc:/code/icvrc \
--volume ${PWD}/data:/code/data \
--volume <folder containing the model you just downloaded>:/code/models \
--volume ${PWD}/evaluate.sh:/code/evaluate.sh \
-it vivrc_mblip:dev /bin/bash
Then run the code below to evaluate:
chmod +x evaluate.sh
./evaluate.sh