Skip to content

Commit

Permalink
0.74.4
Browse files Browse the repository at this point in the history
  • Loading branch information
FBurkhardt committed Dec 15, 2023
1 parent ba36dcf commit a9bcbd1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

Version 0.74.4
--------------
* fixed bug combining augmentations

Version 0.74.3
--------------
* audiomentations interface changed
Expand Down
10 changes: 7 additions & 3 deletions nkululeko/augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,21 @@ def main(src_dir):
got_one = False
if augmentings:
augmentings = ast.literal_eval(augmentings)
def_ret = pd.DataFrame()
results = []
if "traditional" in augmentings:
df_ret = expr.augment()
df1 = expr.augment()
results.append(df1)
got_one = True
if "random_splice" in augmentings:
df_ret = pd.concat([def_ret, expr.random_splice()])
df2 = expr.random_splice()
results.append(df2)
got_one = True
if not augmentings:
util.error("no augmentation selected")
if not got_one:
util.error(f"invalid augmentation(s): {augmentings}")
df_ret = pd.DataFrame()
df_ret = pd.concat(results)
# remove encoded labels
target = util.config_val("DATA", "target", "emotion")
if "class_label" in df_ret.columns:
Expand Down
2 changes: 1 addition & 1 deletion nkululeko/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION="0.74.3"
VERSION="0.74.4"
SAMPLING_RATE = 16000

0 comments on commit a9bcbd1

Please sign in to comment.