EDKA is a state-of-the-art knowledge-augmented language model designed for Visual Question Answering (VQA) tasks. This model combines the power of pre-trained language models with external knowledge to improve the accuracy and reliability of VQA systems.
LaKo-main/
├── src/ # Core source code
│ ├── data/ # Data processing modules
│ ├── model/ # Model architecture definitions
│ ├── evaluation/ # Evaluation metrics and utilities
│ └── util/ # Utility functions
├── data_process/ # Data preprocessing scripts
├── t5_models/ # T5 model implementations
├── script/ # Utility scripts
├── checkpoints/ # Model checkpoints
├── lightning_logs/ # Training logs
git clone [repository-url]
cd LaKo-main
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Training Data is available https://github.com/sparkrickyfly/EKDA/tree/master/data_process
Once you have access, the dataset should be organized as follows:
data/
├── train/ # Training data directory
├── test/ # Test data directory
└── knowledge_base/ # Knowledge base directory
After obtaining the dataset:
python data_process/deal_vqa.py
The reader component can be trained using the provided shell script:
bash run_okvqa_train.sh
Key training parameters:
gpu: GPU device IDmodel_size: Model size ("base" or "large")batch_size: Batch size (automatically set based on model size)n_context: Number of context itemsepochs: Number of training epochslr: Learning rateearly_stop: Early stopping patienceTo train the retriever component:
python train_retriever.py
For distributed training across multiple GPUs:
python -m torch.distributed.launch --nproc_per_node=NUM_GPUS train_reader.py
Evaluate the model's performance:
python evaluate_retrieved_facts.py
The evaluation script provides:
Pre-trained model checkpoints are available in the checkpoints/ directory:
checkpoint/vqa2.0_base_backbone/checkpoint/vqa2.0_large_backbone/If you use this code in your research, please cite our paper
7 commits
Python
94.3%
Shell
5.7%
EDKA is a state-of-the-art knowledge-augmented language model designed for Visual Question Answering (VQA) tasks. This model combines the power of pre-trained language models with external knowledge to improve the accuracy and reliability of VQA systems.
LaKo-main/
├── src/ # Core source code
│ ├── data/ # Data processing modules
│ ├── model/ # Model architecture definitions
│ ├── evaluation/ # Evaluation metrics and utilities
│ └── util/ # Utility functions
├── data_process/ # Data preprocessing scripts
├── t5_models/ # T5 model implementations
├── script/ # Utility scripts
├── checkpoints/ # Model checkpoints
├── lightning_logs/ # Training logs
git clone [repository-url]
cd LaKo-main
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Training Data is available https://github.com/sparkrickyfly/EKDA/tree/master/data_process
Once you have access, the dataset should be organized as follows:
data/
├── train/ # Training data directory
├── test/ # Test data directory
└── knowledge_base/ # Knowledge base directory
After obtaining the dataset:
python data_process/deal_vqa.py
The reader component can be trained using the provided shell script:
bash run_okvqa_train.sh
Key training parameters:
gpu: GPU device IDmodel_size: Model size ("base" or "large")batch_size: Batch size (automatically set based on model size)n_context: Number of context itemsepochs: Number of training epochslr: Learning rateearly_stop: Early stopping patienceTo train the retriever component:
python train_retriever.py
For distributed training across multiple GPUs:
python -m torch.distributed.launch --nproc_per_node=NUM_GPUS train_reader.py
Evaluate the model's performance:
python evaluate_retrieved_facts.py
The evaluation script provides:
Pre-trained model checkpoints are available in the checkpoints/ directory:
checkpoint/vqa2.0_base_backbone/checkpoint/vqa2.0_large_backbone/If you use this code in your research, please cite our paper
7 commits
Python
94.3%
Shell
5.7%