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

precise-test doesn't work #246

Open
Alexey-Pereverzev opened this issue Mar 10, 2024 · 0 comments
Open

precise-test doesn't work #246

Alexey-Pereverzev opened this issue Mar 10, 2024 · 0 comments
Labels

Comments

@Alexey-Pereverzev
Copy link

After training the model I want to test it. But precise-train doesn't work as expected:

(.venv) aleksei@aleksei-VirtualBox:~/Projects$ precise-test ai-vitau.net ai-vitau/
Loading wake-word...
Loading not-wake-word...
2024-03-10 20:09:34.518885: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2024-03-10 20:09:34.523107: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2994370000 Hz
2024-03-10 20:09:34.523295: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x292b970 executing computations on platform Host. Devices:
2024-03-10 20:09:34.523318: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
Using TensorFlow backend.
Traceback (most recent call last):
File "/home/aleksei/Projects/mycroft-precise/.venv/bin/precise-test", line 33, in
sys.exit(load_entry_point('mycroft-precise', 'console_scripts', 'precise-test')())
File "/home/aleksei/Projects/mycroft-precise/precise/scripts/base_script.py", line 49, in run_main
script.run()
File "/home/aleksei/Projects/mycroft-precise/precise/scripts/test.py", line 52, in run
predictions = Listener.find_runner(args.model)(args.model).predict(inputs)
File "/home/aleksei/Projects/mycroft-precise/precise/network_runner.py", line 85, in init
self.model = load_precise_model(model_name)
File "/home/aleksei/Projects/mycroft-precise/precise/model.py", line 54, in load_precise_model
return load_keras().models.load_model(model_name)
File "/home/aleksei/Projects/mycroft-precise/.venv/lib/python3.6/site-packages/keras/models.py", line 242, in load_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

Any help is really appreciated

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

1 participant