cerebras.modelzoo.data_preparation.data_preprocessing.hooks.finetuning_image_captions_hook#

cerebras.modelzoo.data_preparation.data_preprocessing.hooks.finetuning_image_captions_hook(example, **read_hook_kwargs)[source]#

Process finetuning image captions data into a semantic_data_array format.

Parameters
  • example (Dict[str, Any]) – The example data to process.

  • **read_hook_kwargs – Additional keyword arguments for processing.

Returns

A list of dictionaries in semantic_data_array format.

Return type

List[Dict[str, Any]]