waimaoer / keras-conv1d

Small 1D CNN for testing FPGA deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keras-conv1d

Description

Code for training and evaluating 1D convolutional neural network with Keras. Use multiple channels and filters to explore conv1d options for HLS4ML project.

The example is for the raw, inertial signals of this dataset.

Setup

Install all dependencies using miniconda (from HLS4ML project)):

Install miniconda2 by sourcing install_miniconda.sh in your home directory. Log out and log back in after this.

cp install_miniconda.sh ~/
cd ~
source install_miniconda.sh

Install the rest of the dependencies:

cd ~/keras-conv1d
source install.sh

Each time you log in set things up:

source setup.sh

Run

cd train
python keras_conv1d.py

About

Small 1D CNN for testing FPGA deployment


Languages

Language:Python 93.3%Language:Shell 6.7%