changwoolee / lenet5_hls Goto Github PK
View Code? Open in Web Editor NEWFPGA Accelerator for CNN using Vivado HLS
License: MIT License
FPGA Accelerator for CNN using Vivado HLS
License: MIT License
The license already overdue. Can you make it latest? because I cant install PowerShell
Can teach me how to run the Win 10 application?
Hi, changwoolee,
Please release a tutorial project to verify it. Thank you !
Where can i find the report?
Hi. I'm trying to inference my own trained weights and bias through your C Model (Weights and bias trained from Tensorflow Model which has same model architecture with yours.)
But it doesn't give a good result like you (About 10% of accuracy.)
Can you let me know, how did you train your weights and bias?
Thanks.
Can you explain to me why leNet having the Wpool and bpool? @changwoolee
In main code, line 134 loads file Wconv3_modify.mdl but the file is not in the filter folder. Please provide it.
Thank You.
I want to know details about how to implement this .Could you help me?
thank you!
Hi @changwoolee ,I‘m VERY interested in your project, you've got a brilliant acheivement.
I also got a zynq-7020 board. But I am a newcomer in this area.
May you tell me how to run your projcet on the board.(in steps)
I'll really appreciate it.
Thanks in advance.
`#include "ap_int.h"
#include "test.h"
void test(ap_fixed<18,10> A[10],ap_fixed<18,10> B[10], ap_fixed<18,10> C[10]){
ap_fixed<18,10> temp1[10];
ap_fixed<18,10> temp2[10];
ap_fixed<18,10> temp3[10];
#pragma HLS ARRAY_PARTITION variable=temp1 complete dim=1
#pragma HLS ARRAY_PARTITION variable=temp2 complete dim=1
#pragma HLS ARRAY_PARTITION variable=temp3 complete dim=1
for(int i = 0;i<10;i++)
{
#pragma HLS PIPELINE II=1
temp1[i] = A[i];
temp2[i] = B[i];
}
for(int i = 0;i < 10;i++){
#pragma HLS PIPELINE II=1
#pragma HLS UNROLL
temp3[i] = temp1[i]*temp2[i];
}
for(int i = 0 ;i<10;i++)
{
#pragma HLS PIPELINE II=1
C[i] = temp3[i];
}
}`
I am a novice in HLS and I am trying to implement parallel computation of element-wise multiplication between arrays A and B using the simple code above. I added parallelism by unrolling the loop and using a temporary variable, but I found that this approach still cannot achieve parallel computation of the elements and it is still sequential. I'm not sure what the problem is.
Sorry, please forgive my unreasonable request. I am a newbie. I don't know how to integrate the files of hw and sw into a project. So I want to modify the project of ZC706 development board based on your project. then I can implement your project on the ZC706 development board. Thank you very much. I hope you have the time to help me. Thank you very much!
Hi, I'd like to know which is the correct folder for loading the parameters(.mdl files) and the images files for test the CNN, thanks for sharing your project, greetings.
I have a question, I use your source code to build a project on vs2013 of my computer, and when I enter a handwritten digital picture into it, the recognized numbers are wrong.
is there any any requirements for image input?
I used this code to replace the original code
READ_MNIST_DATA("F:/FPGA_CNN/minst/test_images/1_00002.jpg", MNIST_IMG, -1.0f, 1.0f, 1);
is there any wrong?
Hello!
Have you encountered a problem like "ERROR: [SYNCHK 200-11] ... (possible cause(s): pointer to pointer or global pointer)",If you have seen such a problem, how did you solve it?
I am unable to open the win 10 test application. And there are too many .exe files named LeNet5 Test, so could you please tell me the specific directory of the executable file which we are supposed to run for the testing.
Hi,
I can't find which files need to be included in the HLS. is it just the files from the hw_layers folder?
and after that, which function needs to be selected as top function in the HLS's synthesis settings?
thank you in advance for your help.
best regards.
Hi, i want to know the details when using hls. i do not know the top files when i try to implement it and i can not finish the project. i am a novice, so i want to know more details about this. Thank you very much.
Hello sir, may you please provide new and detailed doc and readme about this project?
This would be a great pleasure by you.
Best wishes.
Hi Chang,
I'd like to reuse this work on Zynq, but I'm struggling with what's here, I can see the HLS files (no Vivado project though) and some C/C++ files but I'm not sure which ones are Visual Studio and which ones are for the Zynq Processor... Do you have any notes about it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.