Skip to content

ahclab/turntaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multimodal Voice Activity Prediction Model for Turn-taking

Model training for

Installation

  • Create conda env: conda create -n turntaking python=3.11
    • source env: conda source turntaking
  • PyTorch: conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
  • Dependencies:
    • Install Cython: pip install cython
    • Install requirements: pip install -r requirements.txt
  • Install turntaking:
    • cd to root directory and run: pip install -e .

Set Up Datasets

  • WARNING: Requires NoXi Database data.
  • Place the file in any directory as follows
  .
  ├──noxi
  │  ├── Augsburg_01
  │  │   ├── audio_expert.wav
  │  │   ├── audio_mix.wav
  │  │   ├── audio_novice.wav
  │  │   ├── non_varbal_expert.csv
  │  │   ├── non_varbal_novice.csv
  │  │   ├── vad_expert.txt
  │  │   └── vad_novice.txt
  │  ├── Augsburg_02
  │  │   ├── audio_expert.wav
  │  │   ├── audio_mix.wav
  │  │   ├── audio_novice.wav
  │  │   ├── non_varbal_expert.csv
  │  │   ├── non_varbal_novice.csv
  │  │   ├── vad_expert.txt
  │  │   └── vad_novice.txt
    ...
  • Rewrite EXTRACTED_PATH in turntaking/dataload/dataset/noxi/noxi.py and Rewrite AUDIO_DIR and MULTIMODAL_DIR in /turntaking/dataload/dataset/noxi/__init__.py.

Train and Test

  1. Rewriting Model Training Conditions The training conditions can be changed by rewriting turntaking/conf/config.yaml. The model can be changed by rewriting turntaking/conf/model/model.yaml.

Refer to the following image for the corresponding module name of the model. Image 1 Image 2 Image 3

  1. Model Training
python turntaking/train.py
  1. Test
python turntaking/test.py

Citation

TBA

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages