Coder Social home page Coder Social logo

doteye-mlops's Introduction

Nuclie Image Segmentation

Download weights and put the tar file in webapp/seg_classes.

video

segmentation folder contains files related to all data presprocessing,model building and training process.

webapp folder contains django app deployment of model

You can also download weights from git lfs

Dataset used Data Scince Bowl 2018 kaggle

This Dataset contains medical images of cell containing nuclie and different masks of various part of Images.

Training Files

  • model.py

    • This file containes custom UNET implemented from scratch using pytorch.

    • UNET is famous for segmentation of medical Imagery. image

    • Research paper

  • dataset.py

    • This file contains implementation of custom dataset class for training purpose.
    • We only used a little data augmentation.
  • utils.py

    • As the name suggest this file contains all the utility function required.
      • save_checkpoint for saving parameters
      • load_checkpoint for loading parameters
      • iou_ for calculating intersection over union score
      • check_accuracy for checking pixel accuracy
      • And some little functions for saving mask and images
  • train.py

    • This file handles the training process completly
    • To retrain model:
    # Hyperparameters
    LEARNING_RATE = 1e-3
    BATCH_SIZE = 16
    NUM_EPOCHS = 20
    NUM_WORKERS = 2
    PIN_MEMORY = True
    LOAD_MODEL = False
    DATA_PATH = "stage1_train"
    DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

    Run train.py after downloading datset

  • This code already includes tensorboard integration to view graphs run:

    tensorboard --logdir runs
  • This model was trained for only 20 epochs.It can be improved more using more training.These were the results after 5 epochs. image

Django Webapp Files

  • This folder is structured according to django for deployment of Model.

  • webapp is the core django project containing django-app named segment handeling ML files.

  • for more info run python manage.py help

Containerization and Orchestration

  • This application is containerized using Docker.
  • We are using docker-compose for orchestration of containers.
  • For running webapp:
    docker compose -f docker-compose.yml up --build
  • For stopping the aplication:
    docker compose -f docker/docker-compose.yml down

Note: Make sure you have installed both docker and docker-compose

WARNING: As this was developed in just 2 days.There can be bugs and erros.Please make sure to open a issue if you face a bug or error.

doteye-mlops's People

Contributors

anky209e avatar

Watchers

Kostas Georgiou avatar  avatar

doteye-mlops's Issues

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.