From d4e78098f040bbcdb42bde7b3e586b4b908d8667 Mon Sep 17 00:00:00 2001 From: FBurkhardt Date: Thu, 25 Jan 2024 14:36:07 +0100 Subject: [PATCH] initial --- 1.3.0/create.py | 44 ++++++++++++++++++++++++++++++++++++++++++ 1.3.0/publish.py | 19 ++++++++++++++++++ 1.3.0/requirements.txt | 8 ++++++++ 3 files changed, 71 insertions(+) create mode 100644 1.3.0/create.py create mode 100644 1.3.0/publish.py create mode 100644 1.3.0/requirements.txt diff --git a/1.3.0/create.py b/1.3.0/create.py new file mode 100644 index 0000000..1d538b1 --- /dev/null +++ b/1.3.0/create.py @@ -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() diff --git a/1.3.0/publish.py b/1.3.0/publish.py new file mode 100644 index 0000000..ecc8b9f --- /dev/null +++ b/1.3.0/publish.py @@ -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, +) diff --git a/1.3.0/requirements.txt b/1.3.0/requirements.txt new file mode 100644 index 0000000..69203a9 --- /dev/null +++ b/1.3.0/requirements.txt @@ -0,0 +1,8 @@ +pandas +matplotlib +seaborn +jupyter +audb +audeer +audformat +