Closed reshkor closed 4 years ago
I will investigate
Hi @reshkor , I have mostly performed your actions.
self.interface.load_parameters(params.encode())
as you say (but i don't understand why)self.interface.inference(....)
Can you explain me what are the steps that you follow?Thanks, Sara
Hello @saraballeri ,
self.interface.load_parameters(params.encode())
line https://github.com/Xilinx/BNN-PYNQ/blob/65f212439715bfd214104b23d418b167d5f840c9/bnn/bnn.py#L112Slightly elaborated steps:
self.interface.load_parameters(params.encode())
in BNN-PYNQ/bnn/bnn.pyhw_classifier = bnn.CnvClassifier(bnn.NETWORK_CNVW1A1,'cifar10',bnn.RUNTIME_HW)
bnn.NETWORK_CNVW1A1 will load cnvW1A1-pynqZ1-Z2.bit from bitstreams folder, which should be the FINN generated .bit file.NOTE: If you first run CIFAR10 notebook example with default settings(so loading parameters from BNN-PYNQ/bnn/params folder and original cnvW1A1-pynqZ1-Z2.bit) and then make changes to load the FINN .bit file without resetting the board, the CIFAR10 notebook example will be able to classify pictures correctly. However after the reset of the Pynq board all pictures will be classified as 'Deer' with FINN .bit file.
Hope it helps
Hi @reshkor , thank you for your quick response and your full explanation. I'll try again to perform those steps. Anyway:
Sorry for the lot of questions, but I'm doing my master thesis and I'm coming close to the world of neural networks on FPGA now.
Thanks a lot, Sara
@saraballeri ,
@reshkor , exactly the same things for me. I cannot spend much time on implementing new overlays :( Thanks very much, your explanation has removed all doubt from my mind.
Sara
I'm closing all issues relating to the v.01 version in preparation for the new release. Please note that v0.1 is now deprecated and unsupported.
Hello,
I have tried to implement example convolution network (cnv-w1a1.caffemodel) on PYNQ, but it always fails. I have used BNN-PYNQ project (commits: 1365efa233fa8a66b1c9e68e2f1d00e3bf834f8b and 2fe7f6ad3968bcb4b496203b3e7e73e325d3b4a2) to deploy .bit file created by FINN. Steps to reproduce:
self.interface.load_parameters(params.encode())
in bnn/bnn.py of BNN-PYNQ.The results for each picture will be always Deer.