fix bug
This commit is contained in:
parent
aa6a8053f9
commit
bd142eaeb1
10
readdata2.py
10
readdata2.py
|
@ -166,12 +166,6 @@ class DataSpeech():
|
||||||
batch_size: 一次产生的数据量
|
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 = []
|
labels = []
|
||||||
for i in range(0,batch_size):
|
for i in range(0,batch_size):
|
||||||
|
@ -185,6 +179,10 @@ class DataSpeech():
|
||||||
#print(input_length,len(input_length))
|
#print(input_length,len(input_length))
|
||||||
|
|
||||||
while True:
|
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)
|
#generator = ImageCaptcha(width=width, height=height)
|
||||||
input_length = []
|
input_length = []
|
||||||
label_length = []
|
label_length = []
|
||||||
|
|
Loading…
Reference in New Issue