Giter Club home page Giter Club logo

dermatologist's Introduction

Skin Cancer Detection

This is an hobby project to design an algorithm that can visually diagnose 3 classes of skin cancer using PyTorch's C++ frontend.

Disclaimer: Melanoma is one of the most deadliest forms of skin cancer, so definetly don't use anything on this repo to diagnose yourself.

These classes include:

  • Melanoma
  • Nevus
  • Seborrheic keratosis

The algorithm will distinguish this malignant skin tumor from two types of benign lesions (nevi and seborrheic keratoses).

Requirements

  1. C++
  2. CMake (minimum version 3.14)
  3. LibTorch v1.8.0
  4. Conda

Getting started

  1. Clone this repo and cd into the cloned directory
  https://github.com/mrdvince/dermatologist.git
  cd dermatologist
  1. Create a build and cd into it. Then build the project using cmake.

The build process will download the training, testing and validation datasets (it's a large dataset)

mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=~/libtorch ..
  1. Build
cmake --build . --config Release

Note: if the a data folder is not created and the dataset downloaded modify the CMakelists.txt file and set the download option to ON

  1. Run the python convert file included in the cloned folder. This file will download the resnet18 pretrained model and "trace" it and save on disc without the final fully connected layer.
python ../convert.py
  1. Finally train the model
./dermatologist resnet18_without_last_layer.pt

That's pretty much it.

Acknowledgements

dermatologist's People

Contributors

mrdvince avatar

Watchers

 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.