Git Product home page Git Product logo

sam_cnn's Introduction

sam_cnn

Script for training hexagonal convolutional neural networks on 6x6 SAM patch patterns

Getting started

The easiest way to get all of the dependencies is to use the Anaconda Python Distribution (w/ Python 3.6.x)

You'll also need PyTorch and HexagDLy. HexagDLy provides support for convolutional and pooling operations for inputs arranged on hexagonal grids.

Installing with conda and pip

Make sure you're using the version of Pip installed with the Anaconda distribution

PyTorch:

with conda:

conda install pytorch torchvision -c pytorch

with pip:

pip3 install torch torchvision

HexagDLy:

pip install hexagdly

Quick training

All of the training data (i.e, patch patterns and their free energies) are contained in sam_pattern_data.dat.npz.

You can train a model using model_fnot.py

For a list of training options, run:

python model_fnot.py -h

For instance, to train a CNN with 6 convolutional filters, 1 hidden layer, and 12 hidden nodes:

python model_fnot.py --augment-data --n-layers 1 --n-hidden 12 --do-conv --n-out-channels 6

Authors

Nick Rego ([email protected])

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.