Giter Club home page Giter Club logo

Comments (6)

mailong25 avatar mailong25 commented on May 28, 2024

If you can, try to download the model and run inference on your own local machine.
.
If you can't, then In your colab try:
import sys
sys.argv.append('/test/data')
print(sys.argv)
It should print out something like this:

['/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py',
 '-f',
 '/root/.local/share/jupyter/runtime/kernel-dff03990-da23-4aef-8dd0-6fdf9d4cbee2.json',
 '/test/data']

In your case the sys.argv only have 3 elements, which may be the problem
You can modify this line of code to fix the problem:

from self-supervised-speech-recognition.

NhacBatQuan avatar NhacBatQuan commented on May 28, 2024

it turns out the error caused by cargparse having conflict với notebook so we had tried pass arg -f and it working but come to a new problem no module named 'examples.speech_recognition'. Is it because we have a problem with the installation or it comes from the import ?

from self-supervised-speech-recognition.

mailong25 avatar mailong25 commented on May 28, 2024

the "examples.speech_recognition.w2l_decoder" is located inside the installed fairseq directory.
Could you please changing the import from examples.speech_recognition.w2l_decoder to the actual path of installed fairseq ?

from self-supervised-speech-recognition.

sa-thangbn avatar sa-thangbn commented on May 28, 2024

@NhacBatQuan You just copy folder examples into usr/local on google colab. (ex: !cp -r /content/self-supervised-speech-recognition/fairseq/examples /usr/local/lib/python3.7/dist-packages). It's work!

from self-supervised-speech-recognition.

CSLujunyu avatar CSLujunyu commented on May 28, 2024

I follow the step(4.1 Make prediction on multiple audios programmatically), however, I meet this message(ImportError: cannot import name 'Transcriber' from 'stt').

Could you provide the right version of stt?

from self-supervised-speech-recognition.

mailong25 avatar mailong25 commented on May 28, 2024

You should call the import from the inside of "self-supervised-speech-recognition" directory

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.