Torch
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
Other libs:
pip install -r requirements.txt
pip install -e .
A large part of the code is copied with small modification from https://huggingface.co/OpenGVLab/Mini-InternVL-Chat-2B-V1-5 as InternVL is not yet available as a library.
https://www.kaggle.com/datasets/urbikn/sroie-datasetv2/data
Download the data and save in a folder like ~/Data/SROIE2019
Then you can run bash scripts/run.sh