-
Notifications
You must be signed in to change notification settings - Fork 1
/
train.sh
executable file
·34 lines (26 loc) · 1.62 KB
/
train.sh
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
31
32
33
34
#!/bin/bash
#SBATCH --time=150:00:00
#SBATCH --account=PAS1957
#SBATCH --gpus-per-node=1
#SBATCH --output=output/%j.log
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --ntasks=28
if test -z $SLURM_JOB_ID; then
export SLURM_JOB_ID=$(date +%s)
echo "then $SLURM_JOB_ID"
fi
echo $SLURM_JOB_ID
export USER_HOME_DIR=~
module load miniconda3/4.10.3-py37
module load cuda/10.2.89
source activate
conda activate nlp
conda env list
set -x
mkdir output/$SLURM_JOB_ID
mkdir output/$SLURM_JOB_ID/code/
cp *.py output/$SLURM_JOB_ID/code/
cp $0 output/$SLURM_JOB_ID/code/
#python train_wavegan.py --model-size 64 --phase-shuffle-shift-factor 2 --post-proc-filt-len 512 --lrelu-alpha 0.2 --valid-ratio 0.1 --test-ratio 0.1 --batch-size 64 --num-epochs 3000 --batches-per-epoch 100 --ngpus 1 --latent-dim 100 --epochs-per-sample 1 --sample-size 20 --learning-rate 1e-4 --beta-one 0.5 --beta-two 0.9 --regularization-factor 10.0 --audio_dir=setTwo --output_dir=output --discriminator-updates=5 --job_id=$SLURM_JOB_ID > "sbatch/${SLURM_JOB_ID}_main.log"
python train_fiwgan.py --model-size 64 --phase-shuffle-shift-factor 2 --post-proc-filt-len 512 --lrelu-alpha 0.2 --valid-ratio 0.1 --test-ratio 0.1 --batch-size 64 --num-epochs 2000 --batches-per-epoch 100 --ngpus 1 --latent-dim 100 --epochs-per-sample 1 --sample-size 20 --learning-rate 1e-4 --beta-one 0.5 --beta-two 0.9 --regularization-factor 10.0 --audio_dir=/users/PAS2062/delijingyic/project/wavegan/wavegan/output/20534720 --output_dir=output --discriminator-updates=5 --num_categ=3 --job_id=$SLURM_JOB_ID #> "output/${SLURM_JOB_ID}/stdout.log"
mv output/$SLURM_JOB_ID.log output/$SLURM_JOB_ID/sbatch.log