--- title: Skin Lesion Segmentation Demo emoji: ๐Ÿ’ป colorFrom: pink colorTo: purple sdk: gradio sdk_version: 5.31.0 app_file: app.py pinned: false license: mit --- # ๐Ÿงด 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).