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

Question about data and label shape #20

Open
xinrui-zhuang opened this issue Jul 3, 2018 · 2 comments
Open

Question about data and label shape #20

xinrui-zhuang opened this issue Jul 3, 2018 · 2 comments

Comments

@xinrui-zhuang
Copy link

@taigw in the config file, data_shape= [19, 144, 144, 4], label_shape= [11, 144, 144, 1],why the label has different shape with the data, shouldn't the label shape=[19,144,144,1] ?
Thanks for your answers

@xinrui-zhuang xinrui-zhuang changed the title Question about data shape Question about data and label shape Jul 3, 2018
@HowieMa
Copy link

HowieMa commented Oct 7, 2018

Well, it is the problem of the model if self !
You could revise util/MSNet.py like

if __name__ == '__main__':
    x = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 1])
    y = tf.placeholder(tf.float32, shape = [1, 96, 96, 96, 2])
    net = MSNet(num_classes=2)
    predicty = net(x, is_training = True)
    print(x)
    print(predicty)
    print (Y)

ant run it like

python util/MSNet.py

You will find that the result is

shape .....
(1, 96, 96, 96, 1)
(1, 88, 96, 96, 2)
(1, 96, 96, 96, 2)

I hope this could help you solve the problem

@taigw
Copy link
Owner

taigw commented Dec 3, 2018

@xinrui-zhuang , I used 'valid' mode for convolution in z-axis, so the outoput had a smaller size in z-axis.

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

3 participants