Open wenku1992abc opened 3 years ago
when i run train.py ERROR as follws:
Traceback (most recent call last): File "train.py", line 333, in train_epoch(model, optimizer, train_set, save_dir, start_epoch=load_epoch) File "train.py", line 267, in train_epoch train_loop(model, optimizer, train_set, scheduler) File "train.py", line 89, in train_loop cpudat, newlen = frame_stacking(cpudat, hp.frame_stacking) File "/raid/user9/workspace/ASR/SER/ASR-SER-master/utils.py", line 44, in frame_stacking cpudat = np.reshape(cpudat, (newlen, stack, hp.lmfb_dim)) File "/home/user4/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 292, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "/home/user4/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: cannot reshape array of size 28899 into shape (247,3,40)
when i run train.py ERROR as follws:
Traceback (most recent call last): File "train.py", line 333, in
train_epoch(model, optimizer, train_set, save_dir, start_epoch=load_epoch)
File "train.py", line 267, in train_epoch
train_loop(model, optimizer, train_set, scheduler)
File "train.py", line 89, in train_loop
cpudat, newlen = frame_stacking(cpudat, hp.frame_stacking)
File "/raid/user9/workspace/ASR/SER/ASR-SER-master/utils.py", line 44, in frame_stacking
cpudat = np.reshape(cpudat, (newlen, stack, hp.lmfb_dim))
File "/home/user4/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/home/user4/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 28899 into shape (247,3,40)