showAnns does not display bounding boxes
I have been using this library to speed up my evaluation of models trained on custom COCO datasets. It is much faster than the original pycocotools, but I noticed when attempting to draw the boxes from some examples from the COCO object, the boxes would not show up and no breakpoint was triggered inside the showAnns method. Disabling faster_coco_eval made the boxes appear again.
Here's an example of the method that would normally draw the boxes on a plt figure:
coco.showAnns(anns, draw_bbox=True)
def showAnns(self, anns, draw_bbox=False):
warnings.warn("showAnns deprecated in 1.3.0", DeprecationWarning)
def download(self, tarDir=None, imgIds=[]):
warnings.warn("download deprecated in 1.3.0", DeprecationWarning)
I didn't want to have an extra dependency on matplotlib, so I disabled those features, but if there is a request I will rework that library to be an optional dependency.
I am fine with forking the library as well if there is generally no need for matplotlib. Is it possible to rework the code to not intercept the function at all, or would I need to copy the implementation of this method from pycocotools into my fork?
You can do whatever you want in your fork, but it can only get into my implementation via PR.
I was going to release this feature this week, if you are not in a rush, you can wait
@Fredrik00 return ShowAnns https://github.com/MiXaiLL76/faster_coco_eval/pull/53 with examples.
Build release https://github.com/MiXaiLL76/faster_coco_eval/actions/runs/15181012099
@Fredrik00 If the last change solved your problems, close the issue?
@Fredrik00 If the last change solved your problems, close the issue?
Just did a test with the latest version, all good on my end now 👍