Skip to content

retinanet model model.predict() return only boxes with -1 after training #1728

Answered by ianstenbit
hugopi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hugopi -- could you post some TensorBoard logs? It may be useful to look at whether the loss has converged.

The -1 boxes mean that no predictions were made by the model. This could be because the default prediction decoder has a high NMS threshold. You can try using a lower threshold to see if you get any boxes like this:

model.prediction_decoder = keras_cv.layers.MultiClassNonMaxSuppression(bounding_box_format="xywh", from_logits=True,
                                                                confidence_threshold=0.05, # This is the thing to tune. Higher means fewer boxes are predicted.
                                                                iou_threshold=0.5,
         …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ianstenbit
Comment options

@hugopi
Comment options

@jbischof
Comment options

@hugopi
Comment options

@jbischof
Comment options

Answer selected by jbischof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants