Code Monkey home page Code Monkey logo

binary_connect_cifar's Introduction

Implementation in Chisel of Ternary Weight Networks

This paper creates an FPGA implementation of https://arxiv.org/abs/1605.04711 It implements a network with half the number of convolutional filters as in this paper achieving 91.9% on CIFAR10

Network architecture

conv1 => 64x3x3x3

conv2 => 64x3x3x64

mp1 => 2x2 kernel with stride 2

conv3 => 128x3x3x64

conv4 => 128x3x3x128

mp2 => 2x2 kernel with stride 2

conv5 => 256x3x3x128

conv6 => 256x3x3x256

mp3 => 2x2 kernel with stride 2

dense => 4096x1024

dense => 1024x10

Running

The complete verilog, including constraints is included in all_code.tgz To generate, run the script generate.sh, note however it takes a long time (8hrs+) and alot of memory (250GB)

FPGA version

There is no I/O included in this script but it targeted the AWS-F1 instance FPGA with part number xcvu9p-flgb2104-2-i

binary_connect_cifar's People

Watchers

James Cloos avatar Felix Yan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.