-
Notifications
You must be signed in to change notification settings - Fork 117
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
Import stt is not working! #46
Comments
Are you using the right fairseq git checkpoint?
|
Yes |
I am looking at the folder structure:
fairseq has fairseq folder again which has this checkpoint_utils.py file.
Is it the expected behaviour?
…On Wed, 31 Mar 2021 at 6:31 PM, Long Mai ***@***.***> wrote:
You can look at some threads here:
https://stackoverflow.com/questions/58585690/python-cannot-import-unknown-location
https://stackoverflow.com/questions/63728242/importerror-cannot-import-name-unknown-location
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBKX6TICRVRAOTZXYZNVE3TGMMKHANCNFSM42EI7GAQ>
.
|
Make sure the followings are correct:
|
hi, I have installed Fairseq successfully! from fairseq.fairseq import checkpoint_utils, options, progress_bar, tasks, utils This is because when i am following your instructions, the folder structure is fairseq>fairseq>checkpoint_utils and so on. Could you please check my script: https://github.com/gauravgund/gauravgund/blob/master/wav2vec_fairseq__finetuning.ipynb |
@mailong25 @gauravgund got the same issue, but it works fine after restarted. We can close it now. |
Hi @mailong25 @SenriYoshikawa ,
I am able to train acoustic model and Kenlm but when i am trying to import stt for transcribing, I am getting the following error in the self-supervised-speech-recognition directory.
Error
ImportError Traceback (most recent call last)
in ()
1 get_ipython().magic('cd /content/self-supervised-speech-recognition')
----> 2 import stt
/content/self-supervised-speech-recognition/stt.py in ()
7 import numpy as np
8 import torch
----> 9 from fairseq import checkpoint_utils, options, progress_bar, tasks, utils
10 from fairseq.data.data_utils import post_process
11 from fairseq.logging.meters import StopwatchMeter, TimeMeter
ImportError: cannot import name 'checkpoint_utils' from 'fairseq' (unknown location)
I tried importing fairseq in the directory i.e. /content/self-supervised-speech-recognition/libs/fairseq and it is working fine. Kindly help me with the work-around for this conflict in the directories. Regards
The text was updated successfully, but these errors were encountered: