File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change
1
+ rsync -auxvL --no-owner --no-group
[email protected] :data/tuh_eeg/tuh_eeg/v2.0.1/
.
Original file line number Diff line number Diff line change 3
3
# Print welcome message
4
4
echo " Welcome to the setup script!"
5
5
6
+ # Make data directory
7
+ echo " Creating data directory..."
8
+ mkdir -p data
9
+ mkdir -p data/tuh_eeg
10
+
6
11
# Ask user for their name to set git config user.name
7
12
echo " Asking for your name to set git configuration..."
8
13
read -p " Please enter your name: " name
@@ -23,7 +28,7 @@ apt-get update
23
28
24
29
# Install tmux and htop for terminal multiplexing and process monitoring
25
30
echo " Installing tmux and htop..."
26
- apt-get install -y tmux htop
31
+ apt-get install -y tmux htop rsync
27
32
28
33
# Generate a new SSH key using the provided email
29
34
echo " Generating a new SSH key..."
Original file line number Diff line number Diff line change 1
- python -m torch.distributed.launch --nproc_per_node=2 \
1
+ python -m torch.distributed.launch --nproc_per_node=8 \
2
2
src/train_gpt.py \
3
3
--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 \
6
6
--per-device-training-batch-size=32 \
7
7
--per-device-validation-batch-size=32 \
8
- --num-workers=16 \
8
+ --num-workers=32 \
9
9
--num_chunks=32 \
10
10
--chunk_len=500 \
11
11
--chunk_ovlp=50 \
@@ -15,4 +15,5 @@ python -m torch.distributed.launch --nproc_per_node=2 \
15
15
--training-style=CSM_causal \
16
16
--embedding-dim=1024 \
17
17
--train-data-path=data/npy_tuh_eeg \
18
- --verbose=True
18
+ --verbose=True \
19
+ & > train_parallel.log
Original file line number Diff line number Diff line change 10
10
11
11
# EEG_ALL_CHANNELS = sorted(list(set(EEG_10_20_CHANNELS + EEG_10_10_CHANNELS)))
12
12
EEG_ALL_CHANNELS = sorted (list (set (EEG_10_20_CHANNELS )))
13
+ NUM_CHANNELS = len (EEG_ALL_CHANNELS )
13
14
14
15
def align_data_to_standard_channels (input_data , channel_locations ):
15
16
"""
You can’t perform that action at this time.
0 commit comments