Info.labels error for audio dataset

Question/Issue:
The data uploader keeps asking for label even when end of file index is reached

Project ID:
773182

Context/Use case:
About info.labels for multi-label type

Summary:
The ei data uploader is unable to upload data after reading the info.label file. The data file has exactly end of index of 5000 but uploader keep asking for label for 5001.

Steps to Reproduce:

  1. Go to Data Acquisition
  2. Click add data, select upload data
  3. Select upload folder with info.label, confirm upload and click upload data

Expected Results:
To upload the data based on the info.label information

Actual Results:
Uploader provides following error

"Uploading 1 file…
[1/1] Failed to upload scream_S1_L1_SS_patch_1.wav: structuredLabels: index 5001 does not have a label. Currently we require structured labels for the complete sample, there cannot be any gaps in the labels.

Done. Files uploaded successful: 0. Files that failed to upload: 1.

Job completed. No files were uploaded successfully.

Reproducibility:

  • [/] Always
  • [ ] Sometimes
  • [ ] Rarely

Additional Information:

Example of the info.label used shown below

{
“version”: 1,
“files”: [
{
“path”: “scream_S1_L1_SS_patch_1.wav”,
“category”: “split”,
“label”: {
“type”: “multi-label”,
“labels”: [
{
“label”: “non_scream”,
“startIndex”: 0,
“endIndex”: 2232
},
{
“label”: “scream”,
“startIndex”: 2233,
“endIndex”: 2270
},
{
“label”: “non_scream”,
“startIndex”: 2271,
“endIndex”: 5000
}
]
},
“metadata”: {}
}
]
}