I just try the demo;but there is an error when compiling it.I don't know how to fix it.
Below is the detailed informaiton:
Traceback (most recent call last):
File "D:/Program/mask_rcnn/my_test1.py", line 43, in
model = modellib.MaskRCNN(mode="inference", config=config, model_dir="D:/Program/mask_rcnn/logs/")
File "D:\Program\mask_rcnn\build\lib\mrcnn\model.py", line 1831, in __init__
self.set_log_dir()
File "D:\Program\mask_rcnn\build\lib\mrcnn\model.py", line 2256, in set_log_dir
self.config.NAME.lower(), now))
AttributeError: 'NoneType' object has no attribute 'lower'
Use Ubuntu and Python3.5-3.6
@engineer1109
Thanks. May be that will work. Is there still any chance to fix this issue in win10?
I don't know. The code is made for Linux so-compiler not windows dll-compiler.
I run into the error before and I solved it by setting NAME='coco' instead of NAME='' in config.py.
@ 123liluky
If you don't mind, can you elaborate your answer?
I`m still not getting through it.
@AllanZuo
Did you resolve this issue?
facing same issue somebody please help!
Hello,
I am facing the same issue when training on my own dataset,
Could someone address this problem please ?
You get this error if you dont use the correct config class when inheriting your config. Using the training Config class from mrcnn.config for example class InferenceConfig(Config): instead of a coco config class InferenceConfig(coco.CocoConfig): for example
@jmwill86 is there any solution for it ? Please help!!!
@jmwill86 as @123liluky have mentioned above you have to set NAME='coco' instead of NAME= None in config.py. You may also write a subclass and override the Name variable from there.
Most helpful comment
I run into the error before and I solved it by setting NAME='coco' instead of NAME='' in config.py.