AttributeError upon execution of python script
On running the python script, predict.py, we get the following error :
AttributeError: module 'mrcnn.config' has no attribute 'NAME'
Complete Error :
Traceback (most recent call last): File "predict.py", line 12, in model = modellib.MaskRCNN(mode="inference", model_dir=MODELPATH, config=modelconfig) File "/usr/local/lib/python3.8/site-packages/mrcnn/model.py", line 1831, in init self.set_log_dir() File "/usr/local/lib/python3.8/site-packages/mrcnn/model.py", line 2256, in set_log_dir self.config.NAME.lower(), now)) AttributeError: module 'mrcnn.config' has no attribute 'NAME'