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

Problem of processing event #9

Open
Amelia2675 opened this issue Apr 20, 2024 · 3 comments
Open

Problem of processing event #9

Amelia2675 opened this issue Apr 20, 2024 · 3 comments

Comments

@Amelia2675
Copy link

Hello,

Thank you for your contribution!

When I executed the process_event.py, I encountered some issues, as shown in the picture.

I have two questions:

  1. What is the data type of the data in the h5_file?
  2. In the process_event.py script, why does h5_file.root.vector[:] not capture the data in the h5_file? (It seems that the array contains all zeros)

Thank you.
image

Best regards,
Amelia

@ZuowenWang0000
Copy link
Collaborator

Hi Amelia,
Thanks for checking out our repo. Could you please use np.nonzero to check if it's really an all zero array? It could be that the beginning and end are mostly zero which is very normal for event based data.

@Amelia2675
Copy link
Author

Dear ZuoWen,

Thank you for your response.

I have noticed that the data shape and extended_data shape appear as expected, but it seems that there is no data present in the extended_data.

image

As stated in the README, data_dir is directed to "/DATA/pupil_st/data_ts_500". I am uncertain about what exactly should be placed in the data_ts_500 directory. Could you please provide further guidance on this?

Thank you!

Sincerely,
Amelia

@ZuowenWang0000
Copy link
Collaborator

hi Amelia,
for using the convlstm-et-pytorch-event.py script, the data directories are organized as:
data_dir_train = "./dataset/data_ts_pro/train/"
data_dir_val = "./dataset/data_ts_pro/val/"
target_dir = "./dataset/pupil_st/label"

The data are preprocessed event frames which can be downloaded from (link available in the readme):
https://drive.google.com/drive/folders/16qH_wv_oVNysJARtHIUrIXbHjOygfq_i?usp=sharing

The process_event.py script is to process raw events into event frame, and for that you need to download data from: https://drive.google.com/drive/folders/1HeOS5YBLruzHjwMKyBQfVTc_mJbsy_R1

Please let me know if you have any further question!
best,
zw

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

2 participants