-
Notifications
You must be signed in to change notification settings - Fork 1k
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
libsndfile Error #42
Comments
+1 Same error. |
@gusanmaz if you have been able to install libsndfile via your system package manager, could you please try to install seamless_communication in a regular Python virtual environment (i.e. no Conda)? |
It works for me, thanks! |
That was the solution for me. I was getting that error using a conda environment, but now it's working with a regular virtualenv. |
Thank you for the advice @cbalioglu. This time I am getting I am able to install and run seamless_communication without using conda environment on my another less powerful machine with same OS with no libsndfile error. I am getting CUDA out of memory error. This machine has only 4GB vram whereas the other one has 12GB vram. |
I solved the problem. It now works in 12GB vram machine with big model and 4GB vram machine with medium model. |
@gusanmaz glad to hear! Closing this issue. Let us know if you experience another problem. |
Can you share what worked for you? |
Funny enough making sure I did a conda install of it. You can see my code here deploying it on Cerebrium: https://github.com/CerebriumAI/examples/tree/master/19-meta-seamless |
…r. (#42) * Make SC compatible with Transformer Encoder API change. * Introduce wav2vec2_chunk offline streaming-compatible speech encoder. * Make depthwise convolution causal, within Conformer convolution module. * Add an asset and arch for m4t_v2_s2t. * Change variable names to be compatible with fairseq2 changes. * Refactor wav2vec2 encoder config, address comments. * Specify pos_encoder_type for wav2vec2_chunk_arch.
I first cloned the repo and then created a conda environment.
Afterwards I ran following two commands as stated in Installation Section:
pip install .
conda install -y -c conda-forge libsndfile
Installation completes without and error. However if I run following code:
python3 scripts/m4t/predict/predict.py "Teknolojiyi merkezine alan yenilikçi yapımızla hayatını kolaylaştırmaya devam ediyoruz." t2tt eng --src_lang tur
I get following output:
I use Ubuntu based Pop!_OS.
sudo apt install libsndfile1
outputs:Reading package lists... Done Building dependency tree... Done Reading state information... Done libsndfile1 is already the newest version (1.0.31-2build1). The following packages were automatically installed and are no longer required: golang-1.18-go golang-1.18-src golang-src Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 250 not upgraded.
Installing libsndfile (https://github.com/libsndfile/libsndfile) from source didn't help either.
I wonder what I might be doing wrong.
Thanks!
The text was updated successfully, but these errors were encountered: