Open mattchai opened 2 weeks ago
Hey Matt, could you try python -m qai_hub_models.models whisper_base_en.export --target-runtime onnx
The difference between this and the command above is qai-hub-models
vs qai_hub_models
. The name with underscores is the correct name.
Hi Kory,
still got error as below, thanks.
(whispter_test) C:\qualcomm\ai-hub-apps\apps\windows\python\Whisper>python -m qai_hub_models.models whisper_base_en.export --target-runtime onnx C:\qualcomm\whispter_test\Scripts\python.exe: No module named qai_hub_models.models.main; 'qai_hub_models.models' is a package and cannot be directly executed
Sorry, I missed a period when I copied the above command:
python -m qai_hub_models.models.whisper_base_en.export --target-runtime onnx
(whispter_test) C:\qualcomm\ai-hub-apps\apps\windows\python\Whisper>python -m qai_hub_models.models.whisper_base_en.export --target-runtime onnx
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\Python39\lib\runpy.py", line 111, in _get_module_details
import(pkg_name)
File "C:\qualcomm\whispter_test\lib\site-packages\qai_hub_models\models\whisper_base_en__init__.py", line 5, in
run pip install whisper, got another error
(whispter_test) C:\qualcomm\ai-hub-apps\apps\windows\python\Whisper>python -m qai_hub_models.models.whisper_base_en.export --target-runtime onnx
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\Python39\lib\runpy.py", line 111, in _get_module_details
import(pkg_name)
File "C:\qualcomm\whispter_test\lib\site-packages\qai_hub_models\models\whisper_base_en__init.py", line 5, in
(whispter_test) C:\qualcomm\ai-hub-apps\apps\windows\python\Whisper>python -m qai-hub-models.models.whisper_base_en.export --target-runtime onnx C:\qualcomm\whispter_test\Scripts\python.exe: Error while finding module specification for 'qai-hub-models.models.whisper_base_en.export' (ModuleNotFoundError: No module named 'qai-hub-models')
pip list: Package Version
asttokens 2.4.1 audio2numpy 0.1.2 backcall 0.2.0 backoff 2.2.1 beautifulsoup4 4.12.3 certifi 2024.8.30 charset-normalizer 3.4.0 colorama 0.4.6 coloredlogs 15.0.1 contextlib2 21.6.0 contourpy 1.3.0 cycler 0.12.1 decorator 5.1.1 deprecation 2.1.0 exceptiongroup 1.2.2 executing 2.1.0 ffmpeg 1.4 filelock 3.16.1 flatbuffers 24.3.25 fonttools 4.54.1 fsspec 2023.6.0 gdown 4.7.1 gitdb 4.0.11 GitPython 3.1.42 h5py 3.12.1 huggingface-hub 0.23.5 humanfriendly 10.0 idna 3.10 importlib-resources 6.4.5 iniconfig 2.0.0 ipython 8.12.3 jedi 0.19.1 jinja2 3.1.4 kiwisolver 1.4.7 MarkupSafe 3.0.2 matplotlib 3.7.5 matplotlib-inline 0.1.7 mpmath 1.3.0 networkx 3.2.1 numpy 1.23.1 onnx 1.17.0 onnxruntime 1.19.2 onnxruntime-qnn 1.19.0 opencv-python 4.8.1.78 packaging 23.2 pandas 1.5.3 parso 0.8.4 pickleshare 0.7.5 Pillow 10.0.1 pip 20.2.3 pluggy 1.5.0 prettytable 3.9.0 prompt-toolkit 3.0.48 protobuf 3.20.2 pure-eval 0.2.3 pygments 2.18.0 pyparsing 3.2.0 pyreadline3 3.5.4 PySocks 1.7.1 pytest 7.4.2 python-dateutil 2.9.0.post0 pytz 2024.2 PyYAML 6.0.1 qai-hub 0.18.1 qai-hub-models 0.16.2 requests 2.32.3 requests-toolbelt 1.0.0 samplerate 0.2.1 schema 0.7.5 scipy 1.8.1 semver 3.0.2 setuptools 49.2.1 six 1.16.0 smmap 5.0.1 soupsieve 2.6 stack-data 0.6.3 sympy 1.13.3 tabulate 0.9.0 tomli 2.0.2 torch 2.1.2 torchvision 0.16.2 tqdm 4.66.2 traitlets 5.14.3 typing-extensions 4.12.2 urllib3 1.26.18 wcwidth 0.2.13 zipp 3.20.2