Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accuracy Threshhold not working #46

Open
jo2 opened this issue Jun 28, 2020 · 6 comments
Open

Accuracy Threshhold not working #46

jo2 opened this issue Jun 28, 2020 · 6 comments

Comments

@jo2
Copy link

jo2 commented Jun 28, 2020

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?

@arnaud-nt2i
Copy link

arnaud-nt2i commented Jan 14, 2021

@jo2 did you solved your pb ?

@jo2
Copy link
Author

jo2 commented Jan 15, 2021

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.

@lamhoangtung
Copy link

lamhoangtung commented Jan 23, 2021

@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

@jo2
Copy link
Author

jo2 commented Jan 26, 2021

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.

@li-fz
Copy link

li-fz commented Jun 1, 2022

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

@jo2
Copy link
Author

jo2 commented Jun 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants