Closed yassineAlouini closed 5 years ago
In the https://github.com/mkocabas/focal-loss-keras/blob/master/focal_loss.py file, you forgot to import tensorflow: import tensorflow as tf.
import tensorflow as tf
u r right
https://github.com/mkocabas/focal-loss-keras/commit/c40cacff60bda15b02bd83ea3a1b2be739d56117 should solve the issue.
In the https://github.com/mkocabas/focal-loss-keras/blob/master/focal_loss.py file, you forgot to import tensorflow:
import tensorflow as tf
.