# Guide to the code ## 1. Extract the data: Please enter `infoseek_image` and `WIT_image` folder under the `dataset` folder and unzip the files inside seperately. Then, please rearrange the folder as follows: * Add an `infoseek` folder under `dataset`, and move the extracted `image` folder into `infoseek` * Move the extracted `M2KR_Images` folder into `dataset` * Then, you can delete the empty folder The final dataset structure should be: /dataset/M2KR_Images/data/wit/image_data_train/images/9fcaeed86c292d3b159fc4f790738ff1.jpg /dataset/infoseek/image/oven_00712627.JPEG ## 2. Run the code * Enter `src/construct_finetuning_dataset_10_instances_preflmr.py`, * Change the `--root_path` parameter to the (for example, "/home/zixuan") * Change the `--tensor_parallel_size` parameter to the number of gpu used, and adjust `os.environ["CUDA_VISIBLE_DEVICES"] = "0,2,4,5"` as needed.(If you have A100/H100 this code can be run on simply one gpu) * cd `src` and run `construct_finetuning_dataset_10_instances_preflmr.py`