Model training for
- Create conda env:
conda create -n turntaking python=3.11
- source env:
conda source turntaking
- source env:
- 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 Cython:
- Install
turntaking
:- cd to root directory and run:
pip install -e .
- cd to root directory and run:
- 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
inturntaking/dataload/dataset/noxi/noxi.py
and RewriteAUDIO_DIR
andMULTIMODAL_DIR
in/turntaking/dataload/dataset/noxi/__init__.py
.
- Rewriting Model Training Conditions
The training conditions can be changed by rewriting
turntaking/conf/config.yaml
. The model can be changed by rewritingturntaking/conf/model/model.yaml
.
Refer to the following image for the corresponding module name of the model.
- Model Training
python turntaking/train.py
- Test
python turntaking/test.py
TBA