This is a naive Pytorch implementation of EEGNet We don't consider data preprocessing, visualization , ablation test, within/cross-subject experiments.
- Clone this repo
git clone https://github.com/AilurusUmbra/EEGNet-tutorial.git
cd EEGNet-tutorial
- From conda (recommended)
conda env create -f environment.yml
- From pip
pip install -r requirements.txt
- Start to train EEGNet
python run.py
- Distributed tuning hyperparameters
- Using ray tune
Noted that the path of dataset in
dataloader.py
should be modified to absolute path, since that ray tune generates several worker processes to run training function at different working paths.
python tuning.py