retinanet model model.predict() return only boxes with -1 after training #1728
-
Dear keras-cv Team, Firstly, I would like to express my sincere appreciation for the excellent work you have done on Keras-cv. Your commitment and dedication to the project are evident in the high-quality code and comprehensive documentation that you have provided. I have been studying your repository and I have some questions that I was hoping you could help me with. I am currently working on a ship detection model. So I am trying to implement your retinaNet model. After suiting my data to the specific keras-cv input I tried to fit the model. However I am experiencing some troubles with predictions. PROBLEM : When I use model.fit(image_test) the predictions returned are all -1 :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @hugopi -- could you post some TensorBoard logs? It may be useful to look at whether the loss has converged. The
It's also possible that there's something wrong with the input format of your boxes. I'd strongly recommend visualizing your boxes before training to verify that they are in the right format ("xywh" in this case) |
Beta Was this translation helpful? Give feedback.
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: