File size: 667 Bytes
f831146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

TRAIN_FOLDER="fbannks_train"
TEST_FOLDER="fbannks_test"
EPOCHS=20
BATCH_SIZE=128
LR=0.0005

for num_layers in 2 3 4 5 6
do
    echo "Starting training with $num_layers layers..."
    
    python3 stage1_pretrain.py \
        --num_layers $num_layers \
        --train_folder $TRAIN_FOLDER \
        --test_folder $TEST_FOLDER \
        --epochs $EPOCHS \
        --batch_size $BATCH_SIZE \
        --lr $LR
    
    if [ $? -eq 0 ]; then
        echo "Training with $num_layers layers completed successfully."
    else
        echo "Error occurred during training with $num_layers layers."
        exit 1
    fi
done

echo "All training runs completed."