-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtrain.sh
35 lines (33 loc) · 989 Bytes
/
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
35
#!/bin/bash
#!117
#!117
#!last_layers_contain_logits_only=True
#!--initialize_last_layer=False
PATH_TO_INITIAL_CHECKPOINT="deeplabv3_cityscapes_train/model.ckpt"
PATH_TO_TRAIN_DIR="test_model"
PATH_TO_DATASET="datasets/test_dataset_40%/tfrecord"
python3 train.py \
--logtostderr \
--num_clones=1 \
--training_number_of_steps=30000 \
--model_variant="xception_65" \
--train_logdir=${PATH_TO_TRAIN_DIR} \
--save_interval_secs=600 \
--save_summaries_secs=300 \
--save_summaries_images=True \
--base_learning_rate=0.007 \
--tf_initial_checkpoint=${PATH_TO_INITIAL_CHECKPOINT} \
--train_batch_size=25 \
--fine_tune_batch_norm=True \
--initialize_last_layer=False \
--last_layers_contain_logits_only=True \
--train_crop_size=117 \
--train_crop_size=117 \
--atrous_rates=6 \
--atrous_rates=12 \
--atrous_rates=18 \
--output_stride=16 \
--decoder_output_stride=4 \
--dataset="safe_ai" \
--train_split="train" \
--dataset_dir=${PATH_TO_DATASET}