Skip to content

1D vision transformer (vit) for ecg interpretable classification

Notifications You must be signed in to change notification settings

yonigottesman/ecg_vit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecg_vit

1D vision transformer (vit) for ecg interpretable classification
Code for my blog post

Installation

python version 3.10.5
dependencies in requirements.txt

Training

python train.py /<path>/a-large-scale-12-lead-electrocardiogram-database-for-arrhythmia-study-1.0.0/

Plot attension

python plot_attention.py  <wfdb_file> <model_weights_path> <lead_index>`  

For example:

python plot_attention.py a-large-scale-12-lead-electrocardiogram-database-for-arrhythmia-study-1.0.0/WFDBRecords/06/066/JS05865 vit_best/ 6

About

1D vision transformer (vit) for ecg interpretable classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages