-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File contains data in an unknown format. #214
Comments
How did you manage to get pytorch to work? I keep running into: https://pytorch.org/docs/stable/notes/windows.html#import-error |
Interactive generation loop |
managed to solve this by installing cuda 10.1 (had cuda 10.0, and VS2017 before), hope this helps |
The 'demo_cli.py' only uses the ''preprocess_wav" function, which is imported from the encoder.inference script and is defined in the encoder.audio script. It seems preprocessing functions for other file formats are not included yet. TLDR: convert your files to .wav format to resolve |
Facing the same issue will performing"python encoder_preprocess.py [dataroot]" as the data in VoxCeleb2 is in .m4a files |
I know the solution is to convert the files to a .wav file, but it takes up way more space; is there a way to remove that requirement of a .wav file? |
Even in audio.py it says:
And yet... |
The problem is that this fallback path in librosa does not work due to the fact that path is Converting path to string allows file opening with audioread and it will use ffmpeg to load the audio. |
Artem-B - Thanks for your post. I fixed line 145 as shown below, now on to the next error.
And now it's giving the warning on the next line: So I changed next line as well: NOTE: I made the mistake of selecting a 30 minute mp3 file, so it takes a while for it to convert to mono, then do the resampling. But finally got it working after 6 or more hours of tinkering with the installs. So adding some prints to audio.py can at least show what's happening:
|
Your problem is related to the librosa bug in the latest version. You can refer to this link I solve it by converting the path into String |
Update:- I've run the script and when I try to upload a file .mp3 |
I used the gui in windows and it worked with wav files. mp3 is supported but I got the same error. Not sure what to do. Maybe while having a library already working, make a folder name it whatever inside and place some wav and mp3 m4a files try the gui ? |
I have solved with adding --no_sound arguments to my terminal |
Several problems are mentioned in this issue:
They have all been resolved in the latest code, so we can finally close this out. Thanks to all here who reported an issue or shared workarounds. |
|
Dear sir:
I'm reproducing your code and meeting a problem. The same corpus and code as yours,but perform"python encoder_preprocess.py [dataroot]",error in figure above.
The text was updated successfully, but these errors were encountered: