This commit is contained in:
nl8590687 2018-04-11 22:28:08 +08:00
parent aa6a8053f9
commit bd142eaeb1
1 changed files with 4 additions and 6 deletions

View File

@ -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 = []