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

train issue #8

Open
xuwanpeng12 opened this issue Apr 7, 2020 · 1 comment
Open

train issue #8

xuwanpeng12 opened this issue Apr 7, 2020 · 1 comment

Comments

@xuwanpeng12
Copy link

I am currently doing research on depth estimation. When I perform training, there are unsolvable problems. I would like to ask you for advice.

self.semantic_loss = tf.reduce_mean(tf.multiply(tf.nn.sparse_softmax_cross_entropy_with_logits(labels=self.semantic, logits=self.sem_est), self.valid)) * 0.1
File "C:\Users\xwp\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2653, in sparse_softmax_cross_entropy_with_logits
logits.get_shape()))
ValueError: Shape mismatch: The shape of labels (received (2, 256, 512, 1)) should equal the shape of logits except for the last dimension (received (1, 2, 256, 512, 34)).

please tell me why, thanks very mnuch!

@Lrq7
Copy link

Lrq7 commented Jun 10, 2020

hi, have you solved this? I get the same problem

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