def __init__(self, label_file, length_file, sample_rate, video_root, audio_root, video_shape, audio_shape, video_preproc, audio_preproc, sel_movies, sel_frames, n_classes, affective_type, ret_label_X=True, ret_label_y=True):
    self.__parse_label_file(label_file, affective_type)
    self.__parse_length_file(length_file, sample_rate)
    self.file_list = list(self.label_dict.keys())
    self.video_root = video_root
    self.audio_root = audio_root
    self.video_preproc = video_preproc
    self.audio_preproc = audio_preproc
    self.sel_movies = sel_movies
    self.sel_frames = sel_frames
    self._video_shape = video_shape
    self._audio_shape = audio_shape
    self._n_classes = n_classes
    self._batch_size = (self.sel_movies * self.sel_frames)
    self.ret_label_X = ret_label_X
    self.ret_label_y = ret_label_y
    self.on_epoch_end()
def __init__(self, label_file, length_file, sample_rate, video_root, audio_root, video_shape, audio_shape, video_preproc, audio_preproc, sel_movies, sel_frames, n_classes, affective_type, ret_label_X=True, ret_label_y=True):
    self.__parse_label_file(label_file, affective_type)
    self.__parse_length_file(length_file, sample_rate)
    self.file_list = list(self.label_dict.keys())
    self.video_root = video_root
    self.audio_root = audio_root
    self.video_preproc = video_preproc
    self.audio_preproc = audio_preproc
    self.sel_movies = sel_movies
    self.sel_frames = sel_frames
    self._video_shape = video_shape
    self._audio_shape = audio_shape
    self._n_classes = n_classes
    self._batch_size = (self.sel_movies * self.sel_frames)
    self.ret_label_X = ret_label_X
    self.ret_label_y = ret_label_y
    self.on_epoch_end()