Datasets:
Tasks:
Image Segmentation
Size:
< 1K
dataset uploaded by roboflow2huggingface package
Browse files- README.md +1 -1
- crack-instance-segmentation.py +4 -3
- data/test.zip +1 -1
- data/train.zip +1 -1
- data/valid-mini.zip +2 -2
- data/valid.zip +1 -1
- split_name_to_num_samples.json +1 -1
- thumbnail.jpg +2 -2
README.md
CHANGED
@@ -21,7 +21,7 @@ tags:
|
|
21 |
### Number of Images
|
22 |
|
23 |
```json
|
24 |
-
{'
|
25 |
```
|
26 |
|
27 |
|
|
|
21 |
### Number of Images
|
22 |
|
23 |
```json
|
24 |
+
{'train': 323, 'valid': 73, 'test': 37}
|
25 |
```
|
26 |
|
27 |
|
crack-instance-segmentation.py
CHANGED
@@ -77,6 +77,7 @@ class CRACKINSTANCESEGMENTATION(datasets.GeneratorBasedBuilder):
|
|
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 |
),
|
@@ -132,12 +133,12 @@ class CRACKINSTANCESEGMENTATION(datasets.GeneratorBasedBuilder):
|
|
132 |
image_id_to_annotations = collections.defaultdict(list)
|
133 |
for annot in annotations["annotations"]:
|
134 |
image_id_to_annotations[annot["image_id"]].append(annot)
|
135 |
-
|
136 |
|
137 |
for filename in os.listdir(folder_dir):
|
138 |
filepath = os.path.join(folder_dir, filename)
|
139 |
-
if filename in
|
140 |
-
image =
|
141 |
objects = [
|
142 |
process_annot(annot, category_id_to_category) for annot in image_id_to_annotations[image["id"]]
|
143 |
]
|
|
|
77 |
"id": datasets.Value("int64"),
|
78 |
"area": datasets.Value("int64"),
|
79 |
"bbox": datasets.Sequence(datasets.Value("float32"), length=4),
|
80 |
+
"segmentation": datasets.Sequence(datasets.Value("float32")),
|
81 |
"category": datasets.ClassLabel(names=_CATEGORIES),
|
82 |
}
|
83 |
),
|
|
|
133 |
image_id_to_annotations = collections.defaultdict(list)
|
134 |
for annot in annotations["annotations"]:
|
135 |
image_id_to_annotations[annot["image_id"]].append(annot)
|
136 |
+
filename_to_image = {annot["file_name"]: image for image in annotations["images"]}
|
137 |
|
138 |
for filename in os.listdir(folder_dir):
|
139 |
filepath = os.path.join(folder_dir, filename)
|
140 |
+
if filename in filename_to_image:
|
141 |
+
image = filename_to_image[filename]
|
142 |
objects = [
|
143 |
process_annot(annot, category_id_to_category) for annot in image_id_to_annotations[image["id"]]
|
144 |
]
|
data/test.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1429165
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d3606f619defe5633dd7e87377f33cb3b417c66eb2bfb5b34d44d4a287d59862
|
3 |
size 1429165
|
data/train.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 10567198
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f8a734c4ae9ce00d093cc34112bb88c5a65964f92b9ea3e2617b661a01ec29d
|
3 |
size 10567198
|
data/valid-mini.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9c2b5205dbcda15149c1cf2a208ab4ac455980526781ec27dc4503c71414e34
|
3 |
+
size 124533
|
data/valid.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2306229
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d695085c716f23b3baaf5199b66aa7058cdb7caf7587794621d0da64267e9513
|
3 |
size 2306229
|
split_name_to_num_samples.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"
|
|
|
1 |
+
{"train": 323, "valid": 73, "test": 37}
|
thumbnail.jpg
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|