Hi, I´m trying to upload the model compiled from train_mnist_classifier example. I am using PYNQ 2.6 , Vivado 2020.1 and PYNQ-DPU 1.2.
When I compile the model, I get a “.xmodel” file instead of “.elf”. Then, I uploaded the model and the “dpu.bit” files to the board, but when I try to run this code in Jupyter Notebook:
from pynq_dpu import DpuOverlay
overlay = DpuOverlay(“…/mymodel/dpu.bit”)
overlay.load_model(“…/mymodel/mnist_classifier.xmodel”)
appears this error:
RuntimeError Traceback (most recent call last)
in ()
1 from pynq_dpu import DpuOverlay
2 overlay = DpuOverlay(“…/mymodel/dpu.bit”)
----> 3 overlay.load_model(“…/mymodel/mnist_classifier_org.xmodel”)
/usr/local/lib/python3.6/dist-packages/pynq_dpu/dpu.py in load_model(self, model)
211
212 if not model.endswith(“.elf”):
→ 213 raise RuntimeError(“Currently only elf files can be loaded.”)
214 else:
215 if self.runtime == ‘dnndk’:
RuntimeError: Currently only elf files can be loaded.
Any suggestions?
Regards