Datasets:
|
Download README.md from Cleanlab/segmentation-tutorial: direct link, hf CLI and curl.
- Browser
- Download file 4.07 kB
-
https://huggingface.co/datasets/Cleanlab/segmentation-tutorial/resolve/main/README.md
- Command line
-
hf download hf://datasets/Cleanlab/segmentation-tutorial/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Cleanlab/segmentation-tutorial/resolve/main/README.md
4.07 kB
| license: mit | |
| task_categories: | |
| - image-segmentation | |
| language: | |
| - en | |
| tags: | |
| - computer-vision | |
| - cleanlab | |
| - data-centric-ai | |
| - semantic-segmentation | |
| pretty_name: Segmentation Tutorial Dataset | |
| size_categories: | |
| - n<1K | |
| # Segmentation Tutorial Dataset | |
| ## Dataset Description | |
| This dataset contains image segmentation masks used in the cleanlab tutorial: [Image Segmentation](https://docs.cleanlab.ai/stable/tutorials/segmentation.html). | |
| The dataset demonstrates how to use cleanlab to identify and correct label issues in semantic segmentation datasets, where each pixel in an image is assigned a class label. | |
| ### Dataset Summary | |
| - **Total Examples**: 30 images with segmentation masks | |
| - **Task**: Semantic image segmentation | |
| - **Image Size**: 1088 x 1920 pixels | |
| - **Files**: | |
| - `given_masks.npy`: Ground truth segmentation masks (shape: 30, 1088, 1920) | |
| - `predicted_masks.npy`: Model predicted segmentation masks (shape: 30, 1088, 1920) | |
| ### Dataset Structure | |
| ```python | |
| from huggingface_hub import hf_hub_download | |
| import numpy as np | |
| # Download given masks | |
| given_masks_path = hf_hub_download('Cleanlab/segmentation-tutorial', 'given_masks.npy') | |
| given_masks = np.load(given_masks_path) | |
| # Download predicted masks | |
| predicted_masks_path = hf_hub_download('Cleanlab/segmentation-tutorial', 'predicted_masks.npy') | |
| predicted_masks = np.load(predicted_masks_path) | |
| print(f"Given masks shape: {given_masks.shape}") | |
| print(f"Predicted masks shape: {predicted_masks.shape}") | |
| ``` | |
| ### Data Format | |
| - **given_masks.npy**: NumPy array of ground truth segmentation masks | |
| - Shape: `(30, 1088, 1920)` | |
| - Dtype: Integer array where each value represents a class label | |
| - Each pixel is assigned a class ID | |
| - **predicted_masks.npy**: NumPy array of model predicted segmentation masks | |
| - Shape: `(30, 1088, 1920)` | |
| - Dtype: Integer array of predicted class labels per pixel | |
| - Predictions from a trained segmentation model | |
| ## Dataset Creation | |
| This dataset was created for educational purposes to demonstrate cleanlab's capabilities for detecting issues in segmentation datasets, such as: | |
| - Incorrectly labeled regions/pixels | |
| - Boundary annotation errors | |
| - Inconsistent segmentation masks | |
| - Poor quality predictions | |
| - Mislabeled classes | |
| ## Uses | |
| ### Primary Use Case | |
| This dataset is designed for: | |
| 1. Learning data-centric AI techniques for image segmentation | |
| 2. Demonstrating cleanlab's segmentation issue detection | |
| 3. Teaching proper mask annotation quality assessment | |
| 4. Understanding how to identify and fix segmentation label errors | |
| ### Example Usage | |
| ```python | |
| from huggingface_hub import hf_hub_download | |
| import numpy as np | |
| from cleanlab.segmentation.summary import segmentation_health_summary | |
| # Download masks | |
| given_masks_path = hf_hub_download('Cleanlab/segmentation-tutorial', 'given_masks.npy') | |
| predicted_masks_path = hf_hub_download('Cleanlab/segmentation-tutorial', 'predicted_masks.npy') | |
| # Load numpy arrays | |
| given_masks = np.load(given_masks_path) | |
| predicted_masks = np.load(predicted_masks_path) | |
| # Use cleanlab to analyze segmentation data quality | |
| summary = segmentation_health_summary( | |
| labels=given_masks, | |
| pred_probs=predicted_masks | |
| ) | |
| print(summary) | |
| ``` | |
| ## Tutorial | |
| For a complete tutorial using this dataset, see: | |
| [Image Segmentation Tutorial](https://docs.cleanlab.ai/stable/tutorials/segmentation.html) | |
| ## Data Statistics | |
| - **Number of Images**: 30 | |
| - **Image Dimensions**: 1088 x 1920 pixels | |
| - **Total Pixels**: ~62.9 million pixels across all images | |
| - **Format**: NumPy `.npy` files for efficient loading | |
| ## Licensing Information | |
| MIT License | |
| ## Citation | |
| If you use this dataset in your research, please cite the cleanlab library: | |
| ```bibtex | |
| @software{cleanlab, | |
| author = {Northcutt, Curtis G. and Athalye, Anish and Mueller, Jonas}, | |
| title = {cleanlab}, | |
| year = {2021}, | |
| url = {https://github.com/cleanlab/cleanlab}, | |
| } | |
| ``` | |
| ## Contact | |
| - **Maintainers**: Cleanlab Team | |
| - **Repository**: https://github.com/cleanlab/cleanlab | |
| - **Documentation**: https://docs.cleanlab.ai | |
| - **Issues**: https://github.com/cleanlab/cleanlab/issues | |