-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Crash with '.DS_Store': Format not recognised. #112
Comments
I found out that the whole work is useless because vits requires cuda to train but cuda isn't supported on macOS |
There is something called mps, but I doubt it is in the macbook. |
Actually, you can disable automatically generating this file at the system level. Because You can enter this command in your Terminal in order to disable it. defaults write com.apple.desktopservices DSDontWriteNetworkStores true Also, there is a stackoverflow article may give your more information. Besides, due to no cuda support in Mac because a Nvidia GPU is required, you can consider training your data in Colab Notebook like me. Hopefully it can help you. 😊 |
I think this problem can be corrected with a single line change. Anyone can send a PR. |
@allcontributors add DL909 bug |
I've put up a pull request to add @DL909! 🎉 |
@DL909 I ran into this issue as well and just deleted the .DS_Store file and was able to proceed. But, I have not been able to svc train. Have you successfully trained a model on Mac ? |
MPS = Metal Performance Shaders ?? https://developer.apple.com/metal/pytorch/ "mps device enables high-performance training on GPU for MacOS devices with Metal programming framework." Would this, in theory, make it possible to train with so-vits-svc-fork on Apple Silicon? |
According to lightning, mps is supported by default ("auto"), but if it is not working please open another issue |
I have solved this problem and I write this issue for who have the same question as me.
I'm an Non-english users and I use Macbook, I ran 'svc pre-resample' after put the file I want to use to train my model. the computer started a Preprocess and soon crashed. here is the report:
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/librosa/core/audio.py", line 176, in load
y, sr_native = __soundfile_load(path, offset, duration, dtype)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/librosa/core/audio.py", line 209, in __soundfile_load
context = sf.SoundFile(path)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/soundfile.py", line 658, in init
self._file = self._open(file, mode_int, closefd)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/soundfile.py", line 1216, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'dataset_raw/**/.DS_Store': Format not recognised.
(I hide some information to protect my privacy)
And here is the solution:
run in turns:
cd dataset_raw/xx/.DS_Store (which means you go to the folder where you put the audio files)
find . -name '.DS_Store' -type f -delete (which means you delete the .DS_Store file)
I think this issues is caused by the program mistakenly identifying .DS_Dtore file as a part of audio files. I believe this would be a general issue for MacOS user. Hopefully the developers will fix it in time.
The text was updated successfully, but these errors were encountered: