Daniel Gros
Daniel Gros

Reputation: 45

Syntax Error when trying to train a model in Mask-RCNN

I've followed this guide to the dot: https://github.com/matterport/Mask_RCNN/tree/3deaec5d902d16e1daf56b62d5971d428dc920bc

After the installation portion of the previous guide I went straight to trying to test an example. This is the sample: https://github.com/matterport/Mask_RCNN/tree/master/samples/balloon

I went straight to the training section in the README file. The first instruction in training the model is as follows

python3 balloon.py train --dataset=/path/to/balloon/dataset --weights=coco

I get the following response to entering this command:

image of error

I'm not sure what I've done wrong. All the dependencies are installed and are the versions listed in the installation guide in the first link.

Upvotes: 0

Views: 137

Answers (1)

Daniel Gros
Daniel Gros

Reputation: 45

As 'Axe319' commented, to fix the error I just needed to change the python version to Python 3.6 or greater

I did the following and I was able to run the training command without the same issue:

 conda install python=3.6.0

Upvotes: 0

Related Questions