diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-12 17:29:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-12 17:29:09 +0200 |
| commit | 58f998e10d00e455affcaf0af21fa8aeb67f328b (patch) | |
| tree | 3f2dd89bb6091370ddb0e49a652fcb47cc38bba2 /train.sh | |
| parent | b9a64f9f66bb761bc99c13255fa39c49e9095fa0 (diff) | |
zeroes
Diffstat (limited to 'train.sh')
| -rwxr-xr-x | train.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2,6 +2,8 @@ if [ "$1" == "" ]; then echo "Usage: $0 [dataset]" exit 1 fi - -python train.py --dataroot "./datasets/${1}/" --name "$1" --label_nc 0 --no_instance --continue_train --which_epoch latest - +if [ -e "./checkpoints/${1}" ]; then + python train.py --dataroot "./datasets/${1}/" --name "$1" --label_nc 0 --no_instance --continue_train --which_epoch latest +else + python train.py --dataroot "./datasets/${1}/" --name "$1" --label_nc 0 --no_instance +fi |
