-
Notifications
You must be signed in to change notification settings - Fork 53
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
input_feature_vector_gen.py issue #9
Comments
Have you checked the output of the open function alone? Can you share what string, it tries to convert to float? As map function should work just fine. |
Hey, Thanks for the response. here's the output of the open function: |
@nadirlatif532 Have you changed the fc6-1 feature into csv format with the matlab script provided in C3D repository( https://docs.google.com/document/d/1-QqZ3JHd76JfimY4QKqOojcEaf5g3JS0lNh-FHTxLag/edit use this guide to do so)? Please follow https://github.com/abhay97ps/Anomaly-Detection-in-Surveillance-Videos/issues/3#issuecomment-437678349 for implementing the project. |
@nadirlatif532 Could you please provide the data set of UCF_CREME? |
The dataset is ~100GB. I currently don't have this kind of web storage capability. I can share the extracted features though? |
The script in unable to convert strings to float of my fc6-1 feature files in the following line:
norm = normalize(np.array(map(float,open(os.path.join(dirpath, fl)).readlines()[0].strip().split(','))).reshape(1,-1),norm='l2')
The error is specifically in the map function, it states, cannot convert strings to float.
Any help will be appreciated!
The text was updated successfully, but these errors were encountered: