matterport / Mask_RCNN

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow
Other
24.52k stars 11.68k forks source link

MSCOCO Eavaluation #205

Open matiqul opened 6 years ago

matiqul commented 6 years ago

Hi I am trying to run the MSCOCO evaluation code but I find the following error: Traceback (most recent call last): File "/home/kunolab/Matiqul/Mask_RCNN-master/coco.py", line 415, in evaluate_coco(model, dataset_val, coco, "bbox", limit=10) File "/home/kunolab/Matiqul/Mask_RCNN-master/coco.py", line 285, in evaluate_coco coco_results = coco.loadRes(results) File "/usr/local/lib/python3.4/dist-packages/pycocotools/coco.py", line 308, in loadRes if type(resFile) == str or type(resFile) == unicode: NameError: name 'unicode' is not defined

Please how I can solve this.....

pandamax commented 6 years ago

just remove or type(resFile) == unicode ,and run it again as the readme says.

matiqul commented 6 years ago

Can you mention where to change it....

pandamax commented 6 years ago

As traceback shows: File "/usr/local/lib/python3.4/dist-packages/pycocotools/coco.py", line 308

matiqul commented 6 years ago

But this file is read only I can not change

pandamax commented 6 years ago

Then you can change the permission of the file

chAwater commented 5 years ago

You can try:

Or

WillianaLeite commented 4 years ago

Could you please explain to me how to calculate mAR from the "utils.compute_recall" function, I understand that it returns the AR, but how should I calculate the mAR? Please help me!!