Skip to content

Commit

Permalink
latest changes for kws20
Browse files Browse the repository at this point in the history
  • Loading branch information
EyubogluMerve committed May 15, 2024
1 parent 873e1d0 commit 71bcaf2
Show file tree
Hide file tree
Showing 2 changed files with 356 additions and 45 deletions.
4 changes: 2 additions & 2 deletions datasets/kws20.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def KWS_get_datasets(data, load_train=True, load_test=True, num_classes=6, bench
ai8x.normalize(args=args)
])

if num_classes in (6, 11, 20):
if num_classes in (6, 11, 20, 35):
classes = next((e for _, e in enumerate(datasets)
if len(e['output']) - 1 == num_classes))['output'][:-1]
else:
Expand Down Expand Up @@ -1132,7 +1132,7 @@ def MixedKWS_20_get_datasets_10dB(data, load_train=True, load_test=True,
'input': (128, 128),
'output': ('down', 'go', 'left', 'no', 'off', 'on', 'right', 'stop', 'up', 'yes',
'silence', 'UNKNOWN'),
'weight': (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.6, 0.04),
'weight': (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.6, 0.06),
'loader': KWS_12_benchmark_get_datasets,
},
{
Expand Down
397 changes: 354 additions & 43 deletions notebooks/backgroundclass_testing.ipynb

Large diffs are not rendered by default.

0 comments on commit 71bcaf2

Please sign in to comment.