-
Notifications
You must be signed in to change notification settings - Fork 47
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
model loading issue #5
Comments
I myself also encountered this after upgrading torch to 1.8.0 and torchaudio to 0.8.0. I will try my best to fix this ASAP! |
Looking forward for this to be fixed, since I find myself in the same situation. |
I just realized that the default backend has been changed from sox to sox_io in torchaudio 0.8.0. I'm not very sure whether this causes the problem, but ever since I recompiled the |
The newly compiled modules have been uploaded with the new release. |
Great, thank you! Eager to try them! |
Still didn't work for me: Message= Source=*** |
Did you import |
Yes, my code is as in the example: import torch # This is 1.8.0 wav2mel = torch.jit.load(r"yistLin dvector\wav2mel.pt") # Error |
Exactly those (sorry, updated the comment a bit too late) |
@ADD-eNavarro Can you try to compile the modules? You can simply run the preprocessing script and those modules will be generated and saved with the preprocessed data. Or you can do it manually like this: # in the root directory of the repo
import torch
import torchaudio
from data.wav2mel import Wav2Mel
wav2mel = Wav2Mel()
wav2mel = torch.jit.script(wav2mel)
wav2mel.save("wav2mel.pt") |
I get an error in: Message= Source=\yistLin_dVector\Test.py |
Got it, now I see some problems:
Reading torchaudio's docs, it says that the |
You're right, I'm working on Windows. |
hi, i follow your solution in linux,but still not solve? by the way, can you share you source model? TorchScript should be consistent with your version |
@liyuanyaun Can you show me the error messages or describe more about which step went wrong? I just tested the TorchScript modules on Google Colab, and nothing went wrong. Here's the link: https://colab.research.google.com/drive/1yNMPOCxyUYVr03pYm6kix8Vm0ICThGAe?usp=sharing |
my error is same as ADD-eNavarro and i follow your sulution: in the root directory of the repoimport torch from data.wav2mel import Wav2Mel wav2mel = Wav2Mel() but it did not work |
1 similar comment
my error is same as ADD-eNavarro and i follow your sulution: in the root directory of the repoimport torch from data.wav2mel import Wav2Mel wav2mel = Wav2Mel() but it did not work |
It works on Linux well. The reported problem appears just in Windows :\ |
Hello does this solved? |
@yistLin torch 2.3.1 |
Unknown builtin op: torchaudio::sox_effects_apply_effects_tensor. torch==2.4.0 i got error in linux can anyone solve this? |
I am using pre-trained model to get the embedding but getting below error:
The text was updated successfully, but these errors were encountered: