data_juicer.ops.mapper.video_audio_detect_age_gender_mapper module#

class data_juicer.ops.mapper.video_audio_detect_age_gender_mapper.VideoAudioDetectAgeGenderMapper(*args, **kwargs)[source]#

Bases: Mapper

Detect age and gender (male, female, child) from video audio signals using a pretrained wav2vec2 model.

Source: This operator is a part of HumanVBench (CVPR 2026).

__init__(hf_audio_mapper: str = None, tag_field_name: str = 'audio_speech_attribute', *args, **kwargs)[source]#

Initialization method.

Parameters:
  • keep_original_sample โ€“ whether to keep the original sample. If itโ€™s set to False, there will be only captioned sample in the final datasets and the original sample will be removed. Itโ€™s True in default.

  • args โ€“ extra args

  • kwargs โ€“ extra args

process_single(sample, rank=None)[source]#

For sample level, sample โ€“> sample

Parameters:

sample โ€“ sample to process

Returns:

processed sample