Code Monkey home page Code Monkey logo

data-in-paper-out's Introduction

Training CNN (Pytorch) and Deployment on the WWW (ONNX)

Requirements

  • Windows (or Linux)
  • CPU processor (or GPU, CUDA)

Supported CNN

  • MobileNet v2
  • EfficientNet Lite

How to

  • Download the code (ZIP) img

  • Get Anaconda version 3.8 or newer (https://www.anaconda.com/products/distribution)

    img

    img

    Please be sure to add the system PATH.

    img

  • Check the pretrained DEMO

    img

    Run "0. requirement.bat" to install the required libraries.

    Run "2. run_demo_server.bat", and then "3. connect_demo_server.bat", to check the default DEMO.

  • Train a custom model and try the DEMO

    Run "1. train_mobilenet.bat" if you want to train a CNN (MobileNet).

    Run "2. run_demo_server.bat", and then "3. connect_demo_server.bat", to check the customized DEMO.

Screenshot

The default DEMO shows the result of ensemble of efficientnet (/demo/model_eff_30e_0.onnx) and mobilenet (/demo/model_mob_30e_0.onnx). If you want to change or add more models, please check (/demo/dxinfo.js)

img img

[LINUX] python train.py --model efficientnet --epoch 30 --step 10 --lr 0.005

img

[LINUX] python demo.py

[LINUX] xdg-open http://127.0.0.1:8000

img

WWW DEMO

The DEMO can be hosted on the WWW. Here is a web DEMO hosted by the github.

https://whria78.github.io/demo_onychomycosis/#

Dataset

(A) Onychomycosis dataset came from the following paper.

Deep neural networks show an equivalent and often superior performance to dermatologists in onychomycosis diagnosis: Automatic construction of onychomycosis datasets by region-based convolutional deep neural network, PLOS One 2018

Paper : https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0191493

Dataset : https://figshare.com/articles/dataset/Model_Onychomycosis_Training_Datasets_JPG_thumbnails_and_Validation_Datasets_JPG_images_/5398573?file=9302506

(B) Clinical photographs of melanoma and nevus are available in the following link (CAN5600 dataset).

https://github.com/whria78/can

data-in-paper-out's People

Contributors

whria78 avatar

Stargazers

 avatar snoop2head 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.