vkashko commited on
Commit
01e16fb
·
1 Parent(s): fe84b58

fix: short annotations

Browse files
Files changed (2) hide show
  1. README.md +2 -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: 48877546
25
  num_examples: 13
26
  download_size: 48362120
27
- dataset_size: 48877546
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
- annotations_df['image_name'] == image_path]
99
- ['shapes'].values[0]
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
  }