Mycroft Community Forum

Precise wakeword train problem

i follow structure of readme and collect wav file …but …i have this error… help !

precise-train -e 60 tars-start.net tars-start/
2021-04-30 19:05:34.881606: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library ‘libcudart.so.11.0’; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-04-30 19:05:34.881702: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Using TensorFlow backend.
Traceback (most recent call last):
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/bin/precise-train”, line 33, in
sys.exit(load_entry_point(‘mycroft-precise’, ‘console_scripts’, ‘precise-train’)())
File “/home/dani/Scaricati/mycroft-precise-dev/precise/scripts/base_script.py”, line 43, in run_main
script = cls(args)
File “/home/dani/Scaricati/mycroft-precise-dev/precise/scripts/train.py”, line 87, in init
self.model = create_model(args.model, params)
File “/home/dani/Scaricati/mycroft-precise-dev/precise/model.py”, line 76, in create_model
model = Sequential()
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/tensorflow/python/training/tracking/base.py”, line 522, in _method_wrapper
result = method(self, *args, **kwargs)
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/keras/engine/sequential.py”, line 109, in init
super(functional.Functional, self).init( # pylint: disable=bad-super-call
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/tensorflow/python/training/tracking/base.py”, line 522, in _method_wrapper
result = method(self, *args, **kwargs)
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/keras/engine/training.py”, line 245, in init
super(Model, self).init(**kwargs)
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/tensorflow/python/training/tracking/base.py”, line 522, in _method_wrapper
result = method(self, *args, **kwargs)
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/keras/engine/base_layer.py”, line 350, in init
self._init_set_name(name)
File “/home/dani/Scaricati/mycroft-precise-dev/.venv/lib/python3.9/site-packages/keras/engine/functional.py”, line 501, in _init_set_name
self._name = backend.unique_object_name(
AttributeError: module ‘keras.backend’ has no attribute ‘unique_object_name’

in not-wake-word folder i put tars-start.00.wav in test folder i follow name of readme… as tars-start.00.wav tars-start.01.wav etc…

What happened when you ran the setup.sh script?

1 Like

Lerme re run again and post … Thanks for reply

./setup.sh
[sudo] password di dani:
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze… Fatto
Lettura informazioni sullo stato… Fatto
curl è già alla versione più recente (7.74.0-1.2).
libatlas-base-dev è già alla versione più recente (3.10.3-10).
libhdf5-dev è già alla versione più recente (1.10.6+repack-2).
libopenblas-dev è già alla versione più recente (0.3.13+ds-3).
libpulse-dev è già alla versione più recente (14.2-2).
portaudio19-dev è già alla versione più recente (19.6.0-1.1).
python3-h5py è già alla versione più recente (2.10.0-9).
python3-pip è già alla versione più recente (20.3.4-1).
python3-scipy è già alla versione più recente (1.6.0-2).
swig è già alla versione più recente (4.0.2-1).
0 aggiornati, 0 installati, 0 da rimuovere e 13 non aggiornati.
Obtaining file:///home/dani/Scaricati/mycroft-precise-dev/runner
Requirement already satisfied: pyaudio in ./.venv/lib/python3.9/site-packages (from precise-runner==0.3.1) (0.2.11)
Installing collected packages: precise-runner
Attempting uninstall: precise-runner
Found existing installation: precise-runner 0.3.1
Uninstalling precise-runner-0.3.1:
Successfully uninstalled precise-runner-0.3.1
Running setup.py develop for precise-runner
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
mycroft-precise 0.3.0 requires keras<=2.1.5, but you have keras 2.2.4 which is incompatible.
Successfully installed precise-runner-0.3.1
Obtaining file:///home/dani/Scaricati/mycroft-precise-dev
Requirement already satisfied: sonopy in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (0.1.2)
Requirement already satisfied: pyaudio in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (0.2.11)
Collecting keras<=2.1.5
Using cached Keras-2.1.5-py2.py3-none-any.whl (334 kB)
Requirement already satisfied: h5py in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (3.1.0)
Requirement already satisfied: wavio in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (0.0.4)
Requirement already satisfied: typing in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (3.7.4.3)
Requirement already satisfied: prettyparse>=1.1.0 in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (1.2.0)
Requirement already satisfied: precise-runner in ./runner (from mycroft-precise==0.3.0) (0.3.1)
Requirement already satisfied: attrs in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (20.3.0)
Requirement already satisfied: fitipy<1.0 in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (0.1.2)
Requirement already satisfied: speechpy-fast in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (2.4)
Requirement already satisfied: pyache in ./.venv/lib/python3.9/site-packages (from mycroft-precise==0.3.0) (0.2.0)
Requirement already satisfied: scipy>=0.14 in ./.venv/lib/python3.9/site-packages (from keras<=2.1.5->mycroft-precise==0.3.0) (1.6.3)
Requirement already satisfied: numpy>=1.9.1 in ./.venv/lib/python3.9/site-packages (from keras<=2.1.5->mycroft-precise==0.3.0) (1.19.5)
Requirement already satisfied: pyyaml in ./.venv/lib/python3.9/site-packages (from keras<=2.1.5->mycroft-precise==0.3.0) (5.4.1)
Requirement already satisfied: six>=1.9.0 in ./.venv/lib/python3.9/site-packages (from keras<=2.1.5->mycroft-precise==0.3.0) (1.15.0)
Installing collected packages: keras, mycroft-precise
Attempting uninstall: keras
Found existing installation: Keras 2.2.4
Uninstalling Keras-2.2.4:
Successfully uninstalled Keras-2.2.4
Attempting uninstall: mycroft-precise
Found existing installation: mycroft-precise 0.3.0
Uninstalling mycroft-precise-0.3.0:
Successfully uninstalled mycroft-precise-0.3.0
Running setup.py develop for mycroft-precise
Successfully installed keras-2.1.5 mycroft-precise-0.3.0
Requirement already satisfied: pocketsphinx in ./.venv/lib/python3.9/site-packages (0.1.15)

how can i name not-wake-word inside folder not-wake word … trash,00.wav and trash.01.wav in folders is ok??

name the wav files any valid filename you want, just make sure they sit in the right places.

I did but i don’t train…