A set of scripts to machine translate the subset of (synthetic) Conceptual Captions used in BLIP. The conda environment.yml file allows you to recreate the environment we used via conda env create -f environment.yml (creates env named translate).
wget https://storage.googleapis.com/sfr-vision-language-research/BLIP/datasets/ccs_synthetic_filtered_large.json -P dataConvert to tabular and save data to .feather. File is saved as data/ccs_synthetic.feather
python 01_ccs_to_df.pyNow translate captions from English -> Arabic.
python 01_translate_ar.pyfilter_remove_unrelated_examples_from_translation.py has the pre-processing that has been done for this work, you can go through the process manually in the file.
You can find the original code in this repository. This code helped us a lot.
Distributed under the MIT License. See LICENSE for more information.