Mask_rcnn: module 'coco' has no attribute 'CocoConfig'

Created on 25 Apr 2018  路  6Comments  路  Source: matterport/Mask_RCNN

I am trying to run the demo.ipynb file, however upon running:

class InferenceConfig(coco.CocoConfig):
    # Set batch size to 1 since we'll be running inference on
    # one image at a time. Batch size = GPU_COUNT * IMAGES_PER_GPU
    GPU_COUNT = 1
    IMAGES_PER_GPU = 1

I receive the following error: module 'coco' has no attribute 'CocoConfig'

However, I have imported the coco module. Hence I wonder how to fix this?

Most helpful comment

How did you solve the problem?

All 6 comments

How did you solve the problem?

does somebody has solved this problem?

does any1 have an idea for this problem?

If somebody will read this in future and has not seen a solution -- it's here

Replace this:
import coco

With this:
from samples.coco import coco

Hi Daniil404,

When I run from samples.coco import coco, it throws me error like this "No module named samples".

Please help

Hi Daniil404,

When I run from samples.coco import coco, it throws me error like this "No module named samples".

Please help

did you fix this error

Was this page helpful?
0 / 5 - 0 ratings