Comments (7)
Are you using the right fairseq git checkpoint?
git clone https://github.com/pytorch/fairseq.git
cd fairseq
git checkout c8a0659be5cdc15caa102d5bbf72b872567c4859
pip install --editable ./
cd ..
from self-supervised-speech-recognition.
Yes
from self-supervised-speech-recognition.
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
from self-supervised-speech-recognition.
from self-supervised-speech-recognition.
Make sure the followings are correct:
- you install the fairseq correctly, which means you can import the lib from any directory.
- the fairseq dir is not located in the same directory with stt.py
- You calling the "from stt import Transcriber" under "self-supervised-speech-recognition" directory.
from self-supervised-speech-recognition.
hi,
I have installed Fairseq successfully!
2) I can't import Fairseq from any directory but only when i am inside fairseq directory
3) I am calling "from stt import Transcriber" under "self-supervised-speech-recognition" directory but i am getting the error """" ImportError: cannot import name 'Transcriber' from 'stt' (/content/self-supervised-speech-recognition/stt.py)""""
4) Note that i have to make changes to the stt.py files which are as follows:
from fairseq.fairseq import checkpoint_utils, options, progress_bar, tasks, utils
from fairseq.fairseq.data.data_utils import post_process
from fairseq.fairseq.logging.meters import StopwatchMeter, TimeMeter
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
from self-supervised-speech-recognition.
@mailong25 @gauravgund got the same issue, but it works fine after restarted. We can close it now.
from self-supervised-speech-recognition.
Related Issues (20)
- How to disable shuffle in wav2vec during inference
- Strange characters prediction
- how to do lexicon free decoding
- Issue while fine-tuning the wav2vec model
- Wav2vec-U
- how to train from scratch wav2vec + wav2letter
- Install dependencies in CentOS
- Train on noisy audio
- finetune.py does not save checkpoints HOT 1
- memory leak with stt.py HOT 1
- How to predict under windows ?
- Any alternative way of installing apt-get packages? HOT 1
- audio segmentation HOT 1
- Some Problems about install your model HOT 1
- wav2letter install problem at Colab HOT 4
- How to use another pretrained model .pth to finetune if I really want to use this model ?
- test WER HOT 1
- How to use kenlm language model
- stt
- error install wav2letter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from self-supervised-speech-recognition.