can not parallel and move it to trash

This commit is contained in:
nl8590687 2018-04-11 16:46:46 +08:00
parent 8175f3c8c7
commit e4104f091a
3 changed files with 3 additions and 8 deletions

View File

@ -23,7 +23,7 @@ from keras.layers.advanced_activations import LeakyReLU
from keras import backend as K from keras import backend as K
from keras.optimizers import SGD, Adadelta from keras.optimizers import SGD, Adadelta
from readdata_parallel import DataSpeech from readdata import DataSpeech
from neural_network.ctc_layer import ctc_layer from neural_network.ctc_layer import ctc_layer
from neural_network.ctc_loss import ctc_batch_loss from neural_network.ctc_loss import ctc_batch_loss

View File

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import platform as plat import platform as plat
import threading
from queue import Queue
import numpy as np import numpy as np
from general_function.file_wav import * from general_function.file_wav import *
@ -69,7 +67,6 @@ class DataSpeech():
self.LoadWavData() self.LoadWavData()
pass pass
self.dataqueue = Queue()
pass pass
def LoadDataList(self): def LoadDataList(self):
@ -228,7 +225,7 @@ class DataSpeech():
data_input, data_labels = self.GetDataFromMem((ran_num + i) % self.DataNum) # 从随机数开始连续向后取一定数量数据 data_input, data_labels = self.GetDataFromMem((ran_num + i) % self.DataNum) # 从随机数开始连续向后取一定数量数据
#data_input, data_labels = self.GetData(1 % self.DataNum) # 从随机数开始连续向后取一定数量数据 #data_input, data_labels = self.GetData(1 % self.DataNum) # 从随机数开始连续向后取一定数量数据
#for i in range(batch_size):
#input_length.append(data_input.shape[1] // 4 - 2) #input_length.append(data_input.shape[1] // 4 - 2)
#print(data_input.shape[0],len(data_input)) #print(data_input.shape[0],len(data_input))
@ -247,12 +244,10 @@ class DataSpeech():
label_length = np.array(label_length) label_length = np.array(label_length)
input_length = np.array(input_length).T input_length = np.array(input_length).T
yield [X, y, input_length, label_length ], labels yield [X, y, input_length, label_length ], labels
pass pass
def thread_get_data(self, i):
pass
def GetSymbolNum(self): def GetSymbolNum(self):
''' '''