Skip to content

Commit

Permalink
Update enet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kwotsin authored Dec 1, 2017
1 parent 6a53f7f commit 8bb8322
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions enet.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,9 @@ def ENet(inputs,
slim.arg_scope([slim.batch_norm], fused=True), \
slim.arg_scope([slim.conv2d, slim.conv2d_transpose], activation_fn=None):
#=================INITIAL BLOCK=================
for i in xrange(1, max(num_initial_blocks, 1) + 1):
net = initial_block(inputs, scope='initial_block_' + str(i))
net = initial_block(inputs, scope='initial_block_1')
for i in xrange(2, max(num_initial_blocks, 1) + 1):
net = initial_block(net, scope='initial_block_' + str(i))

#Save for skip connection later
if skip_connections:
Expand Down Expand Up @@ -512,4 +513,4 @@ def ENet_arg_scope(weight_decay=2e-4,
with slim.arg_scope([slim.batch_norm],
decay=batch_norm_decay,
epsilon=batch_norm_epsilon) as scope:
return scope
return scope

0 comments on commit 8bb8322

Please sign in to comment.