Open tim-mcg opened 5 years ago
Hi @tim-mcg thanks for your post. yes, if you already have a 'utils.py' module in your PYTHONPATH that would cause a name conflict hence this python module would first load the utils in your PYTHONPATH. We will try to resolve this by using relative import.
Trying to run the Keras example. When choosing the provided mask_rcnn.emd file in the geoprocessing tool in ArcGIS Pro the below error is shown:
I think whats happening is that model.py is trying to import utils.py but is finding a different utils module somewhere else in the system.
The only way I could get around this was to rename utils.py to mrcnn_utils.py and then modify model.py.
From:
To:
And then search and replace all the utils.Function statements to be _mrcnnutils.Function. Be careful when doing this as there are are references to utils such as distutils and keras.utils which should not be changed.
When doing all these changes I could successfully run the keras example.