kidzik / event-detector Goto Github PK
View Code? Open in Web Editor NEWMachine Learning model for detecting gait events in mocap data
License: MIT License
Machine Learning model for detecting gait events in mocap data
License: MIT License
All the dependencies do not get downloaded using your instruction, matplotlib and sklearn needs to be installed manually.
I am using Python 2.7 on Mac OS Catalina, and when I run the script this is the error I get
ykk@Yongs-MBP Desktop % event-detector har20_0.c3d hello.c3d
Using TensorFlow backend.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/event-detector", line 10, in
from eventdetector.annotate import process
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eventdetector/annotate.py", line 11, in
import btk
File "/usr/local/lib/python2.7/dist-packages/btk/init.py", line 31, in
_btk = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/btk/init.py", line 27, in swig_import_helper
_mod = imp.load_module('_btk', fp, pathname, description)
ImportError: dlopen(/usr/local/lib/python2.7/dist-packages/btk/_btk.so, 2): no suitable image found. Did find:
/usr/local/lib/python2.7/dist-packages/btk/_btk.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
/usr/local/lib/python2.7/dist-packages/btk/_btk.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
I have downloaded btk as btk-0.3.0-1_x86_64.rpm which I uninstall then put it to the corresponding directory as stated on the script.
Could you have a look at this please?
Thank you,
Hello
I struggle to install every depedancies for working with your script.
I work under windows with python3.7 from anaconda32bits.
tensorflow sound not compatible with python3.7
even if i made a python 3.6 virtual env, that s not worked as well because tensor flow is 64bits-compatble only.
so have you tested your package with another keras.backend than tensorflow ?
regards
Fabien
Hey Lukas,
I have been working on your code and there's one thing I cannot quite get my head around.
In the event-detector/utils.py .
[(https://github.com/kidzik/event-detector/blob/7605ba78113fc149536fa855a53128c43abb1df0/eventdetector/utils.py#L34-L38) ]
It seems that I kept getting an error saying.
NotImplementedError: Cannot convert a symbolic Tensor to a NumPy array
I initially thought this was to do with tensorflow==2.0 but I downgraded TensorFlow to 1.5 as I thought that you would not have used 2.0. However, I kept getting the same error so what I did is a change from np.multipy to tf.multiply which then worked, but I am not sure whether this is the right thing to do.
Could you possibly explain this bit to me?
Thank you!
Hello,
I tried to import btk on python 3.7 on windows 10. pip install did not work. I could import it with conda forge created by someone else, but your code did not work with the btk. I installed executable btk from pypi website, but I got an error of python27.dll conflict. I changed the python version to python 2.7. Then, it seems that tensorflow does not support python 2.7... I am sorry, but I do not know what to do from here...
I appreciate your solution in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.