trial
Browse files- SkyScenes.py +13 -5
SkyScenes.py
CHANGED
|
@@ -817,6 +817,14 @@ class SKYSCENES(datasets.GeneratorBasedBuilder):
|
|
| 817 |
|
| 818 |
}
|
| 819 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 820 |
|
| 821 |
SKYSCENESConfig(
|
| 822 |
name="Rural semseg",
|
|
@@ -911,11 +919,11 @@ class SKYSCENES(datasets.GeneratorBasedBuilder):
|
|
| 911 |
def _generate_examples(self, images=None):
|
| 912 |
"""Generate images and labels for splits."""
|
| 913 |
print('TYPE',type(images))
|
| 914 |
-
for f in images:
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
# for j in range(len(images)):
|
| 920 |
# dict_final = {}
|
| 921 |
# filepath_img = os.listdir(images[j])
|
|
|
|
| 817 |
|
| 818 |
}
|
| 819 |
),
|
| 820 |
+
SKYSCENESConfig(
|
| 821 |
+
name="trial",
|
| 822 |
+
description="Semseg maps for all variations of Height = 60m and Pitch=90",
|
| 823 |
+
data_urls={
|
| 824 |
+
"images":"https://huggingface.co/datasets/hoffman-lab/SkyScenes/resolve/main/Segment/H_60_P_90/ClearNoon/Town01/Town01.tar.gz"
|
| 825 |
+
|
| 826 |
+
}
|
| 827 |
+
),
|
| 828 |
|
| 829 |
SKYSCENESConfig(
|
| 830 |
name="Rural semseg",
|
|
|
|
| 919 |
def _generate_examples(self, images=None):
|
| 920 |
"""Generate images and labels for splits."""
|
| 921 |
print('TYPE',type(images))
|
| 922 |
+
# for f in images:
|
| 923 |
+
for file_path, file_obj in images:
|
| 924 |
+
yield file_path, {
|
| 925 |
+
"image": {"path": file_path, "bytes": file_obj.read()},
|
| 926 |
+
}
|
| 927 |
# for j in range(len(images)):
|
| 928 |
# dict_final = {}
|
| 929 |
# filepath_img = os.listdir(images[j])
|