Vadzim Kashko commited on
Commit
643a499
1 Parent(s): 8d458b8

fix: image exts docs: readme

Browse files
Files changed (2) hide show
  1. README.md +16 -0
  2. people-tracking-dataset.py +2 -2
README.md CHANGED
@@ -8,6 +8,22 @@ language:
8
  tags:
9
  - legal
10
  - code
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
 
 
8
  tags:
9
  - legal
10
  - code
11
+ dataset_info:
12
+ features:
13
+ - name: image_id
14
+ dtype: int32
15
+ - name: image
16
+ dtype: image
17
+ - name: mask
18
+ dtype: image
19
+ - name: annotations
20
+ dtype: string
21
+ splits:
22
+ - name: train
23
+ num_bytes: 52028802
24
+ num_examples: 41
25
+ download_size: 45336774
26
+ dataset_size: 52028802
27
  ---
28
 
29
 
people-tracking-dataset.py CHANGED
@@ -63,7 +63,7 @@ class PeopleTrackingDataset(datasets.GeneratorBasedBuilder):
63
  yield idx, {
64
  'image_id':
65
  annotations_df.loc[
66
- annotations_df['image_name'] == image_path]
67
  ['image_id'].values[0],
68
  "image": {
69
  "path": image_path,
@@ -75,6 +75,6 @@ class PeopleTrackingDataset(datasets.GeneratorBasedBuilder):
75
  },
76
  'annotations':
77
  annotations_df.loc[
78
- annotations_df['image_name'] == image_path]
79
  ['annotations'].values[0]
80
  }
 
63
  yield idx, {
64
  'image_id':
65
  annotations_df.loc[
66
+ annotations_df['image_name'] == image_path.lower()]
67
  ['image_id'].values[0],
68
  "image": {
69
  "path": image_path,
 
75
  },
76
  'annotations':
77
  annotations_df.loc[
78
+ annotations_df['image_name'] == image_path.lower()]
79
  ['annotations'].values[0]
80
  }