Connor Hoehn
commited on
Commit
•
05c77b2
1
Parent(s):
c917614
Update.
Browse files- README.md +3 -1
- card_display_v1.py +7 -15
README.md
CHANGED
@@ -70,6 +70,8 @@ dataset_info:
|
|
70 |
dtype: bool
|
71 |
splits:
|
72 |
- name: train
|
|
|
|
|
73 |
download_size: 96890427
|
74 |
-
dataset_size:
|
75 |
---
|
|
|
70 |
dtype: bool
|
71 |
splits:
|
72 |
- name: train
|
73 |
+
num_bytes: 43712
|
74 |
+
num_examples: 154
|
75 |
download_size: 96890427
|
76 |
+
dataset_size: 43712
|
77 |
---
|
card_display_v1.py
CHANGED
@@ -153,22 +153,14 @@ class CardDisplayDetector(datasets.GeneratorBasedBuilder):
|
|
153 |
objects = []
|
154 |
|
155 |
# Add the annotation information to the image details
|
156 |
-
for annotation in annotations:
|
|
|
|
|
|
|
|
|
157 |
objects.append(annotation)
|
158 |
|
159 |
# nested dictionary
|
160 |
image_details["objects"] = objects
|
161 |
-
|
162 |
-
yield (image_id, image_details)
|
163 |
-
|
164 |
-
|
165 |
-
# if __name__ == "__main__":
|
166 |
-
|
167 |
-
# mgr = datasets.utils.download_manager.DownloadManager()
|
168 |
-
|
169 |
-
# dataset = mgr.download_and_extract(_DATASET_URL)
|
170 |
-
|
171 |
-
# print(os.path.join(dataset, "result.json"))
|
172 |
-
|
173 |
-
# detector = CardDisplayDetector()
|
174 |
-
# print(detector._generate_examples())
|
|
|
153 |
objects = []
|
154 |
|
155 |
# Add the annotation information to the image details
|
156 |
+
for annotation in annotations:
|
157 |
+
|
158 |
+
del annotation['segmentation']
|
159 |
+
del annotation['ignore']
|
160 |
+
|
161 |
objects.append(annotation)
|
162 |
|
163 |
# nested dictionary
|
164 |
image_details["objects"] = objects
|
165 |
+
|
166 |
+
yield (image_id, image_details)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|