Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/BDD100k-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Each json file contains a list of frame objects, and each frame object has the f

- name: string
- videoName: string
- index: int
- frameIndex: int
- labels: [ ]
- id: string
- category: string
- attributes:
- Crowd: boolean
- crowd: boolean
- Occluded: boolean
- Truncated: boolean
- box2d:
Expand Down
4 changes: 2 additions & 2 deletions trackeval/datasets/bdd100k.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _load_raw_file(self, tracker, seq, is_gt):
data = json.load(f)

# sort data by frame index
data = sorted(data, key=lambda x: x['index'])
data = sorted(data, key=lambda x: x['frameIndex'])

# check sequence length
if is_gt:
Expand All @@ -139,7 +139,7 @@ def _load_raw_file(self, tracker, seq, is_gt):
for i in range(len(data[t]['labels'])):
ann = data[t]['labels'][i]
if is_gt and (ann['category'] in self.distractor_classes or 'attributes' in ann.keys()
and ann['attributes']['Crowd']):
and ann['attributes']['crowd']):
ig_ids.append(i)
else:
keep_ids.append(i)
Expand Down