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

Error in annotate.py "'NoneType' object has no attribute 'data'" #15

Open
samiarja opened this issue Oct 21, 2019 · 0 comments
Open

Error in annotate.py "'NoneType' object has no attribute 'data'" #15

samiarja opened this issue Oct 21, 2019 · 0 comments

Comments

@samiarja
Copy link

samiarja commented Oct 21, 2019

I am using python 3.6.x with windows 10 OS.
I am encountering an error while running annotate.py script, I did a minor change for the code to make it compatible with python 3.
I knew the code run smoothly when the below was show in the terminal.

Event-based vision module imported
State file found.
State file updated.
Please enter your name: Sami
Press [a] to add a track, [c] to mark this file as complete and continue to the next file, or [x] to exit.A
Annotating track number 0
Click in window and press spacebar to begin tracking

however, I followed all the instruction from the code and when the image open I tried to click on spacebar to begin tracking, but this what I got

Traceback (most recent call last):
File "C:/Users/Sami/Desktop/Companies/The MARCS Institute/Code Testing/DV Software Code/event-Python-master/annotate.py", line 530, in
main()
File "C:/Users/Sami/Desktop/Companies/The MARCS Institute/Code Testing/DV Software Code/event-Python-master/annotate.py", line 509, in main
add_track(annotation_state.output_subfolders[incomplete_file_ind], num_track_files, TD, annotated_by, annotation_state.source_files[incomplete_file_ind])
File "C:/Users/Sami/Desktop/Companies/The MARCS Institute/Code Testing/DV Software Code/event-Python-master/annotate.py", line 374, in add_track
track = annotate_tracks(TD, 100000)
File "C:/Users/Sami/Desktop/Companies/The MARCS Institute/Code Testing/DV Software Code/event-Python-master/annotate.py", line 186, in annotate_tracks
tmax = np.max(TD.data.ts)
AttributeError: 'NoneType' object has no attribute 'data'

Is this a bug? I am using nmnist.hdf5 dataset

thanks
Sami

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