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

Mobile Net Detection Reshape Problem #67

Open
mustafa-qamaruddin opened this issue Mar 29, 2018 · 0 comments
Open

Mobile Net Detection Reshape Problem #67

mustafa-qamaruddin opened this issue Mar 29, 2018 · 0 comments

Comments

@mustafa-qamaruddin
Copy link

ValueError: Dimension size must be evenly divisible by 2808 but is 588 for 'Interpre_prediction/pred_class_probs' (op: 'Reshape') with input shapes: [98,6], [3] and with input tensors computed as partial shapes: input[1] = [?,468,6].

This is the output of MobileNetDet Conv2d

      predict = slim.conv2d(dropout, num_output, kernel_size=(3, 3), stride=1, padding='SAME',
                            activation_fn=None,
                            weights_initializer=tf.truncated_normal_initializer(stddev=0.0001),
                            scope="MobileNet/conv_predict")
# probability
  batch_size = tf.shape(input_mask)[0]
  num_class_probs = config.NUM_ANCHORS * config.NUM_CLASSES
  pred_class_probs = tf.reshape(
    tf.nn.softmax(
      tf.reshape(
        prediction[:, :, :, :num_class_probs],
        [-1, config.NUM_CLASSES]
      )
    ),
    [batch_size, config.NUM_ANCHORS * fea_h * fea_w, config.NUM_CLASSES],
    name='pred_class_probs'
  )
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

1 participant