matterport / Mask_RCNN

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

Problems to train Mask_RCNN #1786

Open alexst07 opened 4 years ago

alexst07 commented 4 years ago

I am trying train the mask-rcnn using coco dataset:

python3 samples/coco/coco.py train --dataset=/path/to/coco/ --model=imagenet

But it gave me the follows error:

Traceback (most recent call last):
│  File "samples/coco/coco.py", line 504, in <module>
│    augmentation=augmentation)
│  File "/home/alex/anaconda3/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2354, in train
│  File "/home/alex/anaconda3/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg/mrcnn/model.py", line 2199, in compile
│AttributeError: 'Model' object has no attribute 'metrics_tensors'

My keras version is 2.3.0.

freitaucher commented 4 years ago

you might try to find the suitable combination experimentally. For me worked: keras 2.2.0, tf 1.6.0, python3.6. Another nice question is - how to make it parallel?

travishsu commented 4 years ago

refer to issue #1754