Skip to content

fuse_result.py can't decode the input files. #12

@maymay1982

Description

@maymay1982

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions