-
Notifications
You must be signed in to change notification settings - Fork 41
Description
After run model_main.py, I got many .npy files and .pth files.
But when I put these .npy files as input to run fuse_result.py, I got the following error:
python fuse_result.py --input cache_train_LA_spect.npy cache_train_LA_mfcc.npy cache_train_LA_cqcc.npy --output=cache_train_LA.npy
Processing input files : ['cache_train_LA_spect.npy', 'cache_train_LA_mfcc.npy', 'cache_train_ LA_cqcc.npy']
Traceback (most recent call last):
File "fuse_result.py", line 35, in
fuse_result = fuse(args.input)
File "fuse_result.py", line 21, in fuse
frames = [read_frame(f) for f in file_list]
File "fuse_result.py", line 21, in
frames = [read_frame(f) for f in file_list]
File "fuse_result.py", line 10, in read_frame
data_np = np.genfromtxt(fname, dtype=str)
File "/home/lishaomei/anaconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 1761, i n genfromtxt
first_line = _decode_line(next(fhd), encoding)
File "/home/lishaomei/anaconda3/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
The same error happened when I put these .pth files as input to run fuse_result.py.