loiccordone / object-detection-with-spiking-neural-networks

Repository code for the IJCNN 2022 paper "Object Detection with Spiking Neural Networks on Automotive Event Data"
MIT License
57 stars 12 forks source link

local variable 'sample' referenced before assignment #30

Closed rachmadvwp closed 10 months ago

rachmadvwp commented 10 months ago

Hi Loic, I tried to run the code for NCARS dataset, but faced the following issue:

File "/home/me/objdetectSNN/datasets/classification_datasets.py", line 40, in __getitem__
    sample = sample.sparse_resize_( 
UnboundLocalError: local variable 'sample' referenced before assignment

Kindly let me know how to address it properly. Many thanks.

rachmadvwp commented 10 months ago

I think I have fixed the issue. I'll close it for now. Thanks.