python region_features/process_regions.py \
    --data_path ./playground/data/LLaVA/LLaVA-Pretrain/blip_laion_cc_sbu_558k.json \
    --feature_dir ./playground/data/regions/LLaVA-Pretrain/features \
    --mask_dir ./playground/data/regions/LLaVA-Pretrain/regions_pps32 \
    --region_feature_dir ./playground/data/regions/LLaVA-Pretrain/region_features \
    --patch_length 14 \
    --interpolate upsample \
    --pooling_method average \
    --dtype fp32