Datasets:
Tasks:
Image Classification
Size:
< 1K
sargishunanyan
commited on
Commit
•
a20f378
1
Parent(s):
841ff82
dataset uploaded by roboflow2huggingface package
Browse files- README.dataset.txt +6 -0
- README.md +92 -0
- README.roboflow.txt +27 -0
- data/test.zip +3 -0
- data/train.zip +3 -0
- data/valid-mini.zip +3 -0
- data/valid.zip +3 -0
- split_name_to_num_samples.json +1 -0
- thermo-classification.py +114 -0
- thumbnail.jpg +3 -0
README.dataset.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# proj 2 > 2023-10-08 11:56am
|
2 |
+
https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0
|
3 |
+
|
4 |
+
Provided by a Roboflow user
|
5 |
+
License: CC BY 4.0
|
6 |
+
|
README.md
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
task_categories:
|
3 |
+
- image-classification
|
4 |
+
tags:
|
5 |
+
- roboflow
|
6 |
+
- roboflow2huggingface
|
7 |
+
|
8 |
+
---
|
9 |
+
|
10 |
+
<div align="center">
|
11 |
+
<img width="640" alt="sargishunanyan/thermo-classification" src="https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/thumbnail.jpg">
|
12 |
+
</div>
|
13 |
+
|
14 |
+
### Dataset Labels
|
15 |
+
|
16 |
+
```
|
17 |
+
['Thermostat', 'Housing', 'Insert']
|
18 |
+
```
|
19 |
+
|
20 |
+
|
21 |
+
### Number of Images
|
22 |
+
|
23 |
+
```json
|
24 |
+
{'valid': 102, 'test': 52, 'train': 372}
|
25 |
+
```
|
26 |
+
|
27 |
+
|
28 |
+
### How to Use
|
29 |
+
|
30 |
+
- Install [datasets](https://pypi.org/project/datasets/):
|
31 |
+
|
32 |
+
```bash
|
33 |
+
pip install datasets
|
34 |
+
```
|
35 |
+
|
36 |
+
- Load the dataset:
|
37 |
+
|
38 |
+
```python
|
39 |
+
from datasets import load_dataset
|
40 |
+
|
41 |
+
ds = load_dataset("sargishunanyan/thermo-classification", name="full")
|
42 |
+
example = ds['train'][0]
|
43 |
+
```
|
44 |
+
|
45 |
+
### Roboflow Dataset Page
|
46 |
+
[https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0/dataset/3](https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0/dataset/3?ref=roboflow2huggingface)
|
47 |
+
|
48 |
+
### Citation
|
49 |
+
|
50 |
+
```
|
51 |
+
@misc{ proj-2-qmdk0_dataset,
|
52 |
+
title = { proj 2 Dataset },
|
53 |
+
type = { Open Source Dataset },
|
54 |
+
author = { Yolo },
|
55 |
+
howpublished = { \\url{ https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0 } },
|
56 |
+
url = { https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0 },
|
57 |
+
journal = { Roboflow Universe },
|
58 |
+
publisher = { Roboflow },
|
59 |
+
year = { 2023 },
|
60 |
+
month = { oct },
|
61 |
+
note = { visited on 2023-10-18 },
|
62 |
+
}
|
63 |
+
```
|
64 |
+
|
65 |
+
### License
|
66 |
+
CC BY 4.0
|
67 |
+
|
68 |
+
### Dataset Summary
|
69 |
+
This dataset was exported via roboflow.com on October 8, 2023 at 7:58 AM GMT
|
70 |
+
|
71 |
+
Roboflow is an end-to-end computer vision platform that helps you
|
72 |
+
* collaborate with your team on computer vision projects
|
73 |
+
* collect & organize images
|
74 |
+
* understand and search unstructured image data
|
75 |
+
* annotate, and create datasets
|
76 |
+
* export, train, and deploy computer vision models
|
77 |
+
* use active learning to improve your dataset over time
|
78 |
+
|
79 |
+
For state of the art Computer Vision training notebooks you can use with this dataset,
|
80 |
+
visit https://github.com/roboflow/notebooks
|
81 |
+
|
82 |
+
To find over 100k other datasets and pre-trained models, visit https://universe.roboflow.com
|
83 |
+
|
84 |
+
The dataset includes 526 images.
|
85 |
+
Car-parts are annotated in folder format.
|
86 |
+
|
87 |
+
The following pre-processing was applied to each image:
|
88 |
+
|
89 |
+
No image augmentation techniques were applied.
|
90 |
+
|
91 |
+
|
92 |
+
|
README.roboflow.txt
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
proj 2 - v3 2023-10-08 11:56am
|
3 |
+
==============================
|
4 |
+
|
5 |
+
This dataset was exported via roboflow.com on October 8, 2023 at 7:58 AM GMT
|
6 |
+
|
7 |
+
Roboflow is an end-to-end computer vision platform that helps you
|
8 |
+
* collaborate with your team on computer vision projects
|
9 |
+
* collect & organize images
|
10 |
+
* understand and search unstructured image data
|
11 |
+
* annotate, and create datasets
|
12 |
+
* export, train, and deploy computer vision models
|
13 |
+
* use active learning to improve your dataset over time
|
14 |
+
|
15 |
+
For state of the art Computer Vision training notebooks you can use with this dataset,
|
16 |
+
visit https://github.com/roboflow/notebooks
|
17 |
+
|
18 |
+
To find over 100k other datasets and pre-trained models, visit https://universe.roboflow.com
|
19 |
+
|
20 |
+
The dataset includes 526 images.
|
21 |
+
Car-parts are annotated in folder format.
|
22 |
+
|
23 |
+
The following pre-processing was applied to each image:
|
24 |
+
|
25 |
+
No image augmentation techniques were applied.
|
26 |
+
|
27 |
+
|
data/test.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93f09a5c5f0fd2890a26af38acc03e4700ee2536ad6968d4a1c7276217e6c87e
|
3 |
+
size 1687631
|
data/train.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7d440ba332458112863e2bacfa94c75dd9301636ae260936f84e908c19e3689
|
3 |
+
size 10292860
|
data/valid-mini.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50fc3d3075db190931c8658a1e26cf911e6fb0b22ac44c2c21da1a7f8997d077
|
3 |
+
size 337298
|
data/valid.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae7ed7379d7e881aaef40cac53980f7ecaaf69fdb0a2eee6513542b70704f184
|
3 |
+
size 3004481
|
split_name_to_num_samples.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"valid": 102, "test": 52, "train": 372}
|
thermo-classification.py
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import datasets
|
4 |
+
from datasets.tasks import ImageClassification
|
5 |
+
|
6 |
+
|
7 |
+
_HOMEPAGE = "https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0/dataset/3"
|
8 |
+
_LICENSE = "CC BY 4.0"
|
9 |
+
_CITATION = """\
|
10 |
+
@misc{ proj-2-qmdk0_dataset,
|
11 |
+
title = { proj 2 Dataset },
|
12 |
+
type = { Open Source Dataset },
|
13 |
+
author = { Yolo },
|
14 |
+
howpublished = { \\url{ https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0 } },
|
15 |
+
url = { https://universe.roboflow.com/yolo-po0ro/proj-2-qmdk0 },
|
16 |
+
journal = { Roboflow Universe },
|
17 |
+
publisher = { Roboflow },
|
18 |
+
year = { 2023 },
|
19 |
+
month = { oct },
|
20 |
+
note = { visited on 2023-10-18 },
|
21 |
+
}
|
22 |
+
"""
|
23 |
+
_CATEGORIES = ['Thermostat', 'Housing', 'Insert']
|
24 |
+
|
25 |
+
|
26 |
+
class THERMOCLASSIFICATIONConfig(datasets.BuilderConfig):
|
27 |
+
"""Builder Config for thermo-classification"""
|
28 |
+
|
29 |
+
def __init__(self, data_urls, **kwargs):
|
30 |
+
"""
|
31 |
+
BuilderConfig for thermo-classification.
|
32 |
+
|
33 |
+
Args:
|
34 |
+
data_urls: `dict`, name to url to download the zip file from.
|
35 |
+
**kwargs: keyword arguments forwarded to super.
|
36 |
+
"""
|
37 |
+
super(THERMOCLASSIFICATIONConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
38 |
+
self.data_urls = data_urls
|
39 |
+
|
40 |
+
|
41 |
+
class THERMOCLASSIFICATION(datasets.GeneratorBasedBuilder):
|
42 |
+
"""thermo-classification image classification dataset"""
|
43 |
+
|
44 |
+
VERSION = datasets.Version("1.0.0")
|
45 |
+
BUILDER_CONFIGS = [
|
46 |
+
THERMOCLASSIFICATIONConfig(
|
47 |
+
name="full",
|
48 |
+
description="Full version of thermo-classification dataset.",
|
49 |
+
data_urls={
|
50 |
+
"train": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/train.zip",
|
51 |
+
"validation": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/valid.zip",
|
52 |
+
"test": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/test.zip",
|
53 |
+
}
|
54 |
+
,
|
55 |
+
),
|
56 |
+
THERMOCLASSIFICATIONConfig(
|
57 |
+
name="mini",
|
58 |
+
description="Mini version of thermo-classification dataset.",
|
59 |
+
data_urls={
|
60 |
+
"train": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/valid-mini.zip",
|
61 |
+
"validation": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/valid-mini.zip",
|
62 |
+
"test": "https://huggingface.co/datasets/sargishunanyan/thermo-classification/resolve/main/data/valid-mini.zip",
|
63 |
+
},
|
64 |
+
)
|
65 |
+
]
|
66 |
+
|
67 |
+
def _info(self):
|
68 |
+
return datasets.DatasetInfo(
|
69 |
+
features=datasets.Features(
|
70 |
+
{
|
71 |
+
"image_file_path": datasets.Value("string"),
|
72 |
+
"image": datasets.Image(),
|
73 |
+
"labels": datasets.features.ClassLabel(names=_CATEGORIES),
|
74 |
+
}
|
75 |
+
),
|
76 |
+
supervised_keys=("image", "labels"),
|
77 |
+
homepage=_HOMEPAGE,
|
78 |
+
citation=_CITATION,
|
79 |
+
license=_LICENSE,
|
80 |
+
task_templates=[ImageClassification(image_column="image", label_column="labels")],
|
81 |
+
)
|
82 |
+
|
83 |
+
def _split_generators(self, dl_manager):
|
84 |
+
data_files = dl_manager.download_and_extract(self.config.data_urls)
|
85 |
+
return [
|
86 |
+
datasets.SplitGenerator(
|
87 |
+
name=datasets.Split.TRAIN,
|
88 |
+
gen_kwargs={
|
89 |
+
"files": dl_manager.iter_files([data_files["train"]]),
|
90 |
+
},
|
91 |
+
),
|
92 |
+
datasets.SplitGenerator(
|
93 |
+
name=datasets.Split.VALIDATION,
|
94 |
+
gen_kwargs={
|
95 |
+
"files": dl_manager.iter_files([data_files["validation"]]),
|
96 |
+
},
|
97 |
+
),
|
98 |
+
datasets.SplitGenerator(
|
99 |
+
name=datasets.Split.TEST,
|
100 |
+
gen_kwargs={
|
101 |
+
"files": dl_manager.iter_files([data_files["test"]]),
|
102 |
+
},
|
103 |
+
),
|
104 |
+
]
|
105 |
+
|
106 |
+
def _generate_examples(self, files):
|
107 |
+
for i, path in enumerate(files):
|
108 |
+
file_name = os.path.basename(path)
|
109 |
+
if file_name.endswith((".jpg", ".png", ".jpeg", ".bmp", ".tif", ".tiff")):
|
110 |
+
yield i, {
|
111 |
+
"image_file_path": path,
|
112 |
+
"image": path,
|
113 |
+
"labels": os.path.basename(os.path.dirname(path)),
|
114 |
+
}
|
thumbnail.jpg
ADDED
Git LFS Details
|