PyTorch Implementation of DeltaLSTM (./nnmodels/deltalstm.py) and CBTD (./utils/util.py)
Requires Miniconda with Python 3.13 and PyTorch (latest stable) installed in the base environment.
Install additional dependencies:
pip install numpy matplotlib pandas tqdm h5py scipy scikit-learn tensorboard editdistance sphfile
Navigate to the project folder and run experiments with the main.py file by specifying the target dataset and step. Please run the following commands to pretrain an LSTM network and retrain on DeltaLSTM:
- Data Preparation:
python main.py --dataset_name timit --step data_prep
- Feature Extraction
python main.py --dataset_name timit --step feat_ext
- Pretrain on LSTM
python main.py --dataset_name timit --step train --phase pretrain --hid_type LSTM
- Test LSTM
python main.py --dataset_name timit --step test --phase pretrain --hid_type LSTM
- Retrain on DeltaLSTM
python main.py --dataset_name timit --step train --phase retrain --hid_type DeltaLSTM --hid_type_pretrain LSTM
- Test DeltaLSTM
python main.py --dataset_name timit --step test --phase retrain --hid_type DeltaLSTM