Giter Site home page Giter Site logo

pca-on-semantic-segmentation-with-detectron2's Introduction

PCA on Semantic Segmentation with Detectron2

PCA to calculate longest diagonal of C3S crystals from semantic segmentation with Detectron2 output.

About

This repository is for an academic research in Federal University of Ceará, Campus Russas, Brazil. It features the application of the PCA (Principal Component Analysis) algorithm on the masks of C3S crystals, segmented by an architecture of mask-RCNN. This repository contains code for the use of a specific architecture of mask-RCNN on the Detectron2 computer vision API.

The research

Clinker is an important input for Portland Cement. Its quality can be assessed, among other technicques, by Clinker Microscopy. It is mostly done by analysts, by examining microscopic images of the clinker and measuring the crystals manually, with help of drawing software. The research is about automating this, and that's where the PCA algorithm goes in.

Contents

This repository contains two python notebooks:

  • PCA_with_Detectron_Output.ipynb;
  • PCA_with_Detectron_Output_COLAB.ipynb

Plus a 'requirements.txt' file and the folder 'pytorch/'.

The first noteboook is in case you want to clone this repository and run it in your computer. The second notebook is for running in Google Colab environment.

The 'pytorch/' folder contains the pre-trained weights. They are needed so that we don't need to go through the process of training the network again. The weights are loaded by the network, which makes it ready for inference.

The 'requirements.txt' file contains the names of the libraries that need to be installed in order to be used locally.

Running in your machine

When running in your machine, use the 'PCA_with_Detectron_Output.ipynb' notebook. The other one will only work in colab. There's no need to manually install the libraries in 'requirements.txt', for there's already code in the notebook that does that. Just make sure to have pip installed and well-updated.

After opening the notebook with a software from your choice, just run all cells in sequence.

Running in Google Colab

When running in Colab, use the notebook 'PCA_with_Detectron_Output_COLAB.ipynb'. The other one will not work properly there. It's very recommended to run in Google Colab with GPU hardware accelerator. The GPU helps accelerating the inference process.

After opening the notebook in Colab, run all cells in sequence.

Acknowledgements

The main author of this research would like to thank:

  • PIBIC (Programa Institucional de Bolsas de Iniciação Científica), for economic support;
  • Dr. Professor Rosineide Fernando da Paz, for advising the author on this research.

pca-on-semantic-segmentation-with-detectron2's People

Contributors

la-zu-li avatar

Watchers

Kostas Georgiou 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.