athena.data.datasets.kws.speech_wakeup_framewise_kaldiio

Module Contents

Classes

SpeechWakeupFramewiseDatasetKaldiIOBuilder

Dataset builder for CNN model. The builder treat every spliced frame as one image.

class athena.data.datasets.kws.speech_wakeup_framewise_kaldiio.SpeechWakeupFramewiseDatasetKaldiIOBuilder(config=None)

Bases: athena.data.datasets.base.BaseDatasetBuilder

Dataset builder for CNN model. The builder treat every spliced frame as one image. For example (21, 63) The input data format is (batch, timestep, height, width, channel) For example (b, t, 21, 63, 1) unbatch are used to split The output data format is, for example, (b, 21, 63, 1)

property sample_type

example types

property sent_sample_shape
property sample_shape

examples shapes

property sample_signature

examples signature

default_config
preprocess_data(data_dir='')

loading data

__getitem__(index)
splice_feature(feature, input_left_context, input_right_context)

splice features according to input_left_context and input_right_context input_left_context: the left features to be spliced,

repeat the first frame in case out the range

input_right_context: the right features to be spliced,

repeat the last frame in case out the range

Parameters

feature – the input features, shape may be [timestamp, dim, 1]

Returns

the spliced features

Return type

splice_feat