Introduction #
The Fabric Stain Dataset has been developed to facilitate the classification of fabric stain defects in textile quality control. This dataset is an integral component of the fabric defect detection project undertaken by the Intellisense Lab at the University of Moratuwa, Sri Lanka.
Information | Content |
---|---|
Number of categories | 2 (stain, defect-free) |
Number of stain images | 398 |
Number of defect-free images | 68 |
Image resolution | 1920x1080 or 1080x1920 |
Stain types | ink stain, dirt stain, oil stain |
Fabric types | polyester, cotton |
Summary #
Fabric Stain Dataset is a dataset for object detection and classification tasks. It is used in the textile industry.
The dataset consists of 466 images with 870 labeled objects belonging to 1 single class (stain).
Images in the Fabric Stain dataset have bounding box annotations. There are 68 (15% of the total) unlabeled images (i.e. without annotations). There are no pre-defined train/val/test splits in the dataset. Alternatively, the dataset could be split into 2 classification categories: stain (398 images) and defect free (68 images). The dataset was released in 2020 by the Intellisense Lab of University of Moratuwa, Sri Lanka.
![Dataset Poster](https://cdn.datasetninja.com/github/dataset-ninja/fabric-stain-dataset/main/visualizations/poster.png?width=1200)
Explore #
Fabric Stain dataset has 466 images. Click on one of the examples below or open "Explore" tool anytime you need to view dataset images with annotations. This tool has extended visualization capabilities like zoom, translation, objects table, custom filters and more. Hover the mouse over the images to hide or show annotations.
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/2/Ir/TFYHJfW6M6RultUF6D1vJuBjLbmZyrFWoHVlggWt5cAcRCMoiDxoQjsMpf9DSMBFO33TTtTh4X15dwnnctUnhRlYo07S0zAumeGXmBFncmsd8FHhcbK8NEy8PPUh.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/V/x/5Q/D07jL4B9B7nCN6D0p9SjSBTMIbEOTEpTFW8x8iYNU7zZ3IbxgPyQwhH5rDNYLFlhZ1MZJyM2zVeyrl85lz7Z7Qjpb9ONtEUMydkmKJaoZpmOSnydbVpAhN05x1RH.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/v/q/iY/Yvj7gBH8HhzYEQ1lG6jmoZpSeE7RImkodV4fhMGneK5DnYDk9Vbngi1HNkfTYwJ4W6eNloxqraLI7sy3XnMJccvGYxNjVV7xbeXc66pfzQDPTJp50bGdEUS5vEhw.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Z/f/lY/hg9DkbkTwsZeI8vOmmIzMtciCQPf3BWmpFMzpy2Cer7NPgHYt84xWU5aIFLAVNEYNKqTGB21KA7o2rvUEr1DJOnXBI3VPAtGuLkDQMSmcivoyfU8NEDUSLHDpGS1.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/o/B/Ag/uNgUU3w0dNxu810mngu1CXmLvxZ8gq1cYfSek9QtvkcAP0Ao67et2JfrQOT2x2BcYI3WlngR9O42BRF5oy2YZFirRSM7feKBkkbbTua3QtiJ6kPzOYsziSds9LST.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/V/g/32/twW0vGH69M4WRq4KqgNA395mIdkSU5iTf5R1pgiblKdNZGdCbyX3DlLUtzwaQCnsVhHIuaaHqtysK2o1viRTXli3yUNJCeHsMXO2g8CUnc4nSNMsticcqavsm29E.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/i/Y/1s/gdU12qAME2trcXO6zX5YQdKRKv4ALqRz23ZXSvLdiHMXGqFIepiCm1DDcvVm2lSIKs9t1Chi3sdgss0Ts2E12aLYv5NxyWAnoKnTyn1tWXxj3JP850cOQzddaQBc.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/W/f/qt/6BU9b6hu01PYtk6SVEqGHEWCW0dTkoi452TDpNcUtXUSHDWnC0EeaP5PrvbfZVY2IzRz4PLLNXdSePsvzyaxCAW1U8nzxksTpB9WqvubfhdX9wJcyAsSgRVJxc8Y.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/M/dM/58GpkRjODK0AfzXEdnDSBlaUArsDZEGQO7V8neGwpcCxnviPvOpaxnLOFqh4UH5imNxNDQnm2uIxDiIreWlyfZcFVvDNXOkvfDk6JyKMiAY05GhatlVaV2K1hnVc.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/0/i/uu/zctjJ2I8F3WW26d2p6zxsB0Rs9hyCSPvwiqmVonIuIHfl5cAC3vdBZkVMw1DGlbGkfO8mkhzl1a3zGw8dwHeZeQAhbUVj77igDTM12G9uZdhHN1Y6frw2vrXCB0s.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/k/q/jl/A2wnGWfyTYNZ96oIHIxRPlg8kDGe2966k0S42bkkVl5YpWR36FQhipEESsEGigTmg4vcRASZGLncPfjV3UNToz357fE7FdJ8TihCW1zzO6EhZu5I20OzP81eyrbJ.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/n/G/Sj/v4uAQPo9A1Gglz19DNUq7r4Meacs0wAQ7aL1x9DF9oBLx3kvJCdqkhkxVvity24QUoW2o53gzKPXpvuHMP8Lba5t5DRisXAsg61b2aj0AS8EStjcIxNLzI1Ze95y.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/9/Qu/hQFBILEMRNtyEckNCnfh4l3RvnZDmFViRZUwTMOwqgKb12dup4kIqt064tGdbim3QFPfXp6UT66p8GHD79yR5S4v1ZuHsreX8mQbANdAinndoWWpXXWt3SjOyAs7.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/3/c/tT/0ESA4mYjZv9eIfRmjtdQhtEm0ysoEgXOMWbXkPaOvcCR0DhzIz87n1BJlwUrpyBM4VuRXeLzaTKSNIZrYA3u9YVrmJQabRG9mkBtgoONFtWT602m87YCc550JgGL.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/1/b/fa/ddViBlJd6oUpU3pD16iqo1wy9CT7iQEqv1avja5b72bom7PjC1zlYf76FHSwNdlZELwjoKzmKrXlj6IpwEHuJ7qjMdrBzQfo2LC5FaRXhVLjmq5QKiJPi76v80fw.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/K/f/8Q/ixDYELQ1eiuck3tQKnZVZFLCDXdYvnQzhnPFSGYYNHyUW6A0YHjocBNQErTaW9BCp3kbXASfviOAaiSoyOSt2NtvLDwqBJdI9lHioiwABOJQXEuksVq2wtLfUZPf.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/q/D/sS/jmNUTGEl2dqKeZ2QZ7U4osuV0bKEXN2ssRoZZ2T4tyT5rSNKYv3ldYe35dq8vKhYFKVqzbrvRxJRr0BCOQiH9uBez3bFa6XFMd817WuXucbitFxgZvCdwBaoL2Ko.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/R/O/TW/uTzedVE77s3LO3OLmkxOB5KOsei5Xar3pknw99kRQnD3CKTFDfNrKfvA3Pfoa2yxyavm6UivcNQjIU8xtctVGANnFU7xsIGxjpU2zfS020q2XAUGBleimGSNNnVd.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/a/Er/WjHzpRiMjoMmdwYtJCo909cyMZRk9ZbztZdOGt9uY7HnQ7ll1gGJB4no77yvsKAGlnt2tzIaVDcGaAUuBEbasoXbEAKWuE0psg5rsClAaGr6HLVEgltVAzQyoiEh.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/t/1/aR/i2HFraSOkTQenPiQyrOYo3IAfkvYwt9xnluPP4KJZd4qvZ4RXBHezcWOoWZJ74BSK2Oh5F4SOsCJwpUMHXx4dOPMsFeecEuD1lqQxvsJssUedJBswA7bFgTExtH8.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/F/9/ti/0vsjLJU4zbT5xTykutVbnCu5Se6ncGC5EzSpvgJPx5lmlO2w6f3nuvSDzXTOJYxm7evbZ5xl58y6CgNs0hCQHrE7dMsgkkZWdPQLw6GawZdwxi0hVzlGPL1DPEds.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/9/V/43/AcUbxDsSYSI1hIBnnfY6QiiiskHNnvCPVOQ2jQXvge6bd4Lz7Ve4AJ6hxuiabjzhoOcuysO38Db17v4wI7VyGHLUNpEy8VJfk0As9rO9aDysA7fZaFynued9PxPa.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/S/ke/wQYuRVMG4jBEifMHmQIOlf9v9nnwmXX4UFanh8NTdpRtYnDBTFZCWNzEdnBIYUwk8qkvnrlj88kOQUL5RYpOCjhbxmg1w9dmxUbR02nhRfxOIjLH3sm89GD3i8iP.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/l/Q/d8/1eA2amghgziCQdp2qriR50q6Y2ZTtAfGKYRl0Pv7hBsc6da2OvoQmeJ71Hv9kEy3DyLfpC7cLpvCNFHsB2KxeArBaCYiwQUvjHNv6FmoGEPlMtQLEUtCQzWt1gr6.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/6/cF/waWcggLj4sCBKgSdk6KXtSjyWQaObwmjFa4eRbW31Wr0ShzhZfP4XwFr4Pu932CMBrLimNabEraFiTo3fVYoNKCeuJpeYrmuvqiPT7m7O7k4LqYyfPVsa8uE4XUi.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/G/Q/Vs/22NBDkdk9dHMGsi3RQbwwbXAwRkKhxRTHrJw7GDG8xYaodKMzFrVQKk56gJbZcE99sXCdDBE0nL4YyZYYBnKUmPCsAcKMvs0mcZhX5UmJdkf8eZFn2sY0rZgsvpX.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/3/T/zl/f3AH43662T0HsMv3hQ6RdvXTgE7QXkMCBMKeJuQO0l06rUMbexhZnXEtS8cd8tuSi9sEl1ZejSKnrWoWfhbSPcuam4N9HkcPrSOLUXQrZNIhVLKWa4VPWHQtDn6f.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/Y/2/T4/fsOmhNu1mZM0xI7vLfPZ3UTepp7dXcy2xqkzY6SQ8oam1tmksVv47keDkY1zK4qjJxzjIuEBNkiAhmL2mdUEXANNNJ7xvrOy2q0anBSdg6JeRkRa5iGIXW9MHAFS.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/U/U/cB/2yiqpiKopxrvRAuefAeE9R1nnVVtRpk6QypIS43pJjhQwdEs09fc81BXqyR03MFt67oGmjTBF9BjArJ5fah45zlc7M6ZWBUg3FrrDeUpKLkR4HLBtcSks7reE5Cd.jpg)
![Sample image from Fabric Stain](https://cdn.datasetninja.com/previews/q/ext:jpeg/resize:fill:400:0:0/q:70/plain/supervisely-supervisely-assets-public/images/original/r/l/Vc/mdlzDRlqNvQuHisbsu0hS9RsuAPF6N2fZZ1y2yz3t0Y71ndYSjSCGValkn4vPtfE2FMKGmhwH2vYUi0mtzJIc8TnsExr4TSwtRAvmMo9G4SkCecNCd1NfDV6I34O.jpg)
Class balance #
There are 1 annotation classes in the dataset. Find the general statistics and balances for every class in the table below. Click any row to preview images that have labels of the selected class. Sort by column to find the most rare or prevalent classes.
Class ã…¤ | Images ã…¤ | Objects ã…¤ | Count on image average | Area on image average |
---|---|---|---|---|
stainâž” rectangle | 398 | 870 | 2.19 | 14.52% |
Images #
Explore every single image in the dataset with respect to the number of annotations of each class it has. Click a row to preview selected image. Sort by any column to find anomalies and edge cases. Use horizontal scroll if the table has many columns for a large number of classes in the dataset.
Object distribution #
Interactive heatmap chart for every class with object distribution shows how many images are in the dataset with a certain number of objects of a specific class. Users can click cell and see the list of all corresponding images.
Class sizes #
The table below gives various size properties of objects for every class. Click a row to see the image with annotations of the selected class. Sort columns to find classes with the smallest or largest objects or understand the size differences between classes.
Class | Object count | Avg area | Max area | Min area | Min height | Min height | Max height | Max height | Avg height | Avg height | Min width | Min width | Max width | Max width |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stain rectangle | 870 | 6.66% | 63.92% | 0.03% | 15px | 1.01% | 1984px | 100% | 378px | 22.6% | 13px | 0.66% | 1724px | 89.52% |
Spatial Heatmap #
The heatmaps below give the spatial distributions of all objects for every class. These visualizations provide insights into the most probable and rare object locations on the image. It helps analyze objects' placements in a dataset.
![Spatial Heatmap](https://cdn.datasetninja.com/github/dataset-ninja/fabric-stain-dataset/main/stats/classes_heatmaps.png)
Objects #
Table contains all 870 objects. Click a row to preview an image with annotations, and use search or pagination to navigate. Sort columns to find outliers in the dataset.
Object ID ã…¤ | Class ã…¤ | Image name click row to open | Image size height x width | Height ã…¤ | Height ã…¤ | Width ã…¤ | Width ã…¤ | Area ã…¤ |
---|---|---|---|---|---|---|---|---|
1âž” | stain rectangle | stain_188.jpg | 1984 x 1488 | 733px | 36.95% | 503px | 33.8% | 12.49% |
2âž” | stain rectangle | stain_188.jpg | 1984 x 1488 | 417px | 21.02% | 685px | 46.03% | 9.68% |
3âž” | stain rectangle | stain_188.jpg | 1984 x 1488 | 516px | 26.01% | 213px | 14.31% | 3.72% |
4âž” | stain rectangle | stain_336.jpg | 1488 x 1984 | 499px | 33.53% | 879px | 44.3% | 14.86% |
5âž” | stain rectangle | stain_184.jpg | 1984 x 1488 | 146px | 7.36% | 98px | 6.59% | 0.48% |
6âž” | stain rectangle | stain_184.jpg | 1984 x 1488 | 73px | 3.68% | 65px | 4.37% | 0.16% |
7âž” | stain rectangle | stain_184.jpg | 1984 x 1488 | 105px | 5.29% | 91px | 6.12% | 0.32% |
8âž” | stain rectangle | stain_184.jpg | 1984 x 1488 | 100px | 5.04% | 287px | 19.29% | 0.97% |
9âž” | stain rectangle | stain_184.jpg | 1984 x 1488 | 138px | 6.96% | 54px | 3.63% | 0.25% |
10âž” | stain rectangle | stain_14.jpg | 1488 x 1984 | 351px | 23.59% | 364px | 18.35% | 4.33% |
License #
Citation #
If you make use of the Fabric Stain Dataset data, please cite the following reference:
@dataset{Fabric Stain Dataset,
author={Primesh Pathirana},
title={Fabric Stain Dataset},
year={2020},
url={https://www.kaggle.com/datasets/priemshpathirana/fabric-stain-dataset}
}
If you are happy with Dataset Ninja and use provided visualizations and tools in your work, please cite us:
@misc{ visualization-tools-for-fabric-stain-dataset-dataset,
title = { Visualization Tools for Fabric Stain Dataset },
type = { Computer Vision Tools },
author = { Dataset Ninja },
howpublished = { \url{ https://datasetninja.com/fabric-stain-dataset } },
url = { https://datasetninja.com/fabric-stain-dataset },
journal = { Dataset Ninja },
publisher = { Dataset Ninja },
year = { 2024 },
month = { sep },
note = { visited on 2024-09-08 },
}
Download #
Dataset Fabric Stain can be downloaded in Supervisely format:
As an alternative, it can be downloaded with dataset-tools package:
pip install --upgrade dataset-tools
… using following python code:
import dataset_tools as dtools
dtools.download(dataset='Fabric Stain', dst_dir='~/dataset-ninja/')
Make sure not to overlook the python code example available on the Supervisely Developer Portal. It will give you a clear idea of how to effortlessly work with the downloaded dataset.
The data in original format can be downloaded here.
Disclaimer #
Our gal from the legal dep told us we need to post this:
Dataset Ninja provides visualizations and statistics for some datasets that can be found online and can be downloaded by general audience. Dataset Ninja is not a dataset hosting platform and can only be used for informational purposes. The platform does not claim any rights for the original content, including images, videos, annotations and descriptions. Joint publishing is prohibited.
You take full responsibility when you use datasets presented at Dataset Ninja, as well as other information, including visualizations and statistics we provide. You are in charge of compliance with any dataset license and all other permissions. You are required to navigate datasets homepage and make sure that you can use it. In case of any questions, get in touch with us at hello@datasetninja.com.