synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
77 stars 8 forks source link

Speck2e coordinate issue while making configuration #166

Closed ssinhaleite closed 9 months ago

ssinhaleite commented 9 months ago

The default configuration for Speck2E in samna is set to mirror and swap the x y coordinate. But configuration made by method 'make_config' of DynapcnnNetwork object doesn't consider this. Therefore once the config obj has been made, we have to modify the config by following code manually.

config = dynap_net.make_config(chip_layers_ordering="auto", device="speck2e")  
config.dvs_layer.mirror.x = True  
config.dvs_layer.mirror_diagonal = True