Giter Site home page Giter Site logo

Comments (6)

jordimas avatar jordimas commented on May 14, 2024

Hello,

It works for me. I can specify a model directory:

whisper-ctranslate2 inaguracio2011.mp3 --model_directory /home/jordi/sc/transcribe/whisper-ctranslate2/models/sc-medium-ca-200steps/

and if I do not provide a directory it:

whisper-ctranslate2 inaguracio2011.mp3 --model_directory

it says:

whisper-ctranslate2: error: argument --model_directory: expected one argument

What's exactly the command line that you are trying? Thanks

from whisper-ctranslate2.

anneriekeschipperen893 avatar anneriekeschipperen893 commented on May 14, 2024

Hello,

It works for me. I can specify a model directory:

whisper-ctranslate2 inaguracio2011.mp3 --model_directory /home/jordi/sc/transcribe/whisper-ctranslate2/models/sc-medium-ca-200steps/

and if I do not provide a directory it:

whisper-ctranslate2 inaguracio2011.mp3 --model_directory

it says:

whisper-ctranslate2: error: argument --model_directory: expected one argument

What's exactly the command line that you are trying? Thanks

Hello, i use very basic command but i specify custom model_directory, it used to work well until i performed last update.

whisper-ctranslate2 file.wav --task translate --model_directory large-v2

I should note i use windows 10 x64, Python 3.8.5

After some reinstallation attempts I managed to break it completely, this is what i get now:

Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\user\AppData\Roaming\Python\Python38\Scripts\whisper-ctranslate2.exe\__main__.py", line 4, in <module>
  File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\src\whisper_ctranslate2\whisper_ctranslate2.py", line 4, in <module>
    from .models import Models
  File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\src\whisper_ctranslate2\models.py", line 10, in <module>
    class Models:
  File "C:\Users\user\AppData\Roaming\Python\Python38\site-packages\src\whisper_ctranslate2\models.py", line 35, in Models
    def get_list(self) -> list[str]:
TypeError: 'type' object is not subscriptable

if i use pip install whisper-ctranslate2 it would install 0.1.3 version and if i use github command from readme, it would install 0.1.4 version but gives me the same output.

from whisper-ctranslate2.

nfranke avatar nfranke commented on May 14, 2024

If I install via either installation method (plain pip or pip via github) I also get:

Traceback (most recent call last):
  File "/home/me/.local/bin/whisper-ctranslate2", line 5, in <module>
    from src.whisper_ctranslate2.whisper_ctranslate2 import main
  File "/home/me/.local/lib/python3.8/site-packages/src/whisper_ctranslate2/whisper_ctranslate2.py", line 4, in <module>
    from .models import Models
  File "/home/me/.local/lib/python3.8/site-packages/src/whisper_ctranslate2/models.py", line 10, in <module>
    class Models:
  File "/home/me/.local/lib/python3.8/site-packages/src/whisper_ctranslate2/models.py", line 35, in Models
    def get_list(self) -> list[str]:
TypeError: 'type' object is not subscriptable

Changing line 35 to be:

    def get_list(self):

Resolves the issue.

from whisper-ctranslate2.

jordimas avatar jordimas commented on May 14, 2024

Thanks for the details.

I have just released version 0.1.4. If you can please confirm if fixes the issue for you. Thanks

from whisper-ctranslate2.

anneriekeschipperen893 avatar anneriekeschipperen893 commented on May 14, 2024

Thanks for the details.

I have just released version 0.1.4. If you can please confirm if fixes the issue for you. Thanks

Yes, works good now after uninstall and install again. Upgrade alone did not yield any results.
--model_directory works as well

Thanks

from whisper-ctranslate2.

jordimas avatar jordimas commented on May 14, 2024

Thanks for reporting and test it!

from whisper-ctranslate2.

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.