Create a virtual environment with Python 3.11.
To install the required dependencies, run the following command:
pip install -r requirements.txtThe dataset is located in the vlm/vlm_dataset folder (JSON splits). Image data should be placed under the repo’s data/ directory:
vlm
├── vlm_dataset
│ ├── vlm_baseline_test.json # Baseline test set
│ ├── vlm_baseline_trainval.json # Baseline training and validation set
│ ├── vlm_reasoning_test.json # Reasoning test set
│ ├── vlm_reasoning_trainval.json # Reasoning training and validation set
Image files are under the repo’s data/ directory. Before training or inference, ensure that the image paths in the dataset JSONs point to these files (e.g. under data/).
Submit the training or testing scripts using the sbatch command:
sbatch submit_job.shThe evaluation results include the accuracy (ACC) metric with confidence intervals calculated using 1000 resampling iterations.
The evaluation code can be found in the Jupyter notebook:
vlm/notebook/1_evaluate.ipynb
The style transfer code can be found in the Jupyter notebook:
vlm/notebook/2_style_transfer.ipynb