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

https://github.com/tensorflow/examples.git can't use on audio #416

Open
herbiel opened this issue Dec 4, 2024 · 0 comments
Open

https://github.com/tensorflow/examples.git can't use on audio #416

herbiel opened this issue Dec 4, 2024 · 0 comments

Comments

@herbiel
Copy link

herbiel commented Dec 4, 2024

%cd examples/lite/examples/sound_classification/raspberry_pi/classify.py

!python classify.py
2024-12-04 05:02:25.542526: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2024-12-04 05:02:25.600204: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2024-12-04 05:02:25.600904: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-12-04 05:02:26.739275: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
ERROR: The model is not a valid Flatbuffer buffer
Traceback (most recent call last):
File "/content/examples/lite/examples/sound_classification/raspberry_pi/classify.py", line 134, in
main()
File "/content/examples/lite/examples/sound_classification/raspberry_pi/classify.py", line 128, in main
run(args.model, int(args.maxResults), float(args.scoreThreshold),
File "/content/examples/lite/examples/sound_classification/raspberry_pi/classify.py", line 52, in run
classifier = audio.AudioClassifier.create_from_options(options)
File "/usr/local/lib/python3.10/dist-packages/tensorflow_lite_support/python/task/audio/audio_classifier.py", line 93, in create_from_options
classifier = _CppAudioClassifier.create_from_options(
ValueError: The model is not a valid Flatbuffer buffer

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

No branches or pull requests

1 participant