CoolFace
Apppublic

theodore-ioann/Skin-Lesion-Segmentation

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿงด Skin Lesion Segmentation Demo

This interactive web application allows you to upload a skin image, select a segmentation model, and visualize the predicted lesion mask with optional post-processing.

๐Ÿง  Available Models

  • โ€”UNet
  • โ€”SegFormer
  • โ€”Inception-based CNN
  • โ€”KMeans (Unsupervised)
  • โ€”Gaussian Mixture Model (Unsupervised)

๐Ÿ”ง Postprocessing Options

  • โ€”None
  • โ€”Morphological Open
  • โ€”Morphological Close
  • โ€”Erosion
  • โ€”Dilation

๐Ÿ’ก How it Works

The model takes in a skin lesion image (resized to 128ร—128), performs segmentation, and visualizes both:

  • โ€”A binary predicted mask
  • โ€”A color overlay on the original image

๐Ÿ› ๏ธ Built With

  • โ€”PyTorch & torchvision
  • โ€”scikit-learn
  • โ€”Hugging Face Transformers
  • โ€”Gradio
  • โ€”OpenCV

Demo created by Theodore Ioannidis (https://github.com/TheodoreIoannidis).