Skip to content

tedfytw1209/ecg_aug

 
 

Repository files navigation

Getting started

Start off by downloading the PTB-XL dataset from this link. Then, edit the PTBXL_PATH variable in ptbxl_dataset.py to point to where you downloaded the data.

Next, setup the conda environment. Once conda is installed, run: conda env create -f environment.yml. Then, you can activate the environment using conda activate aug.

Training models

No Augmentations

To train a baseline model on the MI task with no augmentations on GPU 0, run:

python baseline.py --gpu 0 --task MI

See the baseline.py script for other configuration options.

TaskAug

To train a TaskAug model on MI on GPU 0, run:

python taskaug.py --gpu 0 --task MI

More configuration options are described in the taskaug.py script.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%