neogpx commited on
Commit
22c01c1
·
verified ·
1 Parent(s): ef955ea

dataset uploaded by roboflow2huggingface package

Browse files
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ roboflow.zipt7sgy4nf.tmp filter=lfs diff=lfs merge=lfs -text
README.dataset.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # building_structures > 2024-06-04 6:13pm
2
+ https://universe.roboflow.com/workspace67/building_structures
3
+
4
+ Provided by a Roboflow user
5
+ License: CC BY 4.0
6
+
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - object-detection
4
+ tags:
5
+ - roboflow
6
+ - roboflow2huggingface
7
+
8
+ ---
9
+
10
+ <div align="center">
11
+ <img width="640" alt="neogpx/constructionures" src="https://huggingface.co/datasets/neogpx/constructionures/resolve/main/thumbnail.jpg">
12
+ </div>
13
+
14
+ ### Dataset Labels
15
+
16
+ ```
17
+ ['building']
18
+ ```
19
+
20
+
21
+ ### Number of Images
22
+
23
+ ```json
24
+ {'valid': 140, 'train': 4104}
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("neogpx/constructionures", name="full")
42
+ example = ds['train'][0]
43
+ ```
44
+
45
+ ### Roboflow Dataset Page
46
+ [https://universe.roboflow.com/workspace67/building_structures/dataset/1
47
+ ](https://universe.roboflow.com/workspace67/building_structures/dataset/1
48
+ ?ref=roboflow2huggingface)
49
+
50
+ ### Citation
51
+
52
+ ```
53
+ @misc{
54
+ building_structures_dataset,
55
+ title = { building_structures Dataset },
56
+ type = { Open Source Dataset },
57
+ author = { Workspace67 },
58
+ howpublished = { \\url{ https://universe.roboflow.com/workspace67/building_structures } },
59
+ url = { https://universe.roboflow.com/workspace67/building_structures },
60
+ journal = { Roboflow Universe },
61
+ publisher = { Roboflow },
62
+ year = { 2024 },
63
+ month = { jun },
64
+ note = { visited on 2025-03-07 },
65
+ }
66
+ ```
67
+
68
+ ### License
69
+ CC BY 4.0
70
+
71
+ ### Dataset Summary
72
+ This dataset was exported via roboflow.com on June 21, 2024 at 8:33 AM GMT
73
+
74
+ Roboflow is an end-to-end computer vision platform that helps you
75
+ * collaborate with your team on computer vision projects
76
+ * collect & organize images
77
+ * understand and search unstructured image data
78
+ * annotate, and create datasets
79
+ * export, train, and deploy computer vision models
80
+ * use active learning to improve your dataset over time
81
+
82
+ For state of the art Computer Vision training notebooks you can use with this dataset,
83
+ visit https://github.com/roboflow/notebooks
84
+
85
+ To find over 100k other datasets and pre-trained models, visit https://universe.roboflow.com
86
+
87
+ The dataset includes 4244 images.
88
+ Structures are annotated in COCO format.
89
+
90
+ The following pre-processing was applied to each image:
91
+ * Auto-orientation of pixel data (with EXIF-orientation stripping)
92
+ * Resize to 640x640 (Stretch)
93
+
94
+ The following augmentation was applied to create 3 versions of each source image:
95
+ * 50% probability of horizontal flip
96
+
97
+
98
+
README.roboflow.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ building_structures - v1 2024-06-04 6:13pm
3
+ ==============================
4
+
5
+ This dataset was exported via roboflow.com on June 21, 2024 at 8:33 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 4244 images.
21
+ Structures are annotated in COCO format.
22
+
23
+ The following pre-processing was applied to each image:
24
+ * Auto-orientation of pixel data (with EXIF-orientation stripping)
25
+ * Resize to 640x640 (Stretch)
26
+
27
+ The following augmentation was applied to create 3 versions of each source image:
28
+ * 50% probability of horizontal flip
29
+
30
+
constructionures.py ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import collections
2
+ import json
3
+ import os
4
+
5
+ import datasets
6
+
7
+
8
+ _HOMEPAGE = "https://universe.roboflow.com/workspace67/building_structures/dataset/1
9
+ "
10
+ _LICENSE = "CC BY 4.0"
11
+ _CITATION = """\
12
+ @misc{
13
+ building_structures_dataset,
14
+ title = { building_structures Dataset },
15
+ type = { Open Source Dataset },
16
+ author = { Workspace67 },
17
+ howpublished = { \\url{ https://universe.roboflow.com/workspace67/building_structures } },
18
+ url = { https://universe.roboflow.com/workspace67/building_structures },
19
+ journal = { Roboflow Universe },
20
+ publisher = { Roboflow },
21
+ year = { 2024 },
22
+ month = { jun },
23
+ note = { visited on 2025-03-07 },
24
+ }
25
+ """
26
+ _CATEGORIES = ['building']
27
+ _ANNOTATION_FILENAME = "_annotations.coco.json"
28
+
29
+
30
+ class CONSTRUCTIONURESConfig(datasets.BuilderConfig):
31
+ """Builder Config for constructionures"""
32
+
33
+ def __init__(self, data_urls, **kwargs):
34
+ """
35
+ BuilderConfig for constructionures.
36
+
37
+ Args:
38
+ data_urls: `dict`, name to url to download the zip file from.
39
+ **kwargs: keyword arguments forwarded to super.
40
+ """
41
+ super(CONSTRUCTIONURESConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
42
+ self.data_urls = data_urls
43
+
44
+
45
+ class CONSTRUCTIONURES(datasets.GeneratorBasedBuilder):
46
+ """constructionures object detection dataset"""
47
+
48
+ VERSION = datasets.Version("1.0.0")
49
+ BUILDER_CONFIGS = [
50
+ CONSTRUCTIONURESConfig(
51
+ name="full",
52
+ description="Full version of constructionures dataset.",
53
+ data_urls={
54
+ "train": "https://huggingface.co/datasets/neogpx/constructionures/resolve/main/data/train.zip",
55
+ "validation": "https://huggingface.co/datasets/neogpx/constructionures/resolve/main/data/valid.zip",
56
+ },
57
+ ),
58
+ CONSTRUCTIONURESConfig(
59
+ name="mini",
60
+ description="Mini version of constructionures dataset.",
61
+ data_urls={
62
+ "train": "https://huggingface.co/datasets/neogpx/constructionures/resolve/main/data/valid-mini.zip",
63
+ "validation": "https://huggingface.co/datasets/neogpx/constructionures/resolve/main/data/valid-mini.zip",
64
+ },
65
+ )
66
+ ]
67
+
68
+ def _info(self):
69
+ features = datasets.Features(
70
+ {
71
+ "image_id": datasets.Value("int64"),
72
+ "image": datasets.Image(),
73
+ "width": datasets.Value("int32"),
74
+ "height": datasets.Value("int32"),
75
+ "objects": datasets.Sequence(
76
+ {
77
+ "id": datasets.Value("int64"),
78
+ "area": datasets.Value("int64"),
79
+ "bbox": datasets.Sequence(datasets.Value("float32"), length=4),
80
+ "category": datasets.ClassLabel(names=_CATEGORIES),
81
+ }
82
+ ),
83
+ }
84
+ )
85
+ return datasets.DatasetInfo(
86
+ features=features,
87
+ homepage=_HOMEPAGE,
88
+ citation=_CITATION,
89
+ license=_LICENSE,
90
+ )
91
+
92
+ def _split_generators(self, dl_manager):
93
+ data_files = dl_manager.download_and_extract(self.config.data_urls)
94
+ return [
95
+ datasets.SplitGenerator(
96
+ name=datasets.Split.TRAIN,
97
+ gen_kwargs={
98
+ "folder_dir": data_files["train"],
99
+ },
100
+ ),
101
+ datasets.SplitGenerator(
102
+ name=datasets.Split.TEST,
103
+ gen_kwargs={
104
+ "folder_dir": data_files["validation"],
105
+ },
106
+ ),
107
+ ]
108
+
109
+ def _generate_examples(self, folder_dir):
110
+ def process_annot(annot, category_id_to_category):
111
+ return {
112
+ "id": annot["id"],
113
+ "area": annot["area"],
114
+ "bbox": annot["bbox"],
115
+ "category": category_id_to_category[annot["category_id"]],
116
+ }
117
+
118
+ image_id_to_image = {}
119
+ idx = 0
120
+
121
+ annotation_filepath = os.path.join(folder_dir, _ANNOTATION_FILENAME)
122
+ with open(annotation_filepath, "r") as f:
123
+ annotations = json.load(f)
124
+ category_id_to_category = {category["id"]: category["name"] for category in annotations["categories"]}
125
+ image_id_to_annotations = collections.defaultdict(list)
126
+ for annot in annotations["annotations"]:
127
+ image_id_to_annotations[annot["image_id"]].append(annot)
128
+ filename_to_image = {image["file_name"]: image for image in annotations["images"]}
129
+
130
+ for filename in os.listdir(folder_dir):
131
+ filepath = os.path.join(folder_dir, filename)
132
+ if filename in filename_to_image:
133
+ image = filename_to_image[filename]
134
+ objects = [
135
+ process_annot(annot, category_id_to_category) for annot in image_id_to_annotations[image["id"]]
136
+ ]
137
+ with open(filepath, "rb") as f:
138
+ image_bytes = f.read()
139
+ yield idx, {
140
+ "image_id": image["id"],
141
+ "image": {"path": filepath, "bytes": image_bytes},
142
+ "width": image["width"],
143
+ "height": image["height"],
144
+ "objects": objects,
145
+ }
146
+ idx += 1
data/train.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4adb8857f0822fc38cce522351f1d180bcea46888096f1c0177312475f106efd
3
+ size 257342311
data/valid-mini.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:978b30caf90b87a9aaf356773485a52c9be99476b1f2c000fc9d89f575605cc8
3
+ size 194354
data/valid.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6acde1beb85303d0db9a3191d6376ca96a162a13cd9dff78e706cc4d29e5155
3
+ size 9022785
roboflow.zipt7sgy4nf.tmp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca64fc567de41216761cbc0a39862497c2057a47e7a86a4c5602eb31f42306b0
3
+ size 21766144
split_name_to_num_samples.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"valid": 140, "train": 4104}
thumbnail.jpg ADDED

Git LFS Details

  • SHA256: 240cffd3e1e6cb2533176f300fa4630cdebe14a9d4b64e1a2e7ea09526d41b54
  • Pointer size: 131 Bytes
  • Size of remote file: 149 kB