Closed opentld closed 4 years ago
@toandaominh1997
Try to increase the threshold
i met same error, i set the threshold like 0.98, it still detects many boxes. and i trained my own voc datasets for 70 epochs and the map is 0. someone know how to fix it?
The number next to the label name is the confidence score, and most of the boxes that you are displaying only have accuracy scores of 1-2%. To see the relevant predictions, just display the bboxes with >80%.
So, I guess you might need to change the source code in demo.py
Hope this helps.
That's true. The problem is that no filtering is performed in demo.py. After appending boxes, labels and scores, add this:
dataframe = list(zip(bboxes, labels, bbox_scores))
dataframe = list(filter(lambda x: x[2] >= args.threshold*100, dataframe))
if(len(dataframe) > 0):
bboxes, labels, bbox_scores = list(zip(*dataframe))
else:
bboxes, labels, bbox_scores = [], [], []
Best wishes.
The problem has been fixed! just add codes like this below :
and the result like this:
although, the BGR or RBG channels might be some problem remain, but the process is right !
Thanks @xafarranxera a lot !
Hello again, you're welcome. Regarding BGR problem, you just have to add a single code line at the beginning, as stated in #96 issue.
Download checkpoint_VOC_efficientdet-d0_268.pth from this link: https://drive.google.com/file/d/1r7MAyBfG5OK_9F_cU8yActUWxTHOuOpL/view?usp=sharing
,The results of object detection is fearsome. As shown below
Do I have to retrain the model?