MobileNet-in-FPGA
MobileNet-in-FPGA copied to clipboard
What does the 37 on the digital tube mean?
Hello, thank you for sharing the engineering resources. I would like to ask, I used your pretrained weight files, put the storage.v and storage_bias.v files into the weight.txt file, and successfully sent them to the FPGA through the serial port, but the LCD still shows pure white, I can emulate the input image data using Signal Tap, and the digital tube shows 37, what does this What does it mean?
Check display connection. If you connected it with wires as in the demo, a bad contact is possible. The voltage on the GPIO is 5 and 3.3V. VCC must be taken only 3.3V. When flashing through the Programmer, the screen should turn black. You can also check your connection in Pin Planer by comparing it with the manual (page 33).
https://www.terraelectronica.ru/pdf/show?pdf_file=%252Fpdf%252FTERASIC%252Fopenvino_starter_kit_gt_edition_user_manual_en_2.pdf
Thank you very much for your reply. I have carefully checked the pin assignments several times and measured the pin voltages with a voltmeter at 3.3 V. Now I wonder if it is a problem with the weight bit widths in my weights.txt file? Because the optimal bit width of the weights I generated does not match the optimal bit width you gave. Can I take the liberty to ask you if you can share the weights/weights_cars.txt file?
Hello. You can find weights file for people here: https://drive.google.com/file/d/1-AtcpEhaiKIGhBVai_X-wendXKEltk1e/view?usp=sharing
We added new python file: https://github.com/ZFTurbo/MobileNet-in-FPGA/blob/master/r08_generate_weights_file_for_FPGA.py
It generates weights in needed format.
Also some notes from Alex who did most of work with FPGA:
- if a yellow inscription appears next to the project navigator when opening a project, you should go there and click the button 'perform automatic upgrade'. When success appears in regeneration status, close.
- compile the project (processing -> start compilation)
- turn on the device (toggle switch on the board)
- flash the project in the FPGA (Tools -> programmer, in the start window that opens, the display on the board will turn black)
- run the data_uart_to_fpga code and, thus, throw weights into the FPGA (there will be a loading bar). Perhaps in the code you will need to change the path to the file with weights (WEIGHT_FILE_TO_USE), or change the serial port (COM3, COM4 most often, you can see for sure in the connected devices computer)
- after loading the scales, the image from the camera will appear on the screen. can be tested.
Thank you very much for your careful answer. At present, all the problems have been solved. I wish you a pleasant life.
I have a question. Was you able to run the code successfully on FPGA?
It can now run successfully on FPGA. After upgrading IP core in Quartus, it is successful.Thank you for your guidance.