This repository contains the code of the paper "Multimodal Neural Databases".
You can find the preprocessed dataset and model checkpoints at this link.
Remember to change the corresponding paths in the conf/config.yaml
file.
We suggest to use a novel python enviroment before proceding.
Run the command pip install -r requirements.txt
To reproduce the results we provide several bash scripts that you can find under the folder exp
.
Each script is associated to a specific table in the paper (e.g., tab1.sh
)
To finetune the clip retriever you can use the script scripts/retrieve_ft.py
To finetune the processor you can use the script scripts/processor_ft.py
To finetune the stopping algorithm you can use the script scripts/stopping_algo.py
If you use this code please cite:
@article{trappolini2023multimodal,
title={Multimodal Neural Databases},
author={Trappolini, Giovanni and Santilli, Andrea and Rodol{\`a}, Emanuele and Halevy, Alon and Silvestri, Fabrizio},
journal={arXiv preprint arXiv:2305.01447},
year={2023}
}