Hello,
I am trying to map MNIST example into the Akida Hardware. I have installed hardware in my PC. According to the example my workflow is
Data load------> Create Keras Network--------> train the network in keras------->Quantize it
Then
from cnn2snn import convert, set_akida_version, AkidaVersion
with set_akida_version(AkidaVersion.v2):
model_akida = convert(model_quantized)
set version and convert it to akida model.
to map the model in the hardware
import akida
devices = akida.devices()
print(f’Available devices: {[dev.desc for dev in devices]}')
assert len(devices), “No device found, this example needs an Akida NSoC_v2 device.”
device = devices[0]
assert device.version == akida.NSoC_v2, “Wrong device found, this example needs an Akida NSoC_v2.”
model_akida.map(device)
Check model mapping: NP allocation and binary size
model_akida.summary()
but it showed an error.
RuntimeError Traceback (most recent call last)
Cell In[17], line 1
----> 1 model_akida.map(device)
3 # Check model mapping: NP allocation and binary size
4 model_akida.summary()
RuntimeError: The IP version of the model and device must be identical.
Can anyone help me out?
Thank You.
@Rashedul@Eoin
Currently Edge Impulse is supporting only NSoC_v1, as the 2nd generation of the Akida is not yet released AFAIK.
What hardware did you install in your PC? Is it an accelerator based on AKD1000?
@davidtischler_edgeim Thanks.
As far as I’m aware, there are two types of Keras model conversion: Akida1 and Akida 2. Do you know which type of model conversion your hardware supports?
@Rashedul
Sorry for my mistake. Indeed, AKD1000 is reporting itself as NSoC_v2. Answering your question, you need to set AkidaVersion.v1 according to BrainChip’s documentation.
I see it is somewhat confusing that the device is NSoC_v2, but the Akida version is v1. I guess the NSoC is a version of the SoC, while the version set by set_akida_version is the IP version.
Sorry to bother you, I have followed the install steps
but when typing the “lspci | grep Co-processor”, I can’t get the expected reply “Device 1e7c:bca1 (rev 01)”
My chip is installed and it’s glowing as in the video, so I don’t know what is the problem
OK, thank you
I have asked my senior and he thinks it’s because the pcie channel can’t be used by virtual machine.
Solution is to modify relational settings or install Linux on the physical machine(I used the latter, solved)