-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.yml
94 lines (47 loc) · 1.64 KB
/
config.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
train:
# Name used to identify the run. Data inside `job_dir` will be stored under
# `run_name`.
run_name: vertebra-detection
# Base directory in which model checkpoints & summaries (for Tensorboard) will
# be saved.
job_dir: jobs/
save_checkpoint_secs: 1000
save_summaries_secs: 1000
# Number of epochs (complete dataset batches) to run.
num_epochs: 500
dataset:
type: object_detection
# From which directory to read the dataset.
dir: tfdata/
data_augmentation:
- flip:
left_right: True
up_down: True
prob: 0.5
model:
type: fasterrcnn
network:
# Total number of classes to predict.
num_classes: 1
# Whether to use batch normalization in the model.
batch_norm: False
base_network:
# Which type of pretrained network to use.
architecture: resnet_v1_101
# Should we train the pretrained network.
trainable: True
# From which file to load the weights.
download: True
# Which endpoint layer to use as feature map for network.
endpoint:
# Starting point after which all the variables in the base network will be
# trainable. If not specified, then all the variables in the network will be
# trainable.
fine_tune_from: block2
anchors:
# Base size to use for anchors.
base_size: 256
# Scale used for generating anchor sizes.
scales: [0.25, 0.5]
ratios: [1, 2]
# Stride depending on feature map size (of pretrained).