MIT License

项目介绍

changwoolee/lenet5_hls 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 340 个 Star、89 次 Fork。

仓库全名
changwoolee/lenet5_hls
开源许可证
MIT License
Star 数
340
Fork 数
89
未关闭 Issue
13

README 摘要

LeNet-5 in HLS =========== This repository is about our undergraduate graduation project, implementing LeNet-5 by using Vivado High Level Synthesis 2016.4 & Vivado SDSoC 2016.4 Win 10 Test App You can test the accelerator by your own handwritten digits image. Youtube Video If you want to test the app, follow these instruction 1. Configure the IP address of Zedboard. 2. Start .elf file with port name argument (in…

完整内容见 GitHub 原始 README 或本页 。

常见问题

lenet5_hls 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 340 个 Star。

lenet5_hls 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 lenet5_hls 的源码?

可以直接克隆仓库:git clone https://github.com/changwoolee/lenet5_hls.git,默认分支为 master;安装与运行步骤见仓库 README。

lenet5_hls 最近还在维护吗?

仓库最近一次更新为 2021年10月26日,当前有 13 个未关闭 Issue;Star 数为 340,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

FPGA Accelerator for CNN using Vivado HLS

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
528
价值分
231
活跃状态
活跃

语言占比

C
C#
C++

Release

README

LeNet-5 in HLS

This repository is about our undergraduate graduation project, implementing LeNet-5 by using Vivado High Level Synthesis 2016.4 & Vivado SDSoC 2016.4

lenet5

Win 10 Test App

You can test the accelerator by your own handwritten digits image.

Youtube Video

Youtube Video Here

If you want to test the app, follow these instruction

  1. Configure the IP address of Zedboard.
	username@Zedboard:~# ifconfig
  1. Start .elf file with port name argument (in here, 5555 is port name)
	username@Zedboard:~# lenet5_test.elf 5555
  1. Start the win 10 test application and input the IP address & port name.
  2. Press connect
  3. Open image file

I did not put a zoom in/out function to the app, so please suit the image size.

Model description

Used model is LeNet5-Like Deep CNN
Input : -1.0 to 1.0
Conv1 : 1x32x32 -> 6x28x28, ksize = 1x6x5x5, stride = 1
Pool1 : 6x28x28 -> 6x14x14, average pooling, window size = 2x2, stride = 2
Conv2 : 6x14x14 -> 16x10x10, ksize = 6x16x25, stride = 1
Pool2 : 16x10x10 -> 16x5x5, average pooling, window size = 2x2, stride = 2
Conv3 : 16x5x5 -> 120x1x1, ksize = 16x120x25, stride = 1
FC1 : 120x84
FC2 : 84x10

Environments

We used Zedboard(Zynq 7z020) for testing.

HW Functions : CONVOLUTION_ LAYER_ 1, CONVOLUTION_ LAYER_ 2, and CONVOLUTION_ LAYER_ 3, Clk freq set as 100MHz.

Accuracy

SW accuracy : 98.63% (single precision fp)    
HW accuracy : 98.63% (single precision fp)  

Runtime

# of images : 10,000, batch size : 1  

SW runtime  : 59.4456 seconds  
HW runtime  : 16.3954 seconds  

speedup : 3.63x faster 

Contributors

  • Changwoo Lee (Hanyang University, Seoul, South Korea)
  • Jeonghyun Woo (Hanyang University, Seoul, South Korea)

评论

暂无评论