Coder Social home page Coder Social logo

medical-image-segmentation's Introduction

Medical Image Segmentation

Description

In modern medicine, medical image segmentation plays a crucial role in diagnosing and treating diseases. Recent studies have proposed numerous medical image segmentation models, ranging from traditional methods to deep learning approaches. This project surveys and proposes a model using the U-Net architecture, combining techniques in image processing and deep learning to improve the accuracy of medical image segmentation.

Getting Started

Download model weights

First, we need to download the model weights from this link, There are two pre-trained models available:

  • Ternausnet 11
    • Ternausnet 11 ph2 (for the PH2 dataset)
    • Ternausnet 11 kvasir (for the Kvasir dataset)
  • Ternausnet 16
    • Ternausnet 16 ph2 (for the PH2 dataset)
    • Ternausnet 16 kvasir (for the Kvasir dataset)

Installing

Download the project from GitHub either as a zip folder or by executing the following command:

git clone https://github.com/Trunkg0d/Medical-Image-Segmentation.git

Run program

First, from the root folder, find the directory containing the main.py file (it in source folder) and navigate to that directory. Then, open the terminal and run the following command:

python main.py

The program will prompt you to select the dataset you want to test (PH2 or Kvasir) by pressing 1 (PH2) or 2 (Kvasir). Next, you need to enter the path of an image from the chosen dataset (the image must be from the dataset you selected to produce accurate results). Finally, the program will ask for the path to the model you downloaded earlier (e.g., Ternausnet_11_ph2.pt for the Ternausnet 11 model for the PH2 dataset).

Authors

Contributors names and contact info

@Trunkg0d @LeVanTan @NguyenQuangVinh

License

Acknowledgments

Eternal gratitude to the wizards and sorceresses of open-source magic.

medical-image-segmentation's People

Contributors

trunkg0d avatar lvtan71 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.