I have transferred the pynq lstm tcl and bit files to the pynq repo via network.
Then i loaded the bit file by the following lines:
from pynq import Overlay
overlay=Overlay(‘path to bit file/top_lstm.bit’)
Then if i run the inference its not able to find the .so files in the library of the pynq repo.
Even if i copy the .so files to the jupyter notebook , it doesnt get copied.
How to run the inference after transferring the overlay to the pynq folder of the board.
there must be some way of using this overlay to get the inference. Please help
I am using a zedboard. The pynq/lstm repo is supported for pynq-z1 and z2.
I have rebuilt the pynq lstm hardware design which created the ip for me along with the bit-stream and the tcl file.
I transferred the tcl file and bitstream to the pynq directory in my board via network on ubuntu 16.04
i also copied the pynq lstm directory to the jupyternotebooks folder of the board again via the network.
The repo on github is having several folders like the lstm, notebooks.
I created this ipynb file inside the notebooks folder on jupyter.
Then i have written the code shown in the pic with the error messages.
Please guide as to how should i perform my inference
Looks like you are missing the .so files mentioned in the error message. Do they exist in the locations specified in the error message?
I think the problem is you have just copied the whole repository or directory over. When you use the overlay, it is usually installed using pip (pip3 command) which installs the shared libraries to the board.
Have you tried install it first, and then copying the new bit/tcl to the board?
Cathal
If i try to install the repo to the board , it fails since the setup.py mentions that the board must be either a pynq z1 or pynq z2. can i install the .so files seperately?
i tried removing that line from the setup.py where it checks if the board is a pynq z1 ,z2 or not , but still it gives errors like no pynq module found .
I tried installing the repo to the board by removing the lines from setup.py which says stop the installation for any other boards other than pynq z1 or z2. still the same error results.
cant find the .so files.
error is : OSError: cannot load library ‘/usr/local/lib/python3.6/dist-packages/lstm/libraries/plain/W2A4/libhw-plain-W2A4-ocr-pynq.so’: libsds_lib.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called ‘/usr/local/lib/python3.6/dist-packages/lstm/libraries/plain/W2A4/libhw-plain-W2A4-ocr-pynq.so’
I dont find any python 3.6 on my computer. where should this directory exactly be ?
Hey,
i try to implement the LSTM to an ULTRA96 Board.
my steps where:
Rewrite all Sythesis scripts and tcl to Ultra96
copied the *.so file, the tcl, and the bitstream file to the board
now i get the same error:
OSError: cannot load library ‘/usr/local/lib/python3.6/dist-packages/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so’: /usr/local/lib/python3.6/dist-packages/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called ‘/usr/local/lib/python3.6/dist-packages/lstm/libraries/plain/W2A2/libhw-plain-W2A2-ocr-pynq.so’
do you know what do to?
or what do you mean to creat a symbolic link?
I think the error comes from the incompatibility of the so files. You cannot simply take their so files since they are probably built against pynq-z1 or pynq-z2 boards. For ultra96 you need to rebuild those so files (ultra96 is aarch64, as opposed to armv7l on pynq-z1/z2).