Code Monkey home page Code Monkey logo

hcr-torch's Introduction

project-01-dl-hcr

project-01-dl-hcr is the course project for EEL5840 19Fall Class at UF

Team Member:

Files

Dataset

  • train_data.pkl - This is our train dataset, which is 6400 handwritten character images, including [a, b, c, d, h, i, j, k]. The size of these images around 50X50, but not fixed.
  • finalLabelsTrain.npy - This is correspondent labels of train_data.plk.[1, 2, 3, 4, 5, 6, 7, 8]

Utils

  • MyLoader.py - Functions to help loading dataset. Preprocess function included.

Model 1 : CNN Classifier, aiming to classify [a, b, c, d, h, i, j, k].

  • train.py - Core file. Including the function of train_cnn. Main function is how to train the cnn model with train_data and train_labels, and important parameters set.
  • test.py - Main function, test_cnn function and example of how to test your data.
  • net_8_final.pth - Our trained cnn parameter set for both 2-class and 9-class, you can use this to test directly without training.

How to run

Use train.py to train, and test.py to test

  • In train.py - the main function can run the training and no need for configuration.
  • In test.py - the main function shows how to use test_cnn. Just modify pkl file names to load your test data, and get prediction on return of test_cnn.

#Have fun !

hcr-torch's People

Contributors

zhiyunl avatar

Watchers

 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.