fix: short annotations
Browse files- README.md +2 -2
- plantations_segmentation.py +3 -3
README.md
CHANGED
@@ -21,10 +21,10 @@ dataset_info:
|
|
21 |
dtype: string
|
22 |
splits:
|
23 |
- name: train
|
24 |
-
num_bytes:
|
25 |
num_examples: 13
|
26 |
download_size: 48362120
|
27 |
-
dataset_size:
|
28 |
---
|
29 |
|
30 |
# Plantations Segmentation
|
|
|
21 |
dtype: string
|
22 |
splits:
|
23 |
- name: train
|
24 |
+
num_bytes: 48297698
|
25 |
num_examples: 13
|
26 |
download_size: 48362120
|
27 |
+
dataset_size: 48297698
|
28 |
---
|
29 |
|
30 |
# Plantations Segmentation
|
plantations_segmentation.py
CHANGED
@@ -94,7 +94,7 @@ class PlantationsSegmentation(datasets.GeneratorBasedBuilder):
|
|
94 |
"bytes": object_segmentation.read()
|
95 |
},
|
96 |
'shapes':
|
97 |
-
annotations_df.loc[
|
98 |
-
|
99 |
-
|
100 |
}
|
|
|
94 |
"bytes": object_segmentation.read()
|
95 |
},
|
96 |
'shapes':
|
97 |
+
annotations_df.loc[annotations_df['image_name'] ==
|
98 |
+
image_path]['shapes'].values[0][:500] +
|
99 |
+
'...'
|
100 |
}
|