This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FBurkhardt
committed
Jan 25, 2024
1 parent
0c05335
commit d4e7809
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
create.py | ||
add new age tables to the databases | ||
* per speaker use 10-20 random sentences of about 2-10 seconds | ||
* split into train test dev, should be age/gender balanced | ||
* make two versions: one with emotion acted samples and one with neutral | ||
* so all in all 6 new tables | ||
""" | ||
|
||
import os | ||
import pandas as pd | ||
import audb | ||
import audeer | ||
import audformat | ||
|
||
|
||
def main(): | ||
name = "crema-d" | ||
previous_version = "1.2.0" | ||
|
||
build_dir = "../build" | ||
build_dir = audeer.mkdir(build_dir) | ||
|
||
audb.load_to( | ||
build_dir, | ||
name, | ||
version=previous_version, | ||
num_workers=8, | ||
only_metadata=True, | ||
verbose=True, | ||
) | ||
db = audformat.Database.load(build_dir) | ||
|
||
splits = ["train", "dev", "test"] | ||
for split in splits: | ||
pass | ||
db.save(build_dir) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import audb | ||
|
||
previous_version = "1.2.0" | ||
version = "1.3.0" | ||
build_dir = "./build" | ||
|
||
repository = audb.Repository( | ||
name="data-public-local", | ||
host="https://artifactory.audeering.com/artifactory", | ||
backend="artifactory", | ||
) | ||
audb.publish( | ||
build_dir, | ||
version=version, | ||
previous_version=previous_version, | ||
repository=repository, | ||
num_workers=1, | ||
verbose=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pandas | ||
matplotlib | ||
seaborn | ||
jupyter | ||
audb | ||
audeer | ||
audformat | ||
|