Skip to content

Commit 8959130

Browse files
authored
Update octConv_resnet.py
1 parent 10e162b commit 8959130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octConv_resnet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def get_before_pool():
3737

3838
for i in range(2, k_sec[2] + 1):
3939
hf_conv2_x, lf_conv2_x = Residual_Unit(
40-
hf_data=(hf_conv1_x if i == 1 else hf_conv2_x),
41-
lf_data=(lf_conv1_x if i == 1 else lf_conv2_x),
40+
hf_data=(hf_conv1_x if i == 2 else hf_conv2_x),
41+
lf_data=(lf_conv1_x if i == 2 else lf_conv2_x),
4242
alpha=alpha,
4343
num_in=(num_in if i == 1 else num_out),
4444
num_mid=num_mid,
@@ -114,7 +114,7 @@ def get_before_pool():
114114
def get_linear(num_classes=10):
115115
before_pool = get_before_pool()
116116
pool5 = Pooling(data=before_pool, pool_type="avg", kernel=(7, 7), stride=(1, 1), name="global-pool")
117-
flat5 = tf.layers.Flatten(input=pool5, name='flatten')
117+
flat5 = tf.layers.flatten(input=pool5, name='flatten')
118118
fc6 = tf.layers.dense(inputs=flat5, units=num_classes, name='classifier')
119119
return fc6
120120

0 commit comments

Comments
 (0)