Comments (3)
Thanks for the help. Figured out the issues.
- Must build with Python 3.10. Pybind hasn't support Python 3.11 yet.
- Must install with
python -m pip install .
So the following commands work for me using micromamba (should with conda too).
micromamba create -n useful
micromamba activate useful
micromamba install python==3.10
cd /path/to/useful-transofrmers
python -m pip install .
taskset -c 4-7 python -m useful_transformers.transcribe_wav
Alternatively do the following horrible thing to avoid needing to package each time code change
# Setup your conda/mamba env
# ...
pip install -e .
mkdir useful_transformers
ln -s ./_skbuild/linux-aarch64-3.10/cmake-build/examples/whisper/pybind_whisper.cpython-310-aarch64-linux-gnu.so useful_transformers/pybind_whisper.cpython-310-aarch64-linux-gnu.so
taskset -c 4-7 python -m useful_transformers.transcribe_wav
from useful-transformers.
I'm expecting that the setup would've shown errors indicating a pybind issue.
What worked for me is to install the unlisted dependencies prior to the dev instalation:
pip install pybind11[global] torch
pip install -e .
from useful-transformers.
@marty1885 The following sequence of commands worked well for me:
$ python -m venv le_us
$ source le_us/
$ source le_us/bin/activate
$ cd useful-transformers/
$ python -m pip install .
$ taskset -c 4-7 python -m useful_transformers.transcribe_wav
This is what I do for local development myself.
If installing the whl file (as specified in README.md) worked for you, then you can build the whl file and install it explicitly as follows:
$ python -m pip wheel .
$ python -m pip install useful_transformers-0.1-cp310-cp310-linux_aarch64.whl
(Note, your exact python version determines the name of the .whl file, so use the one that gets built on your machine.)
from useful-transformers.
Related Issues (20)
- Share information HOT 6
- Providing help and FLOSS stack HOT 1
- 请教模型是如何利用3588的npu计算的 HOT 1
- 提问 HOT 1
- please help me HOT 1
- help
- Using my own wav file to transcribe the results was wrong HOT 6
- How to run the transcribe_wav.py code directly instead of using the release wheel package?
- How to fix issue when i build filters_vocab_gen_util.ipnb?
- react native
- Hello, author. Does it support converting chatglm6b into the corresponding model? grateful
- Project Raodmap or Project abandoned? HOT 1
- Support shorter n_audio_ctx HOT 1
- hello,author,Can I ask you exactly how you optimized the model performance of the transformer?
- Is it possible to set input language with whisper-base.tflite? HOT 1
- RK3566 support? HOT 1
- How to run the Whisper on GPU
- Home Assistant addon support?
- Get confidence values?
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 useful-transformers.