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

loss function error #19

Closed
soans1994 opened this issue Apr 26, 2021 · 0 comments
Closed

loss function error #19

soans1994 opened this issue Apr 26, 2021 · 0 comments

Comments

@soans1994
Copy link

soans1994 commented Apr 26, 2021

hello author,

i get some error while training. please help.

edit: the images and landmark folders are empty while generating tfrecords. is it okay? but i get the train and validation tfrecords.

File "/home/rahul/rahul/face_landmark_factory-master/testing/utils.py", line 21, in smoothL1
x = K.switch(x < HUBER_DELTA, 0.5 * x ** 2, HUBER_DELTA * (x - 0.5 * HUBER_DELTA))

File "/home/rahul/anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1867, in _create_c_op
raise ValueError(str(e))
ValueError: Shape must be rank 0 but is rank 2 for 'loss/output_loss/cond/Switch' (op: 'Switch') with input shapes: [?,136], [?,136].

thank you

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