Easiest way to setup the environment is to use uv.
- Run
uv sync
to create the environment and install the project including its dependencies. - Run
source .env/bin/activate
to activate the environment.
- Make sure you have python3.12 installed.
- Create a virtual environment using
python3.12 -m venv .env
. - Activate the virtual environment using
source .env/bin/activate
. - Install the project and its dependencies using
pip install .
.
- Download the dataset
SalChartQA.zip
from SalChartQA Project Site and extract the zip intodata/
directory. - Run
python -m app.data data/SalChartQA/ data/filtered_question_type_ans_correct --correct-only
to create the filtered dataset.
- Run
python train.py +experiment=chart_simple
to train the model on the attributechart_simple
.