Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant train wake word #218

Open
Dfreezer30 opened this issue Jan 12, 2022 · 3 comments
Open

cant train wake word #218

Dfreezer30 opened this issue Jan 12, 2022 · 3 comments
Labels

Comments

@Dfreezer30
Copy link

when running precise-train -e 60 hey-computer.net hey-computer/
I get
Traceback (most recent call last):
File "/home/pi/mycroft-precise/.venv/bin/precise-train", line 33, in
sys.exit(load_entry_point('mycroft-precise', 'console_scripts', 'precise-train')())
File "/home/pi/mycroft-precise/.venv/bin/precise-train", line 25, in importlib_load_entry_point
return next(matches).load()
File "/home/pi/mycroft-precise/.venv/lib/python3.7/site-packages/importlib_metadata/init.py", line 194, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/pi/mycroft-precise/precise/scripts/train.py", line 58, in
from keras.callbacks import LambdaCallback
File "/home/pi/mycroft-precise/.venv/lib/python3.7/site-packages/keras/init.py", line 3, in
from . import utils
File "/home/pi/mycroft-precise/.venv/lib/python3.7/site-packages/keras/utils/init.py", line 5, in
from . import io_utils
File "/home/pi/mycroft-precise/.venv/lib/python3.7/site-packages/keras/utils/io_utils.py", line 11, in
import h5py
File "/home/pi/mycroft-precise/.venv/lib/python3.7/site-packages/h5py/init.py", line 25, in
from . import _errors
File "h5py/_errors.pyx", line 1, in init h5py._errors
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject

Did I do something wrong???
Please help!!!

@Dfreezer30 Dfreezer30 added the bug label Jan 12, 2022
@Dfreezer30
Copy link
Author

also it says in the instructions Now, place most of these files under hey-computer/wake-word/ and the rest under hey-computer/test/wake-word but I'm not exactly sure how to do this.

@el-tocino
Copy link

Are you running this on picroft directly?

@TheRealDGD
Copy link

@Dfreezer30

I had the same trouble, finally i got it running using specific versions of numpy and h5p.

pip install numpy==1.6.0
pip install h5py==2.9.0

Now I found the same hint here: https://github.com/sparky-vision/mycroft-precise-tips/blob/main/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants