fangwei123456 / spikingjelly

SpikingJelly is an open-source deep learning framework for Spiking Neural Network (SNN) based on PyTorch.
https://spikingjelly.readthedocs.io
Other
1.22k stars 233 forks source link

wana to apply some change on the x,y,p,t data: #518

Closed TTiannaiTT closed 3 months ago

TTiannaiTT commented 3 months ago

Hi, I'm now trying to do some change to the data of the event stream, but after I extracted the x,y,p,t np.ndarray from the dataset and finished my transformation. I can't wrap them back into the dataset anymore. And if I directly change the trainset, I got the following error:

TypeError: 'NpzFile' object does not support item assignment

Looking forward to your suggestions. Thank you.

TTiannaiTT commented 3 months ago

I just drop part of the event data.

TTiannaiTT commented 3 months ago

I have done it by directly modifying the npz files, it's not very good but it works.