centermask2 icon indicating copy to clipboard operation
centermask2 copied to clipboard

Accuracy Threshhold not working

Open jo2 opened this issue 4 years ago • 6 comments

I have a problem that the Accuracy Threshhold is not working in my evaluation. I configured this:

cfg.MODEL.RETINANET.SCORE_THRESH_TEST = 0.5 
 cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5
 cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = 0.5

but no threshhold is applied during the visualization of my test data.

This is how a visualize my test data:

img = cv2.imread(d["file_name"])
outputs = predictor(img)
visualizer = Visualizer(img[:, :, ::-1], metadata=can_metadata, scale=0.8, instance_mode=ColorMode.SEGMENTATION)
vis = visualizer.draw_instance_predictions(outputs["instances"].to("cpu"))
cv2.imwrite("/volume/processed/" + d["file_name"][36:], vis.get_image()[:, :, ::-1])

A_00_20190328_140037

Do you know a way to solve this issue?

jo2 avatar Jun 28 '20 07:06 jo2

@jo2 did you solved your pb ?

arnaud-nt2i avatar Jan 14 '21 16:01 arnaud-nt2i

We didn't get the filter to work. Our main problem seemed to be that we did not use a pre trained image resulting in low confidence.

jo2 avatar Jan 15 '21 14:01 jo2

@jo2 @arnaud-nt2i You can set the threshold properly like this:

    THRESH_TEST = 0.7
    cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = THRESH_TEST
    cfg.MODEL.RETINANET.SCORE_THRESH_TEST = THRESH_TEST
    cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = THRESH_TEST
    cfg.MODEL.FCOS.INFERENCE_TH_TEST = THRESH_TEST

lamhoangtung avatar Jan 23 '21 06:01 lamhoangtung

I don't know if we tried the PANOPTIC_FPN config but we tried the others and it did not work. Sadly I can't reproduce it anymore because I don't have the code and data any more.

jo2 avatar Jan 26 '21 07:01 jo2

did you solved the problem,I meet the problem that I can't get the mask ,but it's a square @jo2 @youngwanLEE

li-fz avatar Jun 01 '22 03:06 li-fz

No I couldn't solve the problem as I don't have access to the data any more

jo2 avatar Jun 01 '22 13:06 jo2