Closed GabrielLin closed 5 years ago
This is because of how the filenames are written/read from the csv file. If they're written/read as binary strings, you need to decode. If they're written/read as normal strings, you don't and get this error. It might be there's some conversion in the data loading. https://stackoverflow.com/questions/17615414/how-to-convert-binary-string-to-normal-string-in-python3
You could try something like:
try: filename = filename.decode('ascii') # required b/c we read filename from csv in binary mode
except AttributeError: pass
Thanks for your rapid reply. Could you please create a PR? I think if people follow the import_librivox.py and read it by default repo. The csv file is normal strings.
After the merge of #285 .
I run the following command:
python -u run.py --config_file=example_configs/speech2text/lstm_small_1gpu.py --mode=train_eval --decoder_params/use_language_model=True --use_horovod=False --num_gpus=4 --enable_logs
The following error is shown:
@mvankeirsbilck