Download CoCa models for synthetic caption generation
mainCoCa models used to generate synthetic captions in DFNDR-2B are available on HuggingFace.
Recommendations:
- For balanced performance, use
mscoco38k_s12m_context77. - Models with
context77are generally preferred. Models withcontext256have a higher chance of generating repeated output.
Use the hf download command to retrieve specific model variants from the apple/mobileclip2_coca_dfn2b_s13b_ prefix.
# context=77 models
for model in \
mscoco38k_s12m_context77 \
gbc1m-short_context77 \
docci_s12m_context77 \
dci-short_s12m_context77 \
dci-complete_s12m_context77 \
dci-extended_s12m_context77 \
recap-coco-30k_s12m_context77 \
do
hf download apple/mobileclip2_coca_dfn2b_s13b_$model
done
# Context=256 models. These models have a higher chance of generating repeated output
for model in \
docci_s12m_context256 \
dci-complete_s12m_context256 \
dci-extended_s12m_context256 \
do
hf download apple/mobileclip2_coca_dfn2b_s13b_$model
done
# Base CoCa-DFN2B model that can be used for fine-tuning new CoCa models on
# high-quality datasets
hf download apple/mobileclip2_coca_dfn2b_s13b_context77