forked from lhaof/Adversarial-Attack-Papers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crf.prototxt
80 lines (73 loc) · 1.35 KB
/
crf.prototxt
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
### CRF ###
force_backward: true
name: "CRF"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 500
dim: 500
}
input: "coarse"
input_shape {
dim: 1
dim: 2
dim: 500
dim: 500
}
input: "label"
input_shape {
dim: 1
dim: 1
dim: 500
dim: 500
}
layer {
#type: SPLIT
type: "Split"
name: 'splitting'
bottom: 'coarse' top: 'unary' top: 'Q0'
}
layer {
name: "inference1"
#type: MULTI_STAGE_MEANFIELD
type: "MultiStageMeanfield"
bottom: "unary"
bottom: "Q0"
bottom: "data"
top: "pred"
#param { lr_mult: 0.001 }
#param { lr_mult: 0.001 }
#param { lr_mult: 0.01 }
param { lr_mult: 10000 }
param { lr_mult: 10000 }
param { lr_mult: 1000 }
#blobs_lr: 0.001
#blobs_lr: 0.001
#blobs_lr: 0.01 #new parameter
#blobs_lr: 10000
#blobs_lr: 10000
#blobs_lr: 1000 #new parameter
multi_stage_meanfield_param {
num_iterations: 10
compatibility_mode: POTTS
threshold: 2
theta_alpha: 160
theta_beta: 3
theta_gamma: 3
#spatial_filter_weight: 3
#bilateral_filter_weight: 5
spatial_filter_weights_str: "3 3"
bilateral_filter_weights_str: "5 5"
}
}
layer {
#type: SOFTMAX_LOSS
type: "SoftmaxWithLoss"
name: 'loss'
top: 'loss'
bottom: 'pred'
bottom: 'label'
loss_param { normalize: false }
}
layer { type: "Softmax" name: 'softmax' bottom: 'pred' top: 'softmax' include { phase: TEST}}