Open tricoffee opened 4 years ago
Putting it into a single line seems to fix the issue. yolo3/model.py:266
model.compile(optimizer=optimizer, loss={'yolo_loss': lambda y_true, y_pred: y_pred})
Hello all, the suggestion of @emielsteerneman helped me to get rid of the warning, thank you for that. I am trying to understand this piece of code, maybe someone can help me.
Thanks in advance for any help on understanding this piece of code.
Cause: could not parse the source code:
This error may be avoided by creating the lambda in a standalone statement.
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert