Giter VIP home page Giter VIP logo

rumit95 / auto_segmentation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.83 MB

This project demonstrates semantic image segmentation using a custom architecture that combines MobileNetV2 and U-Net. The goal is to accurately segment objects in images, showcasing a robust approach to image analysis.

Home Page: https://autosegmentation.streamlit.app/

License: MIT License

Procfile 0.47% Python 99.53%
deployment pytorch streamlit

auto_segmentation's Introduction

Semantic Segmentation with MobileNetV2 U-Net

This project demonstrates semantic image segmentation using a custom architecture that combines MobileNetV2 and U-Net. The goal is to accurately segment objects in images, showcasing a robust approach to image analysis.

Machine Learning Model Overview

MobileNetV2 - Unet

Project Overview

  • The core functionality of this project is implemented in the main.py and webapi.py files. main.py contains the code for running the semantic segmentation locally, while webapi.py is a Streamlit web application for performing semantic segmentation through a user-friendly interface.
demo2.mp4

Prerequisites

  • Python (>=3.6)
  • PyTorch (>=1.0)
  • torchvision
  • tqdm
  • matplotlib
  • numpy
  • PIL
  • Streamlit (for the web application)

Project Structure

  • main.py: Python script for running semantic segmentation locally.
  • webapi.py: Streamlit web application for semantic segmentation.
  • MobileNetV2_Unet_wts.pth: Saved model weights.
  • MobileNetV2_Unet_model.pth: Saved entire model (architecture and weights).

Getting Started

  1. Clone this repository: git clone https://github.com/yourusername/semantic-segmentation.git
  2. Navigate to the project directory: cd semantic-segmentation

Running Locally

  1. To perform semantic segmentation locally, run the following command: python main.py

This will start the segmentation process, and you can input your images for analysis.

Running the Streamlit Web Application

  1. To use the web application, run the following command: streamlit run webapi.py

This will open a browser window with the Streamlit interface. You can upload images and perform semantic segmentation interactively.

Usage

  • When running locally with main.py, follow the prompts to input your images for segmentation. The results will be displayed on your console.

  • When using the Streamlit web application, open it in your web browser, upload images, and click the "Segment" button. The segmented images will be displayed on the web interface, and you can download them as well.

  • You can modify hyperparameters, the number of training epochs, or experiment with different architectures in the main.py file to customize the segmentation process.

Credits

  • The MobileNetV2 architecture is based on the original paper by Sandler et al. [https://arxiv.org/abs/1801.04381].
  • U-Net architecture reference: Olaf Ronneberger, Philipp Fischer, Thomas Brox. "U-Net: Convolutional Networks for Biomedical Image Segmentation."

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feel free to reach out if you have any questions or suggestions!

auto_segmentation's People

Contributors

rumit95 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.