diff --git a/readdata2.py b/readdata2.py index da67b76..17ea1e6 100644 --- a/readdata2.py +++ b/readdata2.py @@ -166,12 +166,6 @@ class DataSpeech(): batch_size: 一次产生的数据量 需要再修改。。。 ''' - X = np.zeros((batch_size, audio_length, 200, 1), dtype = np.float) - #print('data_gen:', X) - #y = np.zeros((batch_size, 64, self.SymbolNum), dtype=np.int16) - y = np.zeros((batch_size, 64), dtype=np.int16) - - labels = [] for i in range(0,batch_size): @@ -185,6 +179,10 @@ class DataSpeech(): #print(input_length,len(input_length)) while True: + X = np.zeros((batch_size, audio_length, 200, 1), dtype = np.float) + #y = np.zeros((batch_size, 64, self.SymbolNum), dtype=np.int16) + y = np.zeros((batch_size, 64), dtype=np.int16) + #generator = ImageCaptcha(width=width, height=height) input_length = [] label_length = []