Skip to content

Commit 8839ef0

Browse files
ADD: final configs for first release
1 parent b31e6f7 commit 8839ef0

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

scripts/download.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rsync -auxvL --no-owner --no-group [email protected]:data/tuh_eeg/tuh_eeg/v2.0.1/ .

scripts/preprocess.sh

100644100755
File mode changed.

scripts/setup.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Print welcome message
44
echo "Welcome to the setup script!"
55

6+
# Make data directory
7+
echo "Creating data directory..."
8+
mkdir -p data
9+
mkdir -p data/tuh_eeg
10+
611
# Ask user for their name to set git config user.name
712
echo "Asking for your name to set git configuration..."
813
read -p "Please enter your name: " name
@@ -23,7 +28,7 @@ apt-get update
2328

2429
# Install tmux and htop for terminal multiplexing and process monitoring
2530
echo "Installing tmux and htop..."
26-
apt-get install -y tmux htop
31+
apt-get install -y tmux htop rsync
2732

2833
# Generate a new SSH key using the provided email
2934
echo "Generating a new SSH key..."

scripts/train_parallel.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
python -m torch.distributed.launch --nproc_per_node=2 \
1+
python -m torch.distributed.launch --nproc_per_node=8 \
22
src/train_gpt.py \
33
--training-steps=50000 \
4-
--eval_every_n_steps=100 \
5-
--log-every-n-steps=1 \
4+
--eval_every_n_steps=100000 \
5+
--log-every-n-steps=100 \
66
--per-device-training-batch-size=32 \
77
--per-device-validation-batch-size=32 \
8-
--num-workers=16 \
8+
--num-workers=32 \
99
--num_chunks=32 \
1010
--chunk_len=500 \
1111
--chunk_ovlp=50 \
@@ -15,4 +15,5 @@ python -m torch.distributed.launch --nproc_per_node=2 \
1515
--training-style=CSM_causal \
1616
--embedding-dim=1024 \
1717
--train-data-path=data/npy_tuh_eeg \
18-
--verbose=True
18+
--verbose=True \
19+
&> train_parallel.log

src/eeg/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# EEG_ALL_CHANNELS = sorted(list(set(EEG_10_20_CHANNELS + EEG_10_10_CHANNELS)))
1212
EEG_ALL_CHANNELS = sorted(list(set(EEG_10_20_CHANNELS)))
13+
NUM_CHANNELS = len(EEG_ALL_CHANNELS)
1314

1415
def align_data_to_standard_channels(input_data, channel_locations):
1516
"""

0 commit comments

Comments
 (0)