Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
FBurkhardt committed Jan 25, 2024
1 parent 0c05335 commit d4e7809
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 1.3.0/create.py
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()
19 changes: 19 additions & 0 deletions 1.3.0/publish.py
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,
)
8 changes: 8 additions & 0 deletions 1.3.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pandas
matplotlib
seaborn
jupyter
audb
audeer
audformat

0 comments on commit d4e7809

Please sign in to comment.