nyumaya / nyumaya_audio_recognition

Classify audio with neural nets on embedded systems like the Raspberry Pi
https://nyumaya.com
Apache License 2.0
82 stars 14 forks source link

'MultiDetector' object has no attribute 'detected_callback' #17

Closed nsxr51 closed 5 years ago

nsxr51 commented 5 years ago

Describe the bug after detecting "word" with MultiDetector
throw exception

Traceback (most recent call last): Traceback (most recent call last): File "multi_streaming_example.py", line 90, in label_stream(FLAGS.libpath) File "multi_streaming_example.py", line 68, in label_stream threading.Thread(target=FTask(frame,extractor_gain)).start() File "multi_streaming_example.py", line 39, in FTask mDetector.run_frame(features) File "./src/multi_detector.py", line 134, in run_frame if(self.detected_callback): AttributeError: 'MultiDetector' object has no attribute 'detected_callback'

To Reproduce running multi_streaming_example.py

Platform aarch64

yodakohl commented 5 years ago

Thank you very much for the issue report. I fixed the issue with the latest commit.