The first public Vietnamese visual linguistic foundation model(s)
Python
3
71 commits
updated Oct 29, 2023
No I'm serious. Don't touch this.
Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC)
The first public Vietnamese visual linguistic foundation model(s). This work was carried out only by myself under supervision of Dr Pham Quang Nhat Minh @ Aimesoft and Dr Tran Giang Son @ USTH. Thanks to Mr Nguyen Anh Duong @ VietAI for TPU supports.
Keywords: computer vision, natural language processing, visual linguistic, image text, pretrain, Vietnamese, foundation, multi-modal, machine learning
| BLEU 1 | BLEU 2 | BLEU 3 | BLEU 4 | RougeL | |
|---|---|---|---|---|---|
| Baseline 1 | 0.7100 | 0.5750 | 0.4760 | 0.3940 | 0.6260 |
| Baseline 2 | 0.6820 | 0.5610 | 0.4110 | 0.3270 | 0.5990 |
| IC model | 0.8764 | 0.7943 | 0.7247 | 0.6685 | 0.6320 |
Baseline models are the best models in UIT-ViIC paper.
| Acc | BLEU 1 | BLEU 2 | BLEU 3 | BLEU 4 | RougeL | |
|---|---|---|---|---|---|---|
| Baseline | 0.3496 | - | - | - | - | - |
| VQA model | 0.3449 | 0.4526 | 0.4082 | 0.3997 | 0.4173 | 0.4390 |
Baseline model is the best model in IC paper.
To cite this repos or the models' weights or the theory,
@software{dinhanhx_VisualRoBERTa_2022,
title = {{VisualRoBERTa}},
author = {dinhanhx},
year = 2022,
month = 9,
url = {https://github.com/dinhanhx/VisualRoBERTa}
}
⚠ This entry will be updated when the white paper is published or released to the public.
pip install requirements.txtIn training (run) files (such as run_ptrain.py), paths to data folders are hardcoded
⚠ TranslateCOCO2017 also contains json files from UIT-ViIC.
Download links:
You are encouraged to read src/data.py to understand dataset structure and renamed paths to something suitable for your systems.
It's quite simple, just simple go with
python -m exp.run_<task_name_go_here>.py
for example, python run_pretrain.py will pretrain the model.
You are encouraged to read these files to understand what they do before training.
xla, tpu, xm, xla_spawn_debug, DistributedSampler...⚠ Hardcoded file paths might be updated.
Kill leftover processes
pgrep -f "python -m exp.run_pretrain" | xargs kill -9
It's also simple, just simple go with
python -m exp.eval_<dataset_go_here>.py
for example, python eval_vqa.py will infer the models to produce the answers, NOT to compute metrics.
You are encouraged to read these files to understand what they do before evaluation.
⚠ Hardcoded file paths might be updated.
The first public Vietnamese visual linguistic foundation model(s)
Python
3
71 commits
updated Oct 29, 2023
No I'm serious. Don't touch this.
Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC)
The first public Vietnamese visual linguistic foundation model(s). This work was carried out only by myself under supervision of Dr Pham Quang Nhat Minh @ Aimesoft and Dr Tran Giang Son @ USTH. Thanks to Mr Nguyen Anh Duong @ VietAI for TPU supports.
Keywords: computer vision, natural language processing, visual linguistic, image text, pretrain, Vietnamese, foundation, multi-modal, machine learning
| BLEU 1 | BLEU 2 | BLEU 3 | BLEU 4 | RougeL | |
|---|---|---|---|---|---|
| Baseline 1 | 0.7100 | 0.5750 | 0.4760 | 0.3940 | 0.6260 |
| Baseline 2 | 0.6820 | 0.5610 | 0.4110 | 0.3270 | 0.5990 |
| IC model | 0.8764 | 0.7943 | 0.7247 | 0.6685 | 0.6320 |
Baseline models are the best models in UIT-ViIC paper.
| Acc | BLEU 1 | BLEU 2 | BLEU 3 | BLEU 4 | RougeL | |
|---|---|---|---|---|---|---|
| Baseline | 0.3496 | - | - | - | - | - |
| VQA model | 0.3449 | 0.4526 | 0.4082 | 0.3997 | 0.4173 | 0.4390 |
Baseline model is the best model in IC paper.
To cite this repos or the models' weights or the theory,
@software{dinhanhx_VisualRoBERTa_2022,
title = {{VisualRoBERTa}},
author = {dinhanhx},
year = 2022,
month = 9,
url = {https://github.com/dinhanhx/VisualRoBERTa}
}
⚠ This entry will be updated when the white paper is published or released to the public.
pip install requirements.txtIn training (run) files (such as run_ptrain.py), paths to data folders are hardcoded
⚠ TranslateCOCO2017 also contains json files from UIT-ViIC.
Download links:
You are encouraged to read src/data.py to understand dataset structure and renamed paths to something suitable for your systems.
It's quite simple, just simple go with
python -m exp.run_<task_name_go_here>.py
for example, python run_pretrain.py will pretrain the model.
You are encouraged to read these files to understand what they do before training.
xla, tpu, xm, xla_spawn_debug, DistributedSampler...⚠ Hardcoded file paths might be updated.
Kill leftover processes
pgrep -f "python -m exp.run_pretrain" | xargs kill -9
It's also simple, just simple go with
python -m exp.eval_<dataset_go_here>.py
for example, python eval_vqa.py will infer the models to produce the answers, NOT to compute metrics.
You are encouraged to read these files to understand what they do before evaluation.
⚠ Hardcoded file paths might be updated.