Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The implementation of head is different from that in the paper #2

Open
zcc720 opened this issue Oct 28, 2021 · 1 comment
Open

The implementation of head is different from that in the paper #2

zcc720 opened this issue Oct 28, 2021 · 1 comment

Comments

@zcc720
Copy link

zcc720 commented Oct 28, 2021

Centerness and Classification should be on the same branch,not regression!!

def build_head_loc(x, is_training, name, depth = 4):
with tf.variable_scope(name):
for i in range(depth):
x = conv_gn_relu(x, 256, (3, 3), 1, 'same', is_training, '{}'.format(i))

    **center_ness_x = conv_gn_relu(x, 1, (3, 3), 1, 'same', is_training, 'center-ness', gn = False, activation = False) 
    regression_x = conv_gn_relu(x, 4, (3, 3), 1, 'same', is_training, 'regression', gn = False, activation = False)**
return regression_x, center_ness_x

def build_head_cls(x, is_training, name, depth = 4):
with tf.variable_scope(name):
for i in range(depth):
x = conv_gn_relu(x, 256, (3, 3), 1, 'same', is_training, '{}'.format(i))

    x = tf.layers.conv2d(inputs = x, filters = CLASSES, kernel_size = [3, 3], strides = 1, padding = 'same', 
                         kernel_initializer = kernel_initializer, bias_initializer = class_bias_initializer, name = 'classification')
return x
@AlbinSidas
Copy link

@zcc720 In the updated paper they changed the original implementation. You can read more about it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants