Closed VonEconomo closed 4 months ago
Does the provided model work with abf files?
Yes, the models work with data irrespective of the original file type.
The TypeError you encountered is most likely due to different Tensorflow version being used for model training and for inference (on your device). Could you please check and report your Tensorflow version?
import tensorflow as tf
print(tf.__version__)
Thank you for the fast reply!
Python 3.11.3 (main, May 15 2023, 18:01:31) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
2.16.1
This seems to be a backward compatibility problem in the Tensorflow package. You can try using an earlier Tensorflow version (2.14.0 or 2.15.0 should work):
pip install tensorflow==2.15.0 --force-reinstall
Please let me know if this solves the issue.
I reinstalled everything on python 3.9 and made sure to install tensorflow 2.14.0 this solved the issue for me. Thanks alot for the great work!
I am currently following your tutorial and trying it out on one of my recordings. I successfully loaded the
.abf
file, but when I try to initialize theEventDetection
object, I get the following error:Here is the code I am using:
Could you please help me understand what might be causing this error and how to resolve it?
Thank you!