/Connected_components_PyTorch

A PyTorch implementation of Connected Components Labeling

Primary LanguageJupyter NotebookBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Connected Components Labeling for PyTorch

References


Follwing Block-based Union Find Algorithm from YACCLAB.

  • Running on GPU.
  • PyTorch Interface
  • Fix some bit alignment problem
  • little refactoring

Example

Tested on scikit-image example ,follows example.ipynb

img.png

Install

> python3 setup.py install

> python3 setup.py test