Comments (6)
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.
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.
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.
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.
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.
Thanks for reporting and test it!
from whisper-ctranslate2.
Related Issues (20)
- Ablility to specify model directory HOT 1
- Feature request, does use of compute USB stick can accelerate inference? HOT 1
- Measure times HOT 1
- Running on Macos? HOT 20
- detect language HOT 1
- Support Whisper large-v3? HOT 6
- distill-whisper? HOT 4
- invalid int value HOT 1
- Multi Files HOT 1
- Issue with output redirection to R console using processx HOT 2
- GPU or CoreML acceleration on Mac Arm
- RuntimeError HOT 4
- Docker image for running whisper-ctranslate2 HOT 1
- error while installing on windows HOT 1
- Transcribing from live video stream source
- Save/record the audio into files HOT 1
- do not support distil-***.en model HOT 1
- Exploit found in Malwarebytes
- Can you please add support for word_timestamps, highlight_words and max_words_per_line? HOT 2
- Problem with GPU allocation after updating to CTranslate2 4.0.0 HOT 2
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 whisper-ctranslate2.