The above is what I modified according to what you said. This is a target detection binary task to distinguish background and foreground. I used retinanet network structure. The score and labels for cls_preds change each time you tes