Tensorflow and Keras in PYNQ-ZU

Hey, so this is my first post here yippee. Anyway…

I need some help with installing tensorflow and keras into the PYNQ-ZU (I don’t know what the tool version is). So far I’ve been able to connect the board to the wifi and was able to download tensorflow from there, I’ve checked with jupyter and putty with what the version is and it seems to be communicating properly. Then I tried to run a code with keras on it and it just doesn’t work, even with checking for the version with keras it doesn’t work. Though I’ve used pip list and saw that there is tensorflow and keras available (2.18.0 and 3.7.0 versions respectively).

From the image below,

you can see a simple testing of whether tensorflow works and whether keras works. It seems that tensor works but when it came to keras it just errors. If it’s needed to be known, at the end of this I’m going to be putting a pre-trained CNN model (.h5 file which was done in tensorflow) into the fpga for testing. Then after that is finished I’ll be putting the untrained CNN model into the fpga for training. Any advice or help on how I can do this (for making keras work first, and then if there are any advice for the pre-trained model and the training in the fpga it would be much highly very very much appreciated). Thank youuu.

1 Like

Hi @Beego,

Welcome to the PYNQ community.

The screenshot is cut and not showing the actual error.

Can you elaborate why you would like to install tensorflow and keras on the board itself?

Mario

Thank you for the welcome.

I wanted to install tensorflow and keras because I thought those were necessary to input the pre-trained CNN model (.h5 file) into PYNQ-ZU board. And because that’s what chatgpt told me :stuck_out_tongue: , would there be much better ways in implementing that .h5 file into the FPGA? I’m mainly using Jupyter notebook to do this.

Tensorflow and Keras will be installed in the processing system and will not use the FPGA.

You should check Vitis AI (and DPU-PYNQ), FINN or HLS4ML.

Mario

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.