Exemplo n.º 1
0
    def next(self):  #starts the function to train the model

        model = Speech()
        model.expend_data()
        model.read_data()
        model.preprocess_labels()
        model.preprocess_data()
        model.train(10, 4, 1, 1000)

        model2 = Speaker()
        model2.audio_to_image()
        model2.preprocess()
        model2.train()

        self.switch_window.emit()
Exemplo n.º 2
0
    def TrainModel(self):
        '''
        Trains the model wit given recordings
        :param recordings from
        '''

        model = Speech()
        model.expend_data()
        model.read_data()
        model.preprocess_labels()
        model.preprocess_data()
        model.train(10, 4, 1, 1000)

        model2 = Speaker()
        model2.audio_to_image()
        model2.preprocess()
        model2.train()