facebookresearch / segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
47.81k stars 5.65k forks source link

Is there a way to calculate the f1 score of the masks in amg.py? #738

Open XiangyuLijoey opened 7 months ago

XiangyuLijoey commented 7 months ago

I am trying to use SAM on an existing dataset for a segmentation competition to see how it performs zero shot for cells. the metrics for the competition are the avg f1 score of the all the competition. Is there an existing method?