Created
January 17, 2020 17:01
-
-
Save LimHyungTae/5c4ef5d7c3aa3e38b164e64b2c9d03ef to your computer and use it in GitHub Desktop.
Auto training using shell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gpu='1' | |
seq='0' | |
batch=6400 | |
dir="/home/shapelim/RONet/0213fc_" | |
network_type='fc' | |
# | |
count="_1/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_2/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_3/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --decay_rate 0.9 --decay_step 20 --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_4/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --decay_rate 0.93 --decay_step 50 --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_5/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --decay_rate 0.95 --decay_step 50 --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_6/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --decay_rate 0.98 --decay_step 100 --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# | |
count="_7/" | |
python3.5 train.py --save_dir $dir$count --gpu $gpu --sequence_length $seq --batch_size $batch --decay_rate 0.98 --decay_step 1000 --network_type $network_type | |
python3.5 test.py --load_model_dir $dir$count --gpu $gpu --sequence_length $seq --network_type $network_type | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment