BICLab / Attention-SNN

Offical implementation of "Attention Spiking Neural Networks" (IEEE T-PAMI2023)
https://ieeexplore.ieee.org/abstract/document/10032591
MIT License
53 stars 7 forks source link

Fix ModuleNotFoundError. #6

Open ZBX05 opened 5 months ago

ZBX05 commented 5 months ago

Code in file "Attention-SNN/MA_SNN/DVSGestures/Att_SNN_CNN.py", line 5 caused "ModuleNotFoundError: No module named 'DVSGestures'". This commitment fix this bug by adjusting the directory appended to "sys.path".

Before:

sys.path.append(os.path.dirname("__file__"))

Now:

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))