umbertogriffo/focal-loss-keras

can i use it in Tensorflow 1.*?

Opened this issue · 0 comments

I tried to use it in my model which is based on tensorflow V1. I tried but it throws an error. i have one hot encoded multiclass labels. How can i use focal loss in my code.

Error:
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[36,525] = 38 is not in [0, 38)
[[{{node GatherV2}}]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):