-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_gan.sh
57 lines (49 loc) · 1.13 KB
/
run_gan.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
echo "[GAN] Preprocessing data..."
python ./gan/preprocess.py \
--train_data_folder="./training_dataset" \
--test_data_folder="./testing_dataset" \
--output_folder="./gan/datasets"
echo "[GAN] Training for river data..."
python ./gan/train.py \
--seed=0 \
--model=pix2pix \
--direction=AtoB \
--netG=unet_256 \
--ngf=256 \
--ndf=256 \
--dataroot="./gan/datasets/RI" \
--name="gan/RI" \
--batch_size=32 \
--n_epochs=1 \
--n_epochs_decay=1
echo "[GAN] Training for road data..."
python ./gan/train.py \
--seed=0 \
--model=pix2pix \
--direction=AtoB \
--netG=unet_256 \
--ngf=256 \
--ndf=256 \
--dataroot="./gan/datasets/RO" \
--name="gan/RO" \
--batch_size=32 \
--n_epochs=1 \
--n_epochs_decay=1
echo "[GAN] Testining for river data..."
python ./gan/test.py \
--seed=0 \
--model=pix2pix \
--direction=AtoB \
--dataroot="./gan/datasets/RI" \
--netG=unet_256 \
--ngf=256 \
--name=gan/RI
echo "[GAN] Testining for river data..."
python ./gan/test.py \
--seed=0 \
--model=pix2pix \
--direction=AtoB \
--dataroot="./gan/datasets/RO" \
--netG=unet_256 \
--ngf=256 \
--name=gan/RO