focal-loss icon indicating copy to clipboard operation
focal-loss copied to clipboard

TensorFlow implementation of focal loss

Results 6 focal-loss issues
Sort by recently updated
recently updated
newest added

just to notify others, when i installed focal loss using pip install focal-loss, i couldn't import tensorflow nor keras libraries. so to avoid this happen to you, please note that...

I am trying running a model with SparseCategoricalFocalLoss: it works fine on GPUs but it cannot compile on TPUs, is this a known issue? You can see the code here:...

Hi, I'm trying to put `categorical_focal_loss` in my image segmentation task. The dataset is defined with tf.data.Dataset object and the model is defined with keras Model. The model is compiled...

Hi, TensorFlow's [implementation](https://www.tensorflow.org/api_docs/python/tf/keras/losses/SparseCategoricalCrossentropy) of categorical cross-entropy accepts a parameter called `ignore_class` (see [here](https://github.com/keras-team/keras/blob/b80dd12da9c0bc3f569eca3455e77762cf2ee8ef/keras/backend.py#L5550)) since v 2.10. In principle, it can be useful for NER tasks. It would be nice if...

Running M1 Apple with miniforge installation. SparseCategoricalFocalLoss is not included in the pip installation ['BinaryFocalLoss', '__author__', '__author_email__', '__builtins__', '__cached__', '__copyright__', '__description__', '__doc__', '__file__', '__license__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__url__',...