-
Notifications
You must be signed in to change notification settings - Fork 1
/
manipulate_org.sh
executable file
·63 lines (47 loc) · 2.69 KB
/
manipulate_org.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#SBATCH --time=1:00:00
#SBATCH --account=PAS1957
#SBATCH --gpus-per-node=1
#SBATCH --output=output/%j.log
#SBATCH --mail-type=FAIL
#SBATCH --ntasks=28
export USER_HOME_DIR=~
if test -z $SLURM_JOB_ID
then
echo "then `date +%s`"
export SLURM_JOB_ID=`date +%s`
fi
if test -z $SLURM_SUBMIT_DIR
then
echo "then `date +%s`"
export SLURM_SUBMIT_DIR=$PWD
fi
#export USER_JOB_NAME='22-06-19-204020'
if test -z $USER_JOB_NAME
then
export USER_JOB_NAME=`date +%y-%m-%d-%H%M%S`
fi
echo $SLURM_JOB_ID
echo $USER_JOB_NAME
if test -z $OUTPUT_DIR
then
export OUTPUT_DIR=$SLURM_SUBMIT_DIR/output/$USER_JOB_NAME
fi
module load miniconda3/4.12.0-py39
module load cuda/11.6.1
source activate
conda activate nlp
conda env list
set -x
mkdir -p $OUTPUT_DIR
mkdir -p $OUTPUT_DIR/code/
cp *.py $OUTPUT_DIR/code/
cp $0 $OUTPUT_DIR/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"
# Manipulate latent variables verses nasal
python manipulate.py --model-size 64 --post-proc-filt-len 512 --ngpus 1 --latent-dim 100 --output_dir=$OUTPUT_DIR --num_categ=3 --job_id=$SLURM_JOB_ID --model_path=/users/PAS2062/delijingyic/project/wavegan/nasalDNN/980 --random_range=1 --num_epochs=2 --alter_axis=88,16 --alter_range=-1,1,0.1 --filter_range=0.35,0.65 --control_non_alter_vals=true --fix_laten_vals_accross_alter_vals=true > "${OUTPUT_DIR}/stdout.log"
# 2022-09-28
#python manipulate.py --model-size 64 --post-proc-filt-len 512 --ngpus 1 --latent-dim 100 --output_dir=$OUTPUT_DIR --num_categ=3 --job_id=$SLURM_JOB_ID --model_path=/users/PAS2062/delijingyic/project/wavegan/nasalDNN/output/890 --random_range=1 --num_epochs=2 --alter_axis=93,82 --alter_range=-5,5,1 --filter_range=0.35,0.65 --batch_size=50 --initialize_mode=normal --control_non_alter_vals=false --fix_laten_vals_accross_alter_vals=false > "${OUTPUT_DIR}/stdout.log"
# Manipulate latent variables verses s
# python manipulate.py --model-size 64 --post-proc-filt-len 512 --ngpus 1 --latent-dim 100 --output_dir=output --num_categ=3 --job_id=$SLURM_JOB_ID --model_path=/users/PAS2062/delijingyic/project/wavegan/output/17826262/model/649 --random_range=1 --num_epochs=2 --alter_axis=8,83,5,33,82,12,20 --alter_range=-15,-8,1 --filter_range=0.35,0.65 > "output/${SLURM_JOB_ID}/stdout.lo
mv output/$SLURM_JOB_ID.log $OUTPUT_DIR/sbatch.log