Giter Club home page Giter Club logo

Comments (7)

mailong25 avatar mailong25 commented on May 28, 2024

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.

gauravgund avatar gauravgund commented on May 28, 2024

Yes

from self-supervised-speech-recognition.

mailong25 avatar mailong25 commented on May 28, 2024

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.

gauravgund avatar gauravgund commented on May 28, 2024

from self-supervised-speech-recognition.

mailong25 avatar mailong25 commented on May 28, 2024

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.

gauravgund avatar gauravgund commented on May 28, 2024

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.

image

Could you please check my script:

https://github.com/gauravgund/gauravgund/blob/master/wav2vec_fairseq__finetuning.ipynb

from self-supervised-speech-recognition.

luiyen avatar luiyen commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.